/* === BASE RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === GLOBAL STYLES === */
body {
  font-family: 'Inter', sans-serif;
  background: #fdfdfd;
  color: #333;
  line-height: 1.6;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #222;
  margin-bottom: 10px;
}

h1 {
  font-size: 2.2rem;
  text-align: center;
}

h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  text-align: center;
}

p {
  font-size: 1.05rem;
  margin: 10px 0;
}

/* === NAVIGATION === */
nav {
  background: #ffffff;
  padding: 15px 30px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: center;
  gap: 40px;
}

nav a {
  text-decoration: none;
  color: #4b63ff;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #3240c0;
}

/* === HERO SECTION === */
.hero {
  padding: 60px 20px;
  background: linear-gradient(to bottom right, #fef9f9, #f4f4ff);
}

.hero-content {
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 3px solid #e6e6ff;
}

/* === TEXT + BUTTONS === */
.intro-text {
  max-width: 700px;
  text-align: center;
}

.buttons {
  margin-top: 20px;
}

.btn {
  text-decoration: none;
  display: inline-block;
  padding: 12px 24px;
  margin: 8px;
  background-color: #4b63ff;
  color: white;
  border-radius: 25px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #3240c0;
  transform: translateY(-2px);
}

/* === SHARED PAGE LAYOUT === */
.container {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 30px 20px;
  background: #f7f7f7;
  font-size: 14px;
  color: #777;
  margin-top: 40px;
}

/* === TIMELINE STYLING (for about.html) === */
.timeline {
  margin-top: 40px;
  border-left: 3px solid #ddd;
  padding-left: 30px;
  position: relative;
}

.timeline-entry {
  margin-bottom: 40px;
  position: relative;
}

.timeline-entry::before {
  content: "●";
  color: #4b63ff;
  position: absolute;
  left: -20px;
  top: 0;
  font-size: 1.2rem;
}

.timeline-entry .year {
  font-weight: bold;
  color: #4b63ff;
  font-size: 1rem;
  margin-bottom: 6px;
  display: inline-block;
}

.timeline-entry.highlight {
  background: #f2f4ff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0ff;
}

/* === ARTICLE CATEGORY GRID (articles.html) === */
.article-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding: 10px;
}

.category-box {
  background: #f7f8ff;
  border: 2px solid #e0e3ff;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  color: #4b63ff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.category-box:hover {
  background: #e6e9ff;
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* === ARTICLE CARD GRID (used inside category pages like medical.html) === */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.article-card {
  background: #ffffff;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: transform 0.3s;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-card h3 {
  font-size: 1.1rem;
  color: #4b63ff;
}

.article-card a {
  text-decoration: none;
  color: #4b63ff;
  font-weight: bold;
}

.article-card p {
  font-size: 0.95rem;
  color: #555;
  margin-top: 8px;
}

/* === CONTACT FORM === */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 30px auto;
}

input, textarea {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  font-family: 'Inter', sans-serif;
}

button {
  background-color: #4b63ff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background-color: #3240c0;
}
