/* ============================================
   Department of Language and Culture - Common CSS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Tiro+Telugu&family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
  --primary: #e07b22;
  --primary-dark: #c4651a;
  --primary-light: #f5a655;
  --secondary: #6b1fa8;
  --secondary-dark: #4e1580;
  --accent: #f5c842;
  --dark: #1a1a2e;
  --dark2: #2d2d44;
  --text: #333344;
  --text-light: #666680;
  --white: #ffffff;
  --light-bg: #fdf8f2;
  --light-bg2: #f4eef8;
  --border: #e8ddd0;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* ---- Page Hero Banner ---- */
.page-hero {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 50%, var(--primary) 100%);
  color: var(--white);
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://www.transparenttextures.com/patterns/batik.png') repeat;
  opacity: 0.07;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 10px;
  position: relative;
}
.page-hero .breadcrumb {
  font-size: 0.95rem;
  opacity: 0.85;
  position: relative;
}
.page-hero .breadcrumb a { color: var(--accent); text-decoration: none; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }

/* ---- Section Titles ---- */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--dark);
  margin-bottom: 12px;
}
.section-title h2 span { color: var(--primary); }
.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), #a0510f); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(224,123,34,0.4); }
.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(107,31,168,0.4); }
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ---- Badge / Tag ---- */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.badge-primary { background: rgba(224,123,34,0.15); color: var(--primary); }
.badge-secondary { background: rgba(107,31,168,0.12); color: var(--secondary); }
.badge-success { background: rgba(34,197,94,0.12); color: #16a34a; }
.badge-info { background: rgba(59,130,246,0.12); color: #2563eb; }

/* ---- Image Placeholder ---- */
.img-placeholder {
  background: linear-gradient(135deg, #e8ddd0, #d4c4b8);
  display: flex; align-items: center; justify-content: center;
  color: #a89080; font-size: 2rem;
}

/* ---- Filter Tabs ---- */
.filter-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-tab {
  padding: 9px 24px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
}
.filter-tab.active, .filter-tab:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: var(--white);
}

/* ---- Form Styles ---- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 7px;
  font-size: 0.92rem;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(224,123,34,0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ---- Table Styles ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
thead { background: linear-gradient(135deg, var(--secondary-dark), var(--secondary)); color: var(--white); }
thead th { padding: 16px 18px; font-weight: 600; font-size: 0.92rem; text-align: left; white-space: nowrap; }
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--light-bg); }

/* ---- Slider Dots ---- */
.slider-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); cursor: pointer; transition: var(--transition); border: none; }
.slider-dot.active { background: var(--primary); transform: scale(1.3); }

/* ---- Responsive Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-pad { padding: 50px 0; }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-up { animation: fadeInUp 0.6s ease both; }
.animate-fade-up-delay-1 { animation: fadeInUp 0.6s 0.1s ease both; }
.animate-fade-up-delay-2 { animation: fadeInUp 0.6s 0.2s ease both; }
.animate-fade-up-delay-3 { animation: fadeInUp 0.6s 0.3s ease both; }

/* ---- Info Card ---- */
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.info-card .icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* ---- Modal / Lightbox ---- */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.25s ease; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 700px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  animation: fadeInUp 0.3s ease;
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 1.6rem;
  cursor: pointer; color: var(--text-light);
  line-height: 1;
}
.modal-close:hover { color: var(--primary); }
