/* Compact Slim Filter Bar */

/* Hero Section Light Green Background */
.hero-section-professional {
  /* background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 50%, #e8f5e8 100%) !important; */
  background-image: url('../assets/images/pm/1499.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-section-professional::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1.5" fill="rgba(40,167,69,0.08)"/><circle cx="90" cy="20" r="1" fill="rgba(40,167,69,0.06)"/><circle cx="30" cy="80" r="2" fill="rgba(40,167,69,0.05)"/><circle cx="70" cy="70" r="1.2" fill="rgba(40,167,69,0.07)"/><circle cx="50" cy="30" r="0.8" fill="rgba(40,167,69,0.04)"/></svg>');
  opacity: 0.6;
  pointer-events: none;
}

.hero-section-professional::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(40, 167, 69, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(102, 187, 106, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

/* Ensure content appears above background */
.hero-content-professional,
.hero-stats-vertical,
.filter-bar-compact {
  position: relative;
  z-index: 5;
}

/* Urdu Text Styling - Noto Nastaliq Urdu Priority */
.urdu-text {
  font-family: 'Noto Nastaliq Urdu', serif !important;
  font-weight: 600 !important;
  font-size: 1.1em !important;
  letter-spacing: 0.5px;
  line-height: 1.4;
  direction: rtl;
  unicode-bidi: embed;
  font-display: swap;
}

/* Pakistan Flag Emoji Styling */
.pakistan-flag {
  font-size: 1.2em;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* Navbar Logo Styling */
.navttc-navbar-logo {
  height: auto;
  max-height: 60px;
  /* width: 80px; */
  transition: all 0.3s ease;
}

.navttc-navbar-logo:hover {
  transform: scale(1.05);
}

.navbar-logo {
  height: auto;
  max-height: 50px;
  transition: all 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

/* Right side logo container */
.navbar-right-logo {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

/* Navbar Container Spacing */
.navbar .container {
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 768px) {
  .navbar .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .navttc-navbar-logo {
    width: 60px !important;
    max-height: 50px;
  }
  
  .navbar-logo {
    width: 40px !important;
    max-height: 50px;
  }
  
  .navbar-right-logo {
    margin-left: 0.5rem;
  }
}

/* PM Hero Image Styling - Responsive with Overlap */
.pm-hero-image-container {
  position: relative;
  flex-grow: 1;
  text-align: right;
  z-index: 10;
}

.pm-hero-image {
  position: relative;
  top: -60px; /* Increased overlap to reduce space below */
  max-width: 550px;
  width: 100%;
  height: auto;
  /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); */
  transition: all 0.3s ease;
  z-index: 5;
}

.pm-hero-image:hover {
  transform: translateY(-3px);
  /* box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15); */
}

/* Ensure title text stays above the image */
.hero-title-professional {
  position: relative;
  z-index: 15;
}

/* PM Image with Left Logo Boxes Layout */
.pm-image-with-logos-container {
  display: flex;
  align-items: start;
  gap: 2rem;
  margin: 2rem 0 -3rem 0; /* Reduced bottom margin to move filter section up */
  position: relative;
  z-index: 8;
}

/* Vertical Logo Boxes on Left */
.vertical-logo-boxes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

.logo-box-vertical {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: 100px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-box-vertical::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #28a745, #20c997);
  opacity: 0.8;
}

.logo-box-vertical:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.logo-image-vertical {
  max-width: 100%;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.logo-box-vertical:hover .logo-image-vertical {
  transform: scale(1.1);
}

/* Responsive breakpoints for PM image with overlap */
@media (max-width: 1200px) {
  .pm-hero-image {
    max-width: 450px;
    top: -90px; /* Increased overlap on medium screens */
  }
}

@media (max-width: 768px) {
  .pm-hero-image {
    max-width: 380px;
    top: -80px; /* Increased overlap on tablets */
  }
  
  .pm-hero-image-container {
    text-align: center; /* Center on smaller screens */
  }
}

@media (max-width: 576px) {
  .pm-hero-image {
    max-width: 320px;
    top: -70px; /* Increased overlap on mobile */
  }
  
  .pm-hero-image-container {
    margin: 1rem 0;
    text-align: center;
  }
}

/* Vertical Logo Boxes Responsive Breakpoints */
@media (max-width: 768px) {
  .pm-image-with-logos-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0 -4rem 0; /* Increased negative bottom margin on tablets */
  }
  
  .vertical-logo-boxes {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  
  .logo-box-vertical {
    width: 80px;
    height: 70px;
    padding: 0.75rem;
  }
  
  .logo-image-vertical {
    max-height: 40px;
  }
}

@media (max-width: 576px) {
  .pm-image-with-logos-container {
    gap: 1rem;
    margin: 2rem 0 -5rem 0; /* Maximum negative bottom margin on mobile */
  }
  
  .vertical-logo-boxes {
    gap: 0.75rem;
  }
  
  .logo-box-vertical {
    width: 70px;
    height: 60px;
    padding: 0.5rem;
    border-radius: 10px;
  }
  
  .logo-image-vertical {
    max-height: 35px;
  }
  
  .logo-box-vertical::before {
    height: 2px;
  }
  
  .logo-box-vertical:hover {
    transform: translateY(-3px);
  }
}

/* Compact Filter Bar */
.filter-bar-compact {
  background: linear-gradient(135deg, #28a745, #20c997, #28b15c);
  padding: 0.75rem 1.5rem;
  border-radius: 15px;
  margin: 1rem 0;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.25);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.filter-bar-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.35);
}

.filter-bar-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: filterShine 3s infinite;
}

@keyframes filterShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Filter Bar Content */
.filter-bar-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

/* Compact Filter Icon */
.filter-icon-compact {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.filter-bar-compact:hover .filter-icon-compact {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.3);
}

/* Filter Label */
.filter-label {
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Filter Controls */
.filter-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-grow: 1;
  justify-content: flex-end;
}

/* Compact Select Styling */
.form-select-compact {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #495057;
  min-width: 180px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}

.form-select-compact:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 1);
  outline: none;
}

.form-select-compact:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Compact Apply Button */
.btn-apply-compact {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  color: #28a745;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  cursor: pointer;
  white-space: nowrap;
}

.btn-apply-compact:hover {
  background: rgba(255, 255, 255, 1);
  color: #1e7e34;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-apply-compact:active {
  transform: translateY(0) scale(1);
}

/* Responsive Compact Design */
@media (max-width: 992px) {
  .filter-bar-content {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .filter-controls {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .form-select-compact {
    min-width: 160px;
    flex: 1;
  }
  
  .btn-apply-compact {
    min-width: 140px;
  }
}

@media (max-width: 768px) {
  .filter-bar-compact {
    padding: 0.6rem 1rem;
    margin: 0.75rem 0;
  }
  
  .filter-controls {
    gap: 0.5rem;
  }
  
  .form-select-compact {
    min-width: 140px;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    padding-right: 2rem;
  }
  
  .btn-apply-compact {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    min-width: 120px;
  }
  
  .filter-label {
    font-size: 0.85rem;
  }
  
  .filter-icon-compact {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .filter-bar-compact {
    padding: 0.5rem 0.75rem;
  }
  
  .filter-bar-content {
    gap: 0.5rem;
  }
  
  .filter-controls {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  
  .form-select-compact,
  .btn-apply-compact {
    width: 100%;
    min-width: auto;
  }
  
  .filter-label {
    display: none;
  }
}

/* Focus States */
.form-select-compact:focus,
.btn-apply-compact:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .filter-bar-compact {
    background: #000;
    border: 2px solid #fff;
  }
  
  .form-select-compact,
  .btn-apply-compact {
    background: #fff;
    border: 2px solid #000;
    color: #000;
  }
  
  .filter-icon-compact {
    background: #fff;
    color: #000;
  }
  
  .filter-label {
    color: #fff;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .filter-bar-compact,
  .form-select-compact,
  .btn-apply-compact,
  .filter-icon-compact {
    transition: none;
    animation: none;
  }
  
  .filter-bar-compact:hover,
  .form-select-compact:hover,
  .btn-apply-compact:hover {
    transform: none;
  }
  
  .filter-bar-compact::before {
    animation: none;
  }
}

/* Loading State */
.filter-loading .btn-apply-compact {
  pointer-events: none;
  opacity: 0.7;
}

.filter-loading .btn-apply-compact::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btnSpin 1s linear infinite;
}

@keyframes btnSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Home Page Header Darker Background */
body.home-page #mainNavbar {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.98) 0%, rgba(240, 242, 245, 0.95) 100%) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(40, 167, 69, 0.15) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
}

body.home-page #mainNavbar .nav-link {
  color: #495057 !important;
  font-weight: 500;
}

body.home-page #mainNavbar .nav-link:hover {
  color: #28a745 !important;
}
