/* ===================================================================
   GNIET Professional Template CSS
   A unified, consistent design system for premium college website
   ================================================================= */

/* ===== CSS VARIABLES & FOUNDATION ===== */
:root {
  /* Primary Color Scheme - GNIET Brand Colors */
  --primary-navy: #003366;
  --primary-maroon: #c8102e;
  --accent-blue: #004080;
  --accent-gold: #fbbf24;

  /* Neutral Colors */
  --text-dark: #1f2937;
  --text-gray: #64748b;
  --text-light: #9ca3af;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-surface: #f1f5f9;
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;

  /* Typography Scale */
  --font-family-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;

  /* Font Sizes - Consistent Scale */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --text-5xl: 3rem; /* 48px */

  /* Spacing Scale - Refined for Premium Feel */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-14: 3.5rem; /* 56px */
  --space-16: 4rem; /* 64px */
  --space-18: 4.5rem; /* 72px */
  --space-20: 5rem; /* 80px */
  --space-24: 6rem; /* 96px */

  /* Border Radius */
  --radius-sm: 0.375rem; /* 6px */
  --radius-md: 0.5rem; /* 8px */
  --radius-lg: 0.75rem; /* 12px */
  --radius-xl: 1rem; /* 16px */

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY SYSTEM - REFINED ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-primary);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: var(--space-6);
  letter-spacing: -0.025em;
}

h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-8);
}
h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
}
h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
}
h4 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
h5 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
h6 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

p {
  margin-bottom: var(--space-5);
  line-height: 1.65;
  color: var(--text-gray);
  font-size: var(--text-base);
}

.lead {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: var(--space-6);
}

/* ===== SECTION SYSTEM - BALANCED ===== */
section {
  padding: var(--space-18) 0;
  position: relative;
}

section:first-of-type {
  padding-top: var(--space-20);
}

section:last-of-type {
  padding-bottom: var(--space-20);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--primary-navy);
  text-align: center;
  margin-bottom: var(--space-14);
  position: relative;
  line-height: 1.2;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-gray);
  text-align: center;
  max-width: 650px;
  margin: 0 auto var(--space-14);
  line-height: 1.6;
  font-weight: 400;
}

/* ===== CONTAINER SYSTEM ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 576px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* ===== CARD SYSTEM - ELEGANT & STATIC ===== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  height: 100%;
}

.card-header {
  padding: var(--space-6) var(--space-6) var(--space-5);
  background: var(--primary-navy);
  color: var(--bg-white);
  border-bottom: none;
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-5) var(--space-6);
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.card-text {
  color: var(--text-gray);
  line-height: 1.65;
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
}

/* ===== BUTTON SYSTEM - REFINED ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-family-primary);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-maroon);
  color: var(--bg-white);
  border-color: var(--primary-maroon);
}

.btn-primary:hover {
  background: #a00d26;
  border-color: #a00d26;
  color: var(--bg-white);
}

.btn-outline {
  background: transparent;
  color: var(--primary-navy);
  border-color: var(--primary-navy);
}

.btn-outline:hover {
  background: var(--primary-navy);
  color: var(--bg-white);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary-navy) 0%,
    var(--accent-blue) 100%
  );
  color: var(--bg-white);
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  transform: translateY(-12vh);
}

.hero-subtitle {
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== HERO SECTION COLUMN ALIGNMENT ===== */
.hero-text-content,
.hero-video-content {
  padding-left: 15px;
  padding-right: 15px;
}

.hero-section .row {
  margin-left: -15px;
  margin-right: -15px;
}

.hero-section .col-lg-6 {
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 992px) {
  .hero-text-content {
    padding-right: 30px;
  }

  .hero-video-content {
    padding-left: 30px;
  }
}

@media (max-width: 991px) {
  .hero-text-content,
  .hero-video-content {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 20px;
  }
}

/* ===== STATS SECTION - BALANCED ===== */
.stats-section {
  background: var(--bg-light);
  padding: var(--space-18) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
  text-align: center;
}

.stat-item {
  background: var(--bg-white);
  padding: var(--space-10) var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary-maroon);
}

.stat-number {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--primary-maroon);
  margin-bottom: var(--space-3);
  line-height: 0.9;
  display: block;
}

.stat-label {
  font-size: var(--text-base);
  color: var(--text-gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* ===== FEATURE CARDS - ELEGANT ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  background: var(--bg-white);
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-maroon), #a00d26);
  color: var(--bg-white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
  flex-shrink: 0;
}

.feature-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.feature-text {
  color: var(--text-gray);
  line-height: 1.65;
  font-size: var(--text-base);
  margin: 0;
}

/* ===== NOTICE BOARD - REFINED ===== */
.notice-board-container {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 2px solid var(--primary-navy);
  height: 100%;
}

.notice-header {
  background: var(--primary-navy);
  color: var(--bg-white);
  padding: var(--space-5) var(--space-6);
  font-weight: 600;
  font-size: var(--text-lg);
}

.notice-content {
  max-height: 420px;
  overflow-y: auto;
  padding: var(--space-5);
}

.notice-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.notice-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.notice-date {
  background: var(--primary-maroon);
  color: var(--bg-white);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  min-width: 60px;
  text-align: center;
}

.notice-text {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-dark);
  line-height: 1.6;
}

.notice-badge {
  background: var(--primary-maroon);
  color: var(--bg-white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  margin-left: auto;
}

/* ===== CAROUSEL SYSTEM - ELEGANT ===== */
.carousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.carousel-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
  width: 45px;
  height: 45px;
  background: rgba(0, 51, 102, 0.7);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
  opacity: 1;
}

