/* ═══════════════════════════════════════════════════════
   TRINETRA GYAN PEETH — style.css
   public/css/style.css
   ═══════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────── */
:root {
  --primary:      #0a5c7f;
  --primary-dark: #063d56;
  --accent:       #00b4d8;
  --accent2:      #e63946;
  --bg:           #f8fafc;
  --text:         #1e293b;
  --muted:        #64748b;
  --border:       #e2e8f0;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(10,92,127,.09);
  --tr:           .28s ease;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; }
a     { text-decoration: none; color: inherit; }
img   { max-width: 100%; display: block; }
ul    { list-style: none; }

/* ── CONTAINER ──────────────────────────────────────────── */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
  position: sticky; top: 0; z-index: 1000;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; padding: .85rem 0;
}
.logo {
  display: flex; align-items: center; gap: .55rem;
  font-size: 1.05rem; font-weight: 800; color: var(--primary); line-height: 1.1;
}
.logo-sub {
  color: var(--accent); font-weight: 600; display: block;
  font-size: .63rem; letter-spacing: .05em;
  text-transform: uppercase; margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  font-size: .86rem; font-weight: 500;
  color: var(--text); transition: color var(--tr);
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.btn-nav {
  background: var(--primary); color: #fff !important;
  padding: .42rem 1.1rem; border-radius: 50px;
  font-weight: 700 !important; transition: background var(--tr);
}
.btn-nav:hover { background: var(--accent) !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2.5px;
  background: var(--primary); border-radius: 3px; transition: var(--tr);
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1551190822-a9333d879b1f?w=1400&auto=format&fit=crop')
    center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,61,86,.93) 50%, rgba(0,180,216,.18));
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 660px; color: #fff; padding: 4rem 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-size: .72rem; font-weight: 700;
  padding: .32rem .95rem; border-radius: 50px;
  letter-spacing: .07em; margin-bottom: 1.2rem; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 1rem;
}
.hero p {
  font-size: 1rem; opacity: .88;
  margin-bottom: 2rem; max-width: 520px;
}
.hero-btns  { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }
.stat span  { display: block; font-size: 1.9rem; font-weight: 800; color: var(--accent); }
.stat small { font-size: .78rem; opacity: .8; }

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-block; padding: .72rem 1.8rem;
  border-radius: 50px; font-weight: 700; font-size: .9rem;
  transition: var(--tr); cursor: pointer; border: none;
  text-align: center; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0096b8; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.65); }
.btn-outline:hover { background: #fff; color: var(--primary); }

.btn-sm {
  display: inline-block; padding: .38rem .95rem; font-size: .8rem;
  border-radius: 50px; background: var(--primary); color: #fff;
  transition: background var(--tr); font-weight: 600;
}
.btn-sm:hover { background: var(--accent); }

/* ═══════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════ */
.section     { padding: 5rem 0; }
.section-alt { background: #eef6fa; }

.section-header    { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: clamp(1.6rem,3vw,2.3rem); font-weight: 800; color: var(--primary); margin-bottom: .5rem; }
.section-header p  { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: .93rem; }
.divider           { width: 52px; height: 4px; background: var(--accent); border-radius: 4px; margin: .8rem auto 0; }

/* ── GRIDS ───────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.7rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }

/* ═══════════════════════════════════════════════════════
   FEATURE CARDS
   ═══════════════════════════════════════════════════════ */
.feature-card {
  background: #fff; border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform var(--tr);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  width: 50px; height: 50px; background: #ddf4fa;
  border-radius: 11px; display: flex; align-items: center;
  justify-content: center; font-size: 1.45rem; margin-bottom: .85rem;
}
.feature-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .38rem; color: var(--primary); }
.feature-card p  { font-size: .84rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   NUMBERS BAR
   ═══════════════════════════════════════════════════════ */
.numbers {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 3.5rem 0;
}
.num-card      { text-align: center; color: #fff; padding: 1.3rem .8rem; }
.num-card span { display: block; font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1; }
.num-card p    { font-size: .82rem; opacity: .8; margin-top: .25rem; }

/* ═══════════════════════════════════════════════════════
   GENERAL CARDS
   ═══════════════════════════════════════════════════════ */
.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr);
}
.card:hover  { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(10,92,127,.15); }
.card-img    { width: 100%; height: 190px; object-fit: cover; }
.card-body   { padding: 1.3rem; }
.card-body h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .4rem; }
.card-body p  { font-size: .86rem; color: var(--muted); line-height: 1.6; }

.tag {
  display: inline-block; background: #ddf4fa; color: var(--primary);
  font-size: .7rem; font-weight: 700; padding: .16rem .65rem;
  border-radius: 50px; margin-bottom: .55rem;
}

