/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --primary-red: #cc0000; /* GIP Red */
  --primary-red-light: #ffe5e5;
  --accent-yellow: #f1c40f; /* GIP Yellow */
  --accent-yellow-light: #fcf4d9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, ""Segoe UI"", Roboto, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(204, 0, 0, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(241, 196, 15, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.text-primary-red {
  color: var(--primary-red) !important;
}

/* Glassmorphism utility for light theme */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px; /* Shape Consistency Lock: Cards to 16px */
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
}

@media (prefers-reduced-transparency: reduce) {
  .glass-panel, .gip-stat-card {
    background: var(--bg-card) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* GIP Stats Card */
.gip-stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-top: 4px solid var(--primary-red);
  border-radius: 16px; /* Shape Consistency Lock: Cards to 16px */
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}
.gip-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-width: 6px;
}

/* Solid gradients for light theme */
.text-glow-red {
  color: var(--primary-red);
}

.text-glow-yellow {
  color: #d4a70b;
}

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-red), #990000);
  color: white;
  border: none;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px; /* Shape Consistency Lock: Buttons to 8px */
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(204, 0, 0, 0.25);
  cursor: pointer;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 0, 0, 0.35);
  background: linear-gradient(135deg, #b30000, var(--primary-red));
  color: white;
}

.btn-yellow-custom {
  background: linear-gradient(135deg, var(--accent-yellow), #d4a70b);
  color: white;
  border: none;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px; /* Shape Consistency Lock: Buttons to 8px */
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(241, 196, 15, 0.3);
  cursor: pointer;
}

.btn-yellow-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
  background: linear-gradient(135deg, #d4a70b, var(--accent-yellow));
  color: white;
}

/* Navigation Header Override */
.top-bar-gip {
  background: linear-gradient(90deg, #990000 0%, var(--primary-red) 40%, var(--accent-yellow) 100%);
  padding: 6px 0;
  font-size: 0.85rem;
  color: white;
}
.top-bar-gip a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}
.top-bar-gip a:hover {
  text-decoration: underline;
}

header {
  z-index: 1000;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.navbar-custom {
  padding: 12px 0;
}

.navbar-brand-custom {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-main) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-red {
  color: var(--primary-red);
}

.brand-yellow {
  color: #d4a70b;
}

.nav-link-custom {
  color: var(--text-muted) !important;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 8px 16px !important;
  border-radius: 8px;
}

.nav-link-custom:hover, .nav-link-custom.active {
  color: var(--primary-red) !important;
  background: var(--primary-red-light);
}

/* Timeline Layout */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 30px auto;
  padding: 10px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 70px;
}

.timeline-badge {
  position: absolute;
  top: 0;
  left: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--border-color);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.timeline-item.active .timeline-badge {
  border-color: var(--primary-red);
  background: white;
  box-shadow: 0 0 0 4px var(--primary-red-light);
}

.timeline-card {
  padding: 18px 24px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}
.timeline-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.timeline-time {
  font-size: 0.85rem;
  color: var(--primary-red);
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Footer position */
footer.footer {
  margin-top: auto;
  padding: 50px 0 20px 0;
  background: #f0f2f5;
  border-top: 1px solid var(--border-color);
  font-size: 0.95rem;
  color: var(--text-muted);
}
footer.footer h5 {
  color: var(--primary-red);
  font-weight: 800;
}
footer.footer hr {
  border-color: #cbd5e1;
}

.cta-footer-section {
  background: var(--accent-yellow-light);
  padding: 40px 0;
  text-align: center;
}

/* Premium Form Control Styling */
.form-control-custom {
  background: #ffffff !important;
  border: 1.5px solid var(--border-color) !important;
  border-radius: 12px !important;
  color: var(--text-main) !important;
  padding: 12px 16px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  font-size: 0.95rem !important;
}

.form-control-custom:focus {
  border-color: var(--primary-red) !important;
  box-shadow: 0 0 0 4px var(--primary-red-light) !important;
  outline: none !important;
  background: #ffffff !important;
}

.form-control-custom::placeholder {
  color: var(--text-light) !important;
  opacity: 0.8;
}

/* Premium Button Styling for Orange Custom */
.btn-orange-custom {
  background: linear-gradient(135deg, var(--primary-red), var(--accent-yellow)) !important;
  color: white !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 14px 32px !important;
  border-radius: 12px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 14px rgba(204, 0, 0, 0.2) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.btn-orange-custom:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(204, 0, 0, 0.35) !important;
  background: linear-gradient(135deg, #b30000, #d4a70b) !important;
  color: white !important;
}

.btn-orange-custom:active {
  transform: translateY(0) !important;
}

.placeholder-light-gip::placeholder {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Top Bar Search Input */
.search-container-gip {
  display: flex;
  align-items: center;
}

.search-icon-gip {
  position: absolute;
  left: 10px;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.8rem;
  pointer-events: none;
  z-index: 5;
}

.search-input-gip {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 20px !important;
  padding-left: 28px !important;
  padding-right: 12px !important;
  font-size: 0.8rem !important;
  height: 28px !important;
  width: 140px !important;
  transition: all 0.3s ease !important;
  color: #ffffff !important;
}

.search-input-gip::placeholder {
  color: rgba(255, 255, 255, 0.75) !important;
}

.search-input-gip:focus {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  width: 190px !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2) !important;
  outline: none !important;
}

/* Top Bar Language Selector Dropdown */
.top-bar-gip .dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  padding: 6px 0 !important;
  min-width: 160px !important;
  z-index: 1050 !important;
}

.top-bar-gip .dropdown-item {
  color: #333333 !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.top-bar-gip .dropdown-item:hover {
  background-color: var(--primary-red-light) !important;
  color: var(--primary-red) !important;
}

.top-bar-gip .dropdown-toggle::after {
  vertical-align: middle !important;
  margin-left: 4px !important;
  color: white !important;
}

.flag-icon {
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* ==========================================================================
   Clean Table & Spacing (Design Taste Frontend v2)
   ========================================================================== */

/* Modern Minimalist Tables */
.table-clean {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
}
.table-clean th {
  background-color: rgba(0, 0, 0, 0.02) !important;
  color: var(--text-main) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-color) !important;
}
.table-clean td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.table-clean tr:last-child td {
  border-bottom: none;
}
.table-clean tbody tr:hover {
  background-color: rgba(204, 0, 0, 0.01);
}

/* Minimalist Progress Line */
.progress-clean-wrapper {
  position: relative;
  height: 6px;
  background-color: var(--border-color);
  border-radius: 3px;
  overflow: visible;
}
.progress-clean-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.progress-clean-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--primary-red);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

/* Skeleton Loading Shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-item {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}
.skeleton-title {
  height: 24px;
  margin-bottom: 16px;
  width: 60%;
}

/* ==========================================================================
   Jobs & News Views CSS (Merged from Views)
   ========================================================================== */

/* Jobs Hero & Sections */
.jobs-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(239,235,216,0.15) 0%, rgba(255,255,255,1) 100%);
}
.jobs-hero-title {
  color: var(--primary-red);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.culture-section {
  background-color: #fafafa;
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.culture-list {
  list-style: none;
  padding-left: 0;
}
.culture-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.culture-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--primary-red);
  font-size: 1rem;
}
.section-title-center {
  color: var(--primary-red);
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}
.section-title-center::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-red);
}
.filter-sidebar {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px; /* Card Lock */
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.filter-group-title {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}
.job-list-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px; /* Card Lock */
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}
.job-list-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red);
}
.job-card-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.2rem;
  margin-bottom: 8px;
  text-decoration: none;
  transition: color 0.3s ease;
}
.job-card-title:hover {
  color: var(--primary-red);
}
.job-meta-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.apply-btn {
  background-color: var(--primary-red);
  color: #fff;
  border: 1px solid var(--primary-red);
  padding: 10px 24px;
  border-radius: 8px; /* Button Lock */
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}
.apply-btn:hover {
  background-color: #990000;
  border-color: #990000;
  color: #fff;
  box-shadow: 0 4px 12px rgba(204,0,0,0.25);
}
.team-grid-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px; /* Card/Image Lock */
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-grid-img:hover {
  transform: scale(1.03);
}
.filter-checkbox {
  accent-color: var(--primary-red);
  width: 17px;
  height: 17px;
  cursor: pointer;
}
.filter-label {
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Job Details */
.job-details-container {
  padding: 50px 0;
}
.breadcrumb-custom {
  font-size: 0.9rem;
  margin-bottom: 24px;
  background: none;
  padding: 0;
}
.breadcrumb-custom a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}
.breadcrumb-custom a:hover {
  color: var(--primary-red);
}
.job-content-title {
  color: var(--text-main);
  font-weight: 800;
  font-size: 2.2rem;
  margin-bottom: 15px;
}
.job-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 25px;
}
.section-header-custom {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 35px;
  margin-bottom: 15px;
  border-left: 4px solid var(--primary-red);
  padding-left: 12px;
}
.job-detail-card {
  border: 1px solid var(--border-color);
  border-radius: 16px; /* Card Lock */
  padding: 24px;
  background-color: #fff;
  box-shadow: var(--shadow-sm);
}
.registration-card {
  border: 1px solid var(--border-color);
  border-radius: 16px; /* Card Lock */
  background-color: #fff;
  box-shadow: var(--shadow-md);
  padding: 30px;
  position: sticky;
  top: 30px;
}
.registration-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}
.btn-submit-cv {
  background-color: var(--primary-red);
  color: #fff;
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: 8px; /* Button Lock */
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-submit-cv:hover {
  background-color: #990000;
  box-shadow: 0 4px 12px rgba(204,0,0,0.25);
}
.text-meta-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* News Section & Index */
.news-hero-bg {
  background: linear-gradient(135deg, rgba(239,235,216,0.15) 0%, rgba(255,255,255,1) 100%);
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.article-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  border: none;
  background: #fff;
  border-radius: 16px; /* Card Lock */
  overflow: hidden;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.article-img-wrapper {
  height: 200px;
  overflow: hidden;
}
.article-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.article-card:hover .article-img-wrapper img {
  transform: scale(1.05);
}
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px; /* Card Lock */
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-red);
  display: inline-block;
}
.recent-post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--border-color);
}
.recent-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.recent-post-img {
  width: 70px;
  height: 70px;
  border-radius: 8px; /* Image Lock */
  object-fit: cover;
}
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-list li {
  margin-bottom: 10px;
}
.category-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.category-list a:hover,
.category-list a.active {
  color: var(--primary-red);
  font-weight: 600;
}
.category-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--primary-red-light);
  color: var(--primary-red);
  font-weight: 600;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-right: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  color: #fff;
}
.share-facebook { background-color: #3b5998; }
.share-twitter { background-color: #1da1f2; }
.share-linkedin { background-color: #0077b5; }
.share-pinterest { background-color: #bd081c; }
.share-email { background-color: #6c757d; }

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 16px 0;
}
.article-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
}
.article-content table td,
.article-content table th {
  border: 1px solid var(--border-color);
  padding: 8px 12px;
}
.article-content table th {
  background-color: #f8f9fa;
}
.article-content h2, .article-content h3, .article-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--text-main);
}
.article-content blockquote {
  border-left: 4px solid var(--primary-red);
  padding: 12px 20px;
  margin: 16px 0;
  background: #fafafa;
  border-radius: 0 8px 8px 0;
}
.article-content pre {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
}
.article-content a {
  color: var(--primary-red);
}
