/* 
================================================================
InfoClub Custom Style Guide & Layout Rules
================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0F52BA;          /* Royal Blue */
  --primary-rgb: 15, 82, 186;
  --primary-dark: #0A3D91;     /* Deep Blue */
  --primary-light: #F0F6FF;    /* Light Blue BG */
  --accent: #EA580C;           /* Vibrant Orange */
  --accent-rgb: 234, 88, 12;
  --accent-dark: #C2410C;      /* Deep Orange */
  --accent-light: #FFF7ED;     /* Light Orange BG */
  --dark: #0F172A;             /* Slate 900 */
  --dark-light: #1E293B;       /* Slate 800 */
  --gray: #64748B;             /* Slate 500 */
  --light: #F8FAFC;            /* Slate 50 */
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 8px 32px 0 rgba(15, 82, 186, 0.08);
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-light);
  background-color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

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

a:hover {
  color: var(--accent);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-card {
  background: var(--white);
  border: 1px solid rgba(15, 82, 186, 0.06);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(15, 82, 186, 0.12);
  border-color: rgba(15, 82, 186, 0.15);
}

/* Primary & Accent Accents */
.text-primary {
  color: var(--primary) !important;
}

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

.bg-primary-light {
  background-color: var(--primary-light);
}

.bg-accent-light {
  background-color: var(--accent-light);
}

/* Navigation Styles */
.navbar-custom {
  transition: var(--transition);
  padding: 18px 0;
  border-bottom: 1px solid transparent;
}

.navbar-custom.navbar-scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--glass-border);
}

.navbar-brand img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.nav-link-custom {
  font-weight: 500;
  color: var(--dark);
  font-size: 0.95rem;
  padding: 8px 16px !important;
  position: relative;
}

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

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-link-custom:hover::after, .nav-link-custom.active::after {
  transform: scaleX(1);
}

/* Custom Buttons */
.btn-primary-custom {
  background-color: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--border-radius-md);
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(15, 82, 186, 0.25);
}

.btn-primary-custom:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 82, 186, 0.35);
}

.btn-accent-custom {
  background-color: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--border-radius-md);
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
}

.btn-accent-custom:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--border-radius-md);
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 82, 186, 0.2);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.95)), url('../assets/images/business_network_banner.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(15, 82, 186, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 35px;
}

/* Floating Animation */
.floating-element {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Search Box Container */
.search-wrapper {
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.search-box {
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: 0 15px 40px rgba(15, 82, 186, 0.1);
  border: 1px solid rgba(15, 82, 186, 0.1);
}

.search-input-group {
  position: relative;
}

.search-input-group i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.1rem;
}

.search-input-group .form-control,
.search-input-group .form-select {
  padding-left: 48px;
  height: 58px;
  border-radius: var(--border-radius-md);
  border: 1px solid #E2E8F0;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark-light);
  transition: var(--transition);
}

.search-input-group .form-control:focus,
.search-input-group .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 82, 186, 0.1);
  color: var(--dark);
}

/* Categories Section */
.category-card {
  padding: 30px 20px;
  text-align: center;
  height: 100%;
}

.category-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  transition: var(--transition);
}

.category-card:hover .category-icon {
  background-color: var(--accent);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.2);
}

.category-title {
  font-size: 1.05rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.category-count {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Why Choose Us Cards */
.feature-box {
  padding: 35px 25px;
  height: 100%;
}

.feature-badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Featured Listings */
.listing-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
}

.listing-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.glass-card:hover .listing-img {
  transform: scale(1.08);
}

.listing-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.listing-badge.verified {
  background-color: rgba(16, 185, 129, 0.9);
  color: var(--white);
}

.listing-badge.premium {
  background-color: rgba(15, 82, 186, 0.9);
  color: var(--white);
}

.listing-rating {
  color: #FBBF24; /* Amber star */
  font-size: 0.9rem;
}

.listing-meta {
  font-size: 0.85rem;
  color: var(--gray);
}

.listing-meta i {
  color: var(--primary);
  width: 16px;
}

/* Stats Counter Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 70px 0;
  position: relative;
}

.stats-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(234, 88, 12, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 5px;
  background: linear-gradient(to right, #ffffff, #FFE4E6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Testimonials */
.testimonial-card {
  padding: 40px 30px;
  position: relative;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 6rem;
  color: rgba(15, 82, 186, 0.05);
  font-family: serif;
  line-height: 1;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Blogs Section */
.blog-card-img {
  height: 220px;
  object-fit: cover;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Details Page specific styling */
.details-hero {
  padding: 120px 0 60px;
  background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.95)), url('../assets/images/business_network_banner.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(15, 82, 186, 0.05);
}

.business-gallery img {
  border-radius: var(--border-radius-md);
  transition: var(--transition);
  cursor: pointer;
}

.business-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.map-placeholder {
  background-color: #E2E8F0;
  border-radius: var(--border-radius-lg);
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--gray);
  border: 1px solid rgba(0,0,0,0.05);
  background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
  background-size: 20px 20px;
}

.rating-star-btn {
  font-size: 1.5rem;
  color: #D1D5DB;
  cursor: pointer;
  transition: var(--transition);
}

.rating-star-btn:hover,
.rating-star-btn.active {
  color: #FBBF24;
}

/* Breadcrumbs Custom styling */
.breadcrumb-custom {
  background-color: var(--primary-light);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
}

.breadcrumb-custom a {
  font-weight: 500;
}

/* Contact Info Box */
.info-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Page Banner */
.page-banner {
  padding: 140px 0 80px;
  background-image: linear-gradient(rgba(15, 82, 186, 0.88), rgba(15, 82, 186, 0.96)), url('../assets/images/business_network_banner.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  color: var(--white);
  position: relative;
}

.page-banner .text-dark,
.page-banner h1.text-dark,
.page-banner h2.text-dark {
  color: var(--white) !important;
}

.page-banner .text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Footer Section */
.footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  font-size: 0.9rem;
}

.footer img {
  height: 38px;
  width: auto;
}

.footer h5 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-right: 10px;
  transition: var(--transition);
}

.footer-social-icon:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 50px;
  padding-top: 30px;
}

/* Micro-animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpActive 0.6s forwards ease-out;
}

@keyframes fadeUpActive {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Custom Adjustments */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .navbar-custom {
    background: var(--white);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }
  .nav-link-custom::after {
    display: none;
  }
  .search-wrapper {
    margin-top: 20px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-section {
    padding: 120px 0 60px;
  }
  .stat-number {
    font-size: 2.2rem;
  }
  .btn-primary-custom, .btn-accent-custom {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
}