.carousel-indicators {
  margin-bottom: var(--space-4);
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  margin: 0 var(--space-1);
}

.carousel-indicators .active {
  background-color: var(--bg-white);
}

/* ===== TABLES - PROFESSIONAL ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-6);
}

.table th {
  background: linear-gradient(135deg, var(--primary-navy), var(--accent-blue));
  color: var(--bg-white);
  font-weight: 600;
  padding: var(--space-5) var(--space-4);
  text-align: left;
  font-size: var(--text-base);
  line-height: 1.4;
}

.table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: var(--text-base);
  line-height: 1.5;
  vertical-align: top;
}

.table tbody tr:nth-child(odd) {
  background-color: rgba(248, 250, 252, 0.3);
}

/* ===== FORMS ===== */
.form-control {
  width: 100%;
  padding: var(--space-3);
  font-size: var(--text-base);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.form-group {
  margin-bottom: var(--space-6);
}

/* ===== NAVIGATION IMPROVEMENTS ===== */
/* Removed header overrides to maintain consistency across all pages */

.dropdown {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.dropdown-link {
  padding: var(--space-3) var(--space-4);
  color: var(--text-dark);
  font-size: var(--text-sm);
  transition: all 0.3s ease;
}

.dropdown-link:hover {
  background: var(--bg-light);
  color: var(--primary-navy);
}

/* ===== FOOTER IMPROVEMENTS ===== */
.modern-footer {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #001a33 100%);
  color: var(--bg-white);
  padding: var(--space-12) 0 var(--space-8);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
}

.footer-logo {
  height: 65px;
  width: auto;
  padding: 8px;
}

@media (max-width: 768px) {
  .footer-logo {
    height: 65px !important;
    padding: 8px !important;
  }

  .modern-footer {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
  }
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-gold);
}

.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--bg-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-gold);
  color: var(--primary-navy);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN - REFINED ===== */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.5rem;
    --space-24: 4rem;
    --space-20: 3.5rem;
    --space-18: 3rem;
    --space-16: 2.5rem;
    --space-14: 2rem;
    --space-12: 1.5rem;
  }

  section {
    padding: var(--space-14) 0;
  }

  .hero-section {
    padding: var(--space-16) 0;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .container {
    padding: 0 var(--space-4);
  }

  .section-title {
    margin-bottom: var(--space-10);
  }

  .section-subtitle {
    margin-bottom: var(--space-10);
  }
}

@media (max-width: 480px) {
  :root {
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --space-18: 2.5rem;
    --space-16: 2rem;
    --space-14: 1.5rem;
  }

  section {
    padding: var(--space-12) 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .card-body,
  .feature-card {
    padding: var(--space-6) var(--space-4);
  }

  .section-title {
    margin-bottom: var(--space-8);
  }

  .section-subtitle {
    margin-bottom: var(--space-8);
  }
}

/* ===== UTILITY CLASSES - ENHANCED ===== */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0 !important;
}
.mb-2 {
  margin-bottom: var(--space-2) !important;
}
.mb-3 {
  margin-bottom: var(--space-3) !important;
}
.mb-4 {
  margin-bottom: var(--space-4) !important;
}
.mb-5 {
  margin-bottom: var(--space-5) !important;
}
.mb-6 {
  margin-bottom: var(--space-6) !important;
}
.mb-8 {
  margin-bottom: var(--space-8) !important;
}

.mt-0 {
  margin-top: 0 !important;
}
.mt-2 {
  margin-top: var(--space-2) !important;
}
.mt-4 {
  margin-top: var(--space-4) !important;
}
.mt-6 {
  margin-top: var(--space-6) !important;
}
.mt-8 {
  margin-top: var(--space-8) !important;
}

.p-3 {
  padding: var(--space-3) !important;
}
.p-4 {
  padding: var(--space-4) !important;
}
.p-6 {
  padding: var(--space-6) !important;
}
.p-8 {
  padding: var(--space-8) !important;
}

.bg-white {
  background-color: var(--bg-white) !important;
}
.bg-light {
  background-color: var(--bg-light) !important;
}
.bg-primary {
  background-color: var(--primary-navy) !important;
}

.text-primary {
  color: var(--primary-navy) !important;
}
.text-secondary {
  color: var(--primary-maroon) !important;
}
.text-muted {
  color: var(--text-gray) !important;
}
.text-white {
  color: var(--bg-white) !important;
}

.d-flex {
  display: flex !important;
}
.d-block {
  display: block !important;
}
.align-items-center {
  align-items: center !important;
}
.justify-content-center {
  justify-content: center !important;
}
.justify-content-between {
  justify-content: space-between !important;
}

.w-100 {
  width: 100% !important;
}
.h-100 {
  height: 100% !important;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -var(--space-2);
}
.col,
.col-lg-6,
.col-md-6,
.col-sm-6 {
  padding: 0 var(--space-2);
  flex: 1;
}
.g-4 > * {
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .row {
    margin: 0 -var(--space-4);
  }
  .col,
  .col-lg-6,
  .col-md-6,
  .col-sm-6 {
    padding: 0 var(--space-4);
  }
}



/* ===== SECTION SEPARATORS ===== */
section + section {
  position: relative;
}

section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-light),
    transparent
  );
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-navy);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .modern-header,
  .modern-footer,
  .btn,
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .container {
    max-width: none;
    padding: 0;
  }
}
