/*
Theme Name: KRJP Faculty
Theme URI: https://krjp.people.iitgn.ac.in/newsite/
Author: Jayaprakash KR
Description: A clean, modern faculty profile theme for Jayaprakash KR, IIT Gandhinagar. Includes hero profile, icon navigation cards, experience timeline, and education cards.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: krjp-faculty
*/

:root {
  --kr-bg: #f5f4f0;
  --kr-card: #ffffff;
  --kr-border: rgba(0,0,0,0.08);
  --kr-text: #1f2421;
  --kr-text-secondary: #5f5e5a;
  --kr-text-tertiary: #888780;
  --kr-accent: #185fa5;
  --kr-accent-bg: #e6f1fb;
  --kr-accent-text: #0c447c;
  --kr-radius-md: 8px;
  --kr-radius-lg: 12px;
  --kr-max-width: 860px;
  --kr-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--kr-font);
  color: var(--kr-text);
  background: var(--kr-bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--kr-accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.kr-container {
  max-width: var(--kr-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header / nav */
.kr-header {
  border-bottom: 0.5px solid var(--kr-border);
  background: var(--kr-card);
}

.kr-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.kr-logo {
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kr-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.kr-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.kr-nav a {
  color: var(--kr-text-secondary);
  font-size: 13px;
}
.kr-nav a:hover,
.kr-nav .current-menu-item a {
  color: var(--kr-accent);
  text-decoration: none;
}

/* Mobile nav toggle */
.kr-nav-toggle {
  display: none;
  background: none;
  border: 0.5px solid var(--kr-border);
  border-radius: var(--kr-radius-md);
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .kr-nav-toggle { display: inline-block; }
  .kr-nav { width: 100%; display: none; }
  .kr-nav.is-open { display: block; }
  .kr-nav ul { flex-direction: column; gap: 10px; }
}

/* Hero */
.kr-hero {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0 1.5rem;
  flex-wrap: wrap;
}

.kr-hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--kr-accent-bg);
}

.kr-hero-text h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 500;
}

.kr-hero-text p {
  margin: 0 0 2px;
  font-size: 14px;
  color: var(--kr-text-secondary);
}

.kr-hero-contact {
  display: flex;
  gap: 14px;
  font-size: 13px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.kr-hero-contact a {
  color: var(--kr-text);
}

/* Bio box */
.kr-bio {
  background: var(--kr-card);
  border: 0.5px solid var(--kr-border);
  border-radius: var(--kr-radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 14px;
}

/* Quick nav cards */
.kr-quick-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 2rem;
}

.kr-quick-nav a {
  background: var(--kr-card);
  border: 0.5px solid var(--kr-border);
  border-radius: var(--kr-radius-md);
  padding: 1rem;
  text-align: center;
  color: var(--kr-text);
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.kr-quick-nav a:hover {
  border-color: var(--kr-accent);
  text-decoration: none;
  transform: translateY(-1px);
}

.kr-quick-nav .kr-icon {
  font-size: 24px;
  color: var(--kr-accent);
  display: block;
  margin-bottom: 8px;
}

.kr-quick-nav .kr-label {
  font-size: 13px;
  font-weight: 500;
}

/* Section headings */
.kr-section h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.kr-section {
  margin-bottom: 2rem;
}

/* Timeline (experience) */
.kr-timeline {
  position: relative;
  padding-left: 18px;
  border-left: 0.5px solid var(--kr-border);
}

.kr-timeline-item {
  margin-bottom: 14px;
  position: relative;
}

.kr-timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kr-accent);
}

.kr-timeline-date {
  font-size: 12px;
  color: var(--kr-text-tertiary);
  margin: 0;
}

.kr-timeline-title {
  font-size: 14px;
  font-weight: 500;
  margin: 2px 0 0;
}

.kr-timeline-sub {
  font-size: 13px;
  color: var(--kr-text-secondary);
  margin: 2px 0 0;
}

/* Education cards */
.kr-edu-list {
  display: grid;
  gap: 10px;
}

.kr-edu-card {
  background: var(--kr-card);
  border: 0.5px solid var(--kr-border);
  border-radius: var(--kr-radius-md);
  padding: 0.75rem 1rem;
}

.kr-edu-card .kr-edu-title {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

.kr-edu-card .kr-edu-sub {
  font-size: 12px;
  color: var(--kr-text-secondary);
  margin: 2px 0 0;
}

.kr-edu-card .kr-edu-thesis {
  font-size: 12px;
  color: var(--kr-text-tertiary);
  margin: 4px 0 0;
}

/* Generic page content (for inner pages: Research, Group, Teaching, NOW Lab) */
.kr-page-content {
  background: var(--kr-card);
  border: 0.5px solid var(--kr-border);
  border-radius: var(--kr-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.kr-page-content h1 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 1rem;
}

.kr-page-content h2 {
  font-size: 18px;
  font-weight: 500;
}

.kr-page-content h3 {
  font-size: 16px;
  font-weight: 500;
}

.kr-page-content img {
  border-radius: var(--kr-radius-md);
}

/* Footer */
.kr-footer {
  border-top: 0.5px solid var(--kr-border);
  padding: 1.5rem 1.25rem;
  margin-top: 2rem;
}

.kr-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--kr-text-secondary);
  flex-wrap: wrap;
  gap: 12px;
}

.kr-footer-social {
  display: flex;
  gap: 14px;
  font-size: 16px;
}

.kr-footer-social a { color: var(--kr-text-secondary); }
.kr-footer-social a:hover { color: var(--kr-accent); }

.kr-footer-copy {
  text-align: center;
  font-size: 12px;
  color: var(--kr-text-tertiary);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 0.5px solid var(--kr-border);
}

/* Widgets / sidebar (if used on inner pages) */
.kr-widget {
  background: var(--kr-card);
  border: 0.5px solid var(--kr-border);
  border-radius: var(--kr-radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.kr-widget h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

@media (max-width: 640px) {
  .kr-hero { flex-direction: column; align-items: flex-start; text-align: left; }
  .kr-quick-nav { grid-template-columns: repeat(2, 1fr); }
}
