/* ==========================================================================
   ORIC - Government Sadiq College Women University Bahawalpur (GSCWU)
   Unified Portal Stylesheet - Consolidates all page styles & design system
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --primary: #0a5c36;
  --primary-dark: #064024;
  --primary-light: #12824e;
  --primary-soft: #eaf7f0;
  
  --accent-gold: #b47b20;
  --accent-gold-hover: #966415;
  --accent-gold-soft: #fffbeb;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;

  --shadow-sm: 0 2px 5px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.09);
  --shadow-hover: 0 14px 32px rgba(10, 92, 54, 0.12);

  --font-base: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --------------------------------------------------------------------------
   2. Base & Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   3. Top Bar (Utility Navigation)
   -------------------------------------------------------------------------- */
.top-utility-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  padding: 6px 0;
  position: relative;
  z-index: 1040;
}

.top-dept-links a {
  color: #475569;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.top-dept-links a:hover {
  color: var(--primary);
  background-color: var(--primary-soft);
}

.top-dept-divider {
  color: #cbd5e1;
  margin: 0 4px;
}

.top-contact-item {
  color: #64748b;
  font-size: 13px;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0077b5;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: #0077b5;
  color: #ffffff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. Hero / Page Header Banner
   -------------------------------------------------------------------------- */
.page-hero-banner {
  background: linear-gradient(135deg, rgba(6, 64, 36, 0.94) 0%, rgba(10, 92, 54, 0.88) 100%),
              url('//gscwu.edu.pk/images/banners/oric.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 38px 0;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-hero-banner .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fef08a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
}

.page-hero-banner .hero-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-hero-banner .hero-subtitle {
  font-size: 1rem;
  color: #e2e8f0;
  margin: 0;
  font-weight: 400;
  max-width: 750px;
}

/* --------------------------------------------------------------------------
   5. Modern Navigation Bar
   -------------------------------------------------------------------------- */
.main-navbar {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 2px solid #edf2f7;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.main-navbar .navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}

.main-navbar .navbar-brand span.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
}

.main-navbar .nav-link {
  color: #334155;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  padding: 16px 14px !important;
  position: relative;
  transition: all var(--transition-fast);
}

.main-navbar .nav-link:hover {
  color: var(--primary);
}

.main-navbar .nav-link.active {
  color: var(--primary) !important;
}

.main-navbar .nav-link.active::after,
.main-navbar .nav-link:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px 3px 0 0;
}

.main-navbar .nav-link:hover::after {
  opacity: 0.5;
}
.main-navbar .nav-link.active::after {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   6. Shared Layout Sections & Components
   -------------------------------------------------------------------------- */
.section-title-wrap {
  margin-bottom: 2rem;
  position: relative;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 780px;
}

.section-title-line {
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 6px;
}

/* Highlight / Intro Box */
.intro-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  border-left: 5px solid var(--primary);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

/* Stat Counters / Key Metric Badges */
.stat-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.stat-card .stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 10px;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0;
}

.stat-card .stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   7. Home Page Specific (index.php)
   -------------------------------------------------------------------------- */
.vision-mission-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 30px 26px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.vision-mission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
}

.vision-mission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.vm-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.featured-img-frame {
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  display: inline-block;
  max-width: 100%;
}

.featured-img-frame img {
  border-radius: var(--radius-sm);
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   8. ORIC Team Page (team.php)
   -------------------------------------------------------------------------- */
.team-member-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.team-avatar-wrap {
  flex-shrink: 0;
  width: 110px;
  height: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid #f1f5f9;
  background: #f8fafc;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.team-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-normal);
}

.team-member-card:hover .team-avatar-wrap img {
  transform: scale(1.05);
}

.team-details {
  flex: 1;
  min-width: 0;
}

.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.team-designation {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.team-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.team-contact a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   9. Research Excellence Page (research.php)
   -------------------------------------------------------------------------- */
.research-card {
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.research-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.research-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-soft);
  color: var(--primary);
  border-radius: 10px;
  font-size: 24px;
  margin-bottom: 16px;
}

.research-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.research-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 0;
}

.policies-box {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.policy-item {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.policy-item:last-child {
  margin-bottom: 0;
}

.policy-item:hover {
  border-color: var(--primary);
  background: #ffffff;
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.policy-number {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  margin-right: 14px;
  flex-shrink: 0;
}

.policy-name {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. Collaborations Page (collab.php)
   -------------------------------------------------------------------------- */
.collab-category-header {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.collab-category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}

.collab-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.collab-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.collab-card .logo-frame {
  height: 90px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.collab-card img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.collab-card:hover img {
  transform: scale(1.05);
}

.collab-card p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   11. Innovation & Commercialization Page (innovation.php)
   -------------------------------------------------------------------------- */
.innovation-pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.innovation-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.pillar-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.innovation-pillar-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.innovation-pillar-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.funnel-step {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  height: 100%;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.funnel-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

/* Coming Soon Component */
.coming-soon-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 55px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.coming-soon-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
}

.coming-soon-icon-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 22px;
  box-shadow: 0 0 0 10px rgba(10, 92, 54, 0.05);
  animation: pulse-soft 3s infinite ease-in-out;
}

@keyframes pulse-soft {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(10, 92, 54, 0.05);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 16px rgba(10, 92, 54, 0.08);
  }
}

.feature-teaser-item {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  height: 100%;
  text-align: left;
  transition: all var(--transition-normal);
}

.feature-teaser-item:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   12. Downloads Page (download.php)
   -------------------------------------------------------------------------- */
.download-category {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 25px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.category-title {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.download-card {
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.document-icon {
  min-width: 50px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 26px;
  flex-shrink: 0;
}

.document-info {
  flex: 1;
  min-width: 0;
}

.document-info h5 {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px 0;
}

.document-info p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.file-type {
  display: inline-block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
}

.download-btn {
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 5px 12px;
}

/* --------------------------------------------------------------------------
   13. Modern University Footer
   -------------------------------------------------------------------------- */
.main-footer {
  background: #0b1f17;
  color: #cbd5e1;
  margin-top: 40px;
  border-top: 4px solid var(--primary);
}

.footer-top {
  padding: 45px 0 30px;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-about {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-heading {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 13.5px;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.footer-contact-item i {
  color: var(--accent-gold);
  margin-top: 3px;
}

.footer-bottom {
  background: #06140f;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   14. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .page-hero-banner .hero-title {
    font-size: 1.65rem;
  }
  
  .main-navbar .nav-link {
    padding: 10px 12px !important;
  }
  
  .main-navbar .nav-link.active::after,
  .main-navbar .nav-link:hover::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .team-member-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 18px;
  }
  
  .team-avatar-wrap {
    width: 125px;
    height: 145px;
    margin: 0 auto 14px auto;
  }

  .team-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-name {
    text-align: center;
    width: 100%;
  }

  .team-designation {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .team-contact {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .team-contact a,
  .team-contact span {
    justify-content: center;
    margin: 0 auto;
  }
  
  .collab-card .logo-frame {
    height: 70px;
  }
}

@media (max-width: 576px) {
  .page-hero-banner {
    padding: 26px 0;
  }
  
  .page-hero-banner .hero-title {
    font-size: 1.35rem;
  }
  
  .download-category {
    padding: 16px;
  }
  
  .download-card {
    padding: 14px;
    gap: 12px;
  }
  
  .document-icon {
    min-width: 44px;
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}