/* ═══════════════════════════════════════════════════════
   COURSE CARDS
   ═══════════════════════════════════════════════════════ */
.course-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr);
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(10,92,127,.15); }
.course-card img   { height: 170px; width: 100%; object-fit: cover; }
.course-info       { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.course-info h3    { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: .3rem; }
.course-meta       { display: flex; gap: .7rem; font-size: .73rem; color: var(--muted); margin: .4rem 0 .7rem; flex-wrap: wrap; }
.course-info p     { font-size: .82rem; color: var(--muted); margin-bottom: .85rem; flex: 1; }

/* ═══════════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #0096b8 100%);
  padding: 5rem 0 4rem; color: #fff; text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; margin-bottom: .7rem; }
.page-hero p  { opacity: .86; max-width: 580px; margin: 0 auto; font-size: .97rem; }
.breadcrumb   { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; font-size: .8rem; opacity: .72; }
.breadcrumb a { color: #fff; }

/* ═══════════════════════════════════════════════════════
   ABOUT SPLIT
   ═══════════════════════════════════════════════════════ */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-split img { border-radius: var(--radius); box-shadow: var(--shadow); height: 400px; object-fit: cover; width: 100%; }
.about-split h2  { font-size: clamp(1.5rem,3vw,2rem); font-weight: 800; color: var(--primary); margin-bottom: .85rem; }
.about-split p   { color: var(--muted); font-size: .9rem; margin-bottom: .85rem; }

.check-list    { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.4rem; }
.check-list li { font-size: .86rem; color: var(--text); display: flex; gap: .5rem; }
.check-list li::before { content: "\2714"; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════
   STEPS (Admission Process)
   ═══════════════════════════════════════════════════════ */
.step     { display: flex; gap: 1rem; padding: 1.3rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1rem; align-items: flex-start; }
.step-num { min-width: 40px; height: 40px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.step h3  { font-size: .93rem; font-weight: 700; color: var(--primary); margin-bottom: .22rem; }
.step p   { font-size: .83rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: .32rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .68rem .9rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .86rem; color: var(--text); background: #fff;
  transition: border-color var(--tr); outline: none; font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea        { resize: vertical; min-height: 110px; }
.invalid-feedback           { color: var(--accent2); font-size: .78rem; margin-top: .25rem; display: block; }
.is-invalid                 { border-color: var(--accent2) !important; }

/* ═══════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════ */
.alert-success {
  background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46;
  padding: 1rem 1.4rem; border-radius: 10px; margin-bottom: 1.5rem; font-weight: 600;
}
.alert-error {
  background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b;
  padding: 1rem 1.4rem; border-radius: 10px; margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════ */
.testimonial {
  background: #fff; border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow); position: relative;
}
.testimonial::before {
  content: '\201C'; font-size: 4.5rem; color: var(--accent); opacity: .13;
  position: absolute; top: 0; left: 1rem;
  line-height: 1; font-family: Georgia, serif;
}
.testimonial p  { color: var(--muted); font-size: .88rem; line-height: 1.7; margin-bottom: 1rem; position: relative; z-index: 1; }
.tauthor        { display: flex; align-items: center; gap: .7rem; }
.tauthor img    { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.tauthor strong { display: block; font-size: .85rem; color: var(--primary); }
.tauthor small  { color: var(--muted); font-size: .73rem; }

/* ═══════════════════════════════════════════════════════
   FACULTY CARDS
   ═══════════════════════════════════════════════════════ */
.faculty-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  text-align: center; transition: transform var(--tr);
}
.faculty-card:hover { transform: translateY(-5px); }
.faculty-card img   { height: 200px; width: 100%; object-fit: cover; }
.fc-body            { padding: 1rem; }
.fc-body h3         { font-size: .93rem; font-weight: 700; color: var(--primary); }
.fc-body small      { color: var(--muted); font-size: .75rem; }
.dept-badge {
  display: inline-block; background: #ddf4fa; color: var(--primary);
  font-size: .66rem; font-weight: 700; padding: .16rem .6rem;
  border-radius: 50px; margin: .35rem 0 .2rem;
}

/* ═══════════════════════════════════════════════════════
   INFO BOXES (Contact page)
   ═══════════════════════════════════════════════════════ */
.info-box    { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1rem; }
.info-icon   { font-size: 1.4rem; min-width: 36px; }
.info-box h4 { font-size: .9rem; font-weight: 700; color: var(--primary); margin-bottom: .22rem; }
.info-box p  { font-size: .82rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   MAP
   ═══════════════════════════════════════════════════════ */
.map-box        { border-radius: var(--radius); overflow: hidden; height: 360px; box-shadow: var(--shadow); }
.map-box iframe { width: 100%; height: 100%; border: none; }

/* ═══════════════════════════════════════════════════════
   DATA TABLE
   ═══════════════════════════════════════════════════════ */
.tbl-wrap                        { overflow-x: auto; }
.data-table                      { width: 100%; border-collapse: collapse; font-size: .85rem; }
.data-table thead tr             { background: var(--primary); color: #fff; }
.data-table th                   { padding: .85rem 1rem; text-align: left; }
.data-table td                   { padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.data-table tbody tr:nth-child(even) { background: #f0f7fa; }
.data-table tbody tr:hover       { background: #ddf4fa; }

/* ═══════════════════════════════════════════════════════
   FILTER TABS (Courses page)
   ═══════════════════════════════════════════════════════ */
.filter-tabs { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.2rem; }
.filter-tab  {
  padding: .38rem 1rem; border-radius: 50px; font-size: .8rem; font-weight: 600;
  border: 1.5px solid var(--border); background: #fff; color: var(--muted);
  text-decoration: none; cursor: pointer; transition: var(--tr);
}
.filter-tab:hover,
.filter-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ═══════════════════════════════════════════════════════
   STATUS BADGES
   ═══════════════════════════════════════════════════════ */
.badge          { display: inline-block; padding: .2rem .7rem; border-radius: 50px; font-size: .72rem; font-weight: 700; }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-accepted { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-reviewed { background: #dbeafe; color: #1e40af; }
.badge-unread   { background: #fee2e2; color: #991b1b; }
.badge-read     { background: #d1fae5; color: #065f46; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer      { background: #0d1b2a; color: #94a3b8; padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: .9rem; }
.footer p    { font-size: .82rem; }

.footer-heading { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: .85rem; }
.footer-links   { display: flex; flex-direction: column; gap: .48rem; }
.footer-links li,
.footer-links a  { font-size: .8rem; color: #94a3b8; transition: color var(--tr); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid #1e3a4e; padding: 1rem 0;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .77rem;
}
.social-links     { display: flex; gap: 1rem; }
.social-links a   { color: #94a3b8; transition: color var(--tr); }
.social-links a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════ */
.admin-wrap { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px; background: #063d56; color: #fff;
  flex-shrink: 0; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-logo {
  padding: 1.3rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-weight: 800; font-size: .95rem;
}
.sidebar-nav { flex: 1; padding: .8rem 0; }
.sidebar-nav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem 1.3rem; color: rgba(255,255,255,.72);
  font-size: .84rem; font-weight: 500; transition: .2s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active { background: rgba(0,180,216,.18); color: #fff; }
.nav-section {
  padding: .8rem 1.3rem .3rem;
  font-size: .67rem; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.38);
}

.admin-main    { flex: 1; display: flex; flex-direction: column; background: #f0f7fa; min-width: 0; }
.admin-topbar  {
  background: #fff; padding: .85rem 1.8rem;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.admin-content { padding: 2rem 1.8rem; flex: 1; }

/* Admin stat cards */
.stat-card {
  background: #fff; border-radius: 12px;
  padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

/* Admin table */
.admin-table {
  width: 100%; border-collapse: collapse; font-size: .84rem;
  background: #fff; border-radius: 10px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.admin-table thead tr  { background: var(--primary); color: #fff; }
.admin-table th        { padding: .85rem 1rem; text-align: left; font-weight: 600; }
.admin-table td        { padding: .75rem 1rem; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.admin-table tbody tr:hover { background: #f0f7fa; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .grid-4      { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.1);
    padding: 1.3rem 5%; gap: .8rem; z-index: 999;
  }
  .nav-links.open { display: flex; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .about-split     { grid-template-columns: 1fr; }
  .about-split img { height: 240px; }
  .footer-grid     { grid-template-columns: 1fr; }
  .footer-bottom   { flex-direction: column; text-align: center; }
  .numbers .grid-4 { grid-template-columns: repeat(2,1fr); }
  .section         { padding: 3.5rem 0; }

  .admin-wrap    { flex-direction: column; }
  .sidebar       { width: 100%; height: auto; position: relative; }
  .admin-content { padding: 1.2rem 1rem; }
}

/* Small Mobile */
@media (max-width: 480px) {
  .grid-4     { grid-template-columns: 1fr; }
  .hero h1    { font-size: 1.75rem; }
  .hero-btns  { flex-direction: column; }
  .hero-stats { gap: 1.1rem; }
  .hero       { min-height: 70vh; }
  .page-hero  { padding: 3.5rem 0 3rem; }
  .numbers .grid-4 { grid-template-columns: repeat(2,1fr); }
}
