/*--------------------------------------------------------------
CSS Custom Properties (Neutral Theme)
--------------------------------------------------------------*/
:root {
--primary-color: #245cac;
--primary-color-rgb: 36, 92, 172;
--secondary-color: #6c757d;
--accent-color: #007bff;
--dark-color: #212529;
--light-bg: #f8f9fa;
--transition: all 0.3s ease;
--border-radius: 0.5rem;
--box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
--box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
/*--------------------------------------------------------------
Base Styles
--------------------------------------------------------------*/
html {
scroll-behavior: smooth;
}
body {
font-family: "Open Sans", sans-serif;
line-height: 1.6;
color: var(--dark-color);
}
/*--------------------------------------------------------------
Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
font-family: "Raleway", sans-serif;
font-weight: 600;
color: var(--dark-color);
line-height: 1.2;
}
.display-1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.h1 { font-size: clamp(2rem, 4vw, 2.5rem); }
/*--------------------------------------------------------------
Utilities
--------------------------------------------------------------*/
.text-primary-custom { color: var(--primary-color) !important; }
.text-secondary-custom { color: var(--secondary-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }
.bg-secondary-custom { background-color: var(--secondary-color) !important; }
.bg-light-custom { background-color: var(--light-bg) !important; }
.btn-primary-custom {
background-color: var(--secondary-color);
border-color: var(--secondary-color);
color: white;
transition: var(--transition);
}
.btn-primary-custom {
background-color: var(--primary-color);
border-color: var(--primary-color);
color: white;
}
.btn-outline-primary-custom {
color: var(--secondary-color);
border-color: var(--secondary-color);
}
.btn-outline-primary-custom {
background-color: var(--secondary-color);
border-color: var(--secondary-color);
}

.main-page {
  margin-top: 100px;
}

@media (max-width: 991px) {
  .main-page {
    margin-top: 90px;
  }
}

@media (max-width: 767px) {
  .main-page {
    margin-top: 80px;
  }
}

/*--------------------------------------------------------------
Performance Optimizations
--------------------------------------------------------------*/
.img-lazy {
opacity: 0;
transition: opacity 0.3s;
}
.img-lazy.loaded {
opacity: 1;
}
/*--------------------------------------------------------------
Header
--------------------------------------------------------------*/
.navbar-custom {
background-color: rgba(36, 92, 172, 0.95);
backdrop-filter: blur(10px);
transition: var(--transition);
padding: 1rem 0;
}
.navbar-custom.scrolled {
background-color: var(--primary-color);
padding: 0.5rem 0;
}
.navbar-brand {
font-family: "Raleway", sans-serif;
font-weight: 700;
font-size: 1.5rem;
text-transform: uppercase;
letter-spacing: 2px;
}
.navbar-nav .nav-link {
font-family: "Raleway", sans-serif;
font-size: 0.875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
position: relative;
padding: 0.75rem 1.25rem;
white-space: nowrap;
}
.navbar-nav .nav-link::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 2px;
background-color: var(--secondary-color);
transition: var(--transition);
transform: translateX(-50%);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
width: 80%;
}
.btn-header {
border-radius: 50px;
padding: 0.5rem 1.5rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
font-size: 0.875rem;
}
/*--------------------------------------------------------------
Hero Section
--------------------------------------------------------------*/
.hero-section {
position: relative;
min-height: 70vh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.hero-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -2;
}
.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(33, 37, 41, 0.7) 0%, rgba(36, 92, 172, 0.5) 100%);
z-index: -1;
}
.hero-content {
text-align: center;
color: white;
z-index: 1;
}
.hero-title {
font-size: clamp(2rem, 5vw, 4rem);
font-weight: 700;
margin-bottom: 1.5rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.play-btn {
width: 80px;
height: 80px;
background: radial-gradient(var(--secondary-color) 50%, rgba(177, 162, 150, 0.3) 52%);
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
margin: 2rem auto;
transition: var(--transition);
position: relative;
}
.play-btn::after {
content: '';
position: absolute;
left: 50%;
top: 50%;
transform: translate(-40%, -50%);
width: 0;
height: 0;
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
border-left: 18px solid #fff;
}
.play-btn {
transform: scale(1.1);
}
/*--------------------------------------------------------------
Sections
--------------------------------------------------------------*/
.section {
padding: 5rem 0;
}
.section-sm {
padding: 3rem 0;
}
.section-header {
text-align: center;
margin-bottom: 3rem;
}
.section-header h2 {
font-size: clamp(2rem, 4vw, 2.5rem);
margin-bottom: 1rem;
}
.section-header::after {
content: '';
display: block;
width: 60px;
height: 4px;
background: var(--secondary-color);
margin: 1rem auto;
border-radius: 2px;
}
/*--------------------------------------------------------------
Cards
--------------------------------------------------------------*/
.card-custom {
border: none;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
transition: var(--transition);
overflow: hidden;
}
.card-custom {
box-shadow: var(--box-shadow-lg);
transform: translateY(-5px);
}
.card-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
opacity: 0;
transition: var(--transition);
display: flex;
align-items: end;
padding: 1.5rem;
}
.card-custom .card-overlay {
opacity: 1;
}
/*--------------------------------------------------------------
About Section
--------------------------------------------------------------*/
#about {
background: linear-gradient(rgba(33, 37, 41, 0.8), rgba(33, 37, 41, 0.8)), url("/catalog/view/image/site/assets/rba/rba-about-background.webp");
background-size: cover;
background-position: center;
background-attachment: fixed;
color: var(--white);
position: relative;
}
#about h2,
#about h3,
#about p {
color: var(--white);
}
#about h2 {
font-size: clamp(1.75rem, 4vw, 2.25rem);
font-weight: 700;
margin-bottom: 1rem;
}
#about p {
font-size: 1.1rem;
line-height: 1.8;
}
/*--------------------------------------------------------------
Join Section
--------------------------------------------------------------*/
#join {
background: var(--light-color);
}
#join-now {
background: var(--secondary-color);
color: var(--white);
padding: 0.75rem 3rem;
font-size: 1.1rem;
border-radius: var(--border-radius);
border: none;
transition: var(--transition);
}
#join-now {
background: var(--primary-color);
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
/*--------------------------------------------------------------
Featured Section
--------------------------------------------------------------*/
#featured .featured {
position: relative;
overflow: hidden;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
transition: var(--transition);
}
#featured .featured {
transform: translateY(-5px);
box-shadow: var(--shadow-lg);
}
#featured .featured img {
width: 100%;
height: 300px;
object-fit: cover;
transition: var(--transition);
}
#featured .featured img {
transform: scale(1.05);
}
#featured .details {
background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 2rem 1rem 1rem;
text-align: center;
color: var(--white);
transform: translateY(100%);
transition: var(--transition);
}
#featured .featured .details {
transform: translateY(0);
}
#featured .details h3 {
color: var(--white);
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
#featured .details p {
color: var(--white);
font-size: 0.9rem;
margin-bottom: 1rem;
opacity: 0.9;
}
#featured .social a {
color: var(--white);
font-size: 1rem;
margin: 0 0.25rem;
transition: var(--transition);
}
#featured .social a {
color: var(--secondary-color);
}

/*--------------------------------------------------------------
Carousel
--------------------------------------------------------------*/
.carousel-section {
background: linear-gradient(135deg, #083344 0%, #1a5f7a 100%);
color: white;
}

/* Fixed height carousel to prevent jumping */
.carousel-inner {
  min-height: 500px;
}

.carousel-custom .carousel-item {
  min-height: 500px;
  transition: transform 0.8s ease-in-out;
}

.carousel-image-container {
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.carousel-image:hover {
  transform: scale(1.02);
}

.carousel-indicators [data-bs-target] {
width: 12px;
height: 12px;
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.5);
background-color: transparent;
}
.carousel-indicators .active {
background-color: var(--secondary-color);
border-color: var(--secondary-color);
}

/* Responsive carousel heights */
@media (max-width: 991px) {
  .carousel-inner,
  .carousel-custom .carousel-item {
    min-height: 400px;
  }

  .carousel-image-container {
    height: 400px;
  }
}

@media (max-width: 767px) {
  .carousel-inner,
  .carousel-custom .carousel-item {
    min-height: 300px;
  }

  .carousel-image-container {
    height: 300px;
  }
}
/*--------------------------------------------------------------
Navigation Pills/Tabs
--------------------------------------------------------------*/
.nav-pills-custom .nav-link {
border-radius: 50px;
font-weight: 600;
background-color: var(--primary-color);
color: white;
margin: 0.25rem;
padding: 0.75rem 2rem;
border: none;
}
.nav-pills-custom .nav-link.active {
background-color: var(--secondary-color);
}
/*--------------------------------------------------------------
Timeline/Schedule
--------------------------------------------------------------*/
.timeline-item {
border-left: 3px solid var(--secondary-color);
padding-left: 1.5rem;
margin-bottom: 2rem;
position: relative;
}
.timeline-item::before {
content: '';
position: absolute;
left: -8px;
top: 0;
width: 12px;
height: 12px;
background: var(--secondary-color);
border-radius: 50%;
}

/*--------------------------------------------------------------
# Events Schedule Section - Modern Design
--------------------------------------------------------------*/
#schedule {
  padding: 60px 0;
}

/* Month Navigation */
.month-nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.month-nav-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  max-width: 800px;
}

.month-nav-scroll::-webkit-scrollbar {
  display: none;
}

.month-nav-buttons {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.month-nav-btn {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-color);
  background: #fff;
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.month-nav-btn:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.month-nav-btn.active {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.month-nav-arrow {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  background: #fff;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.month-nav-arrow:hover {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.1);
}

/* Event Cards */
.events-grid {
  margin-top: 2rem;
}

.month-events-group {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.event-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  padding: 1.5rem;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Date Badge */
.event-date-badge {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-right: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-date-day {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.event-date-month {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Event Content */
.event-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.event-date-full {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.event-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.event-link-text {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.event-card:hover .event-link-text {
  transform: translateX(4px);
}

/* Recurring Badge */
.event-recurring-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 1rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* No Events Message */
.no-events-message {
  text-align: center;
  padding: 3rem 2rem;
  color: #6c757d;
}

.no-events-message i {
  font-size: 3rem;
  display: block;
  opacity: 0.5;
}

.no-events-message p {
  font-size: 1.1rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
  .month-nav-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  .event-card {
    padding: 1.25rem;
  }

  .event-date-badge {
    width: 60px;
    height: 60px;
  }

  .event-date-day {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .month-nav-container {
    gap: 0.5rem;
  }

  .month-nav-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .month-nav-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .event-card {
    flex-direction: column;
    padding: 1rem;
  }

  .event-date-badge {
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 0.75rem;
    margin-right: 0;
    margin-bottom: 1rem;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .event-date-day {
    font-size: 2rem;
  }

  .event-date-month {
    font-size: 1rem;
  }

  .event-title {
    font-size: 1.1rem;
  }
}
/*--------------------------------------------------------------
Posts
--------------------------------------------------------------*/
.post-card {
border: none;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
margin-bottom: 2rem;
transition: var(--transition);
}
.post-card {
box-shadow: var(--box-shadow-lg);
}
.post-media img {
width: 100%;
min-height: 250px;
max-height: 400px;
object-fit: cover;
border-radius: 12px;
}
.post-content img {
max-height: 400px;
object-fit: cover;
border-radius: var(--border-radius);
}
.post-video-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 3rem;
color: white;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
cursor: pointer;
}
/*--------------------------------------------------------------
Footer
--------------------------------------------------------------*/
.footer-custom {
background: linear-gradient(135deg, #101522 0%, #040919 100%);
color: #eee;
}
.footer-links ul {
list-style: none;
padding: 0;
}
.footer-links li {
padding: 0.5rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-links a {
color: #eee;
text-decoration: none;
transition: var(--transition);
}
.footer-links a {
color: var(--secondary-color);
}
.social-links a {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
color: #eee;
border-radius: 50%;
margin: 0.25rem;
transition: var(--transition);
}
.social-links a {
background: var(--secondary-color);
color: white;
}
/*--------------------------------------------------------------
Responsive Utilities
--------------------------------------------------------------*/
@media (min-width: 769px) {
.section {
padding: 3rem 0;
}
.hero-section {
min-height: 100vh;
}
.navbar-custom {
padding: 0.75rem 0;
}
}
/*--------------------------------------------------------------
Back to Top Button
--------------------------------------------------------------*/
.back-to-top {
position: fixed;
bottom: 2rem;
right: 2rem;
background: var(--secondary-color);
color: white;
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
opacity: 0;
visibility: hidden;
transition: var(--transition);
z-index: 1000;
}
.back-to-top.show {
opacity: 1;
visibility: visible;
}
.back-to-top {
background: var(--primary-color);
color: white;
transform: translateY(-3px);
}
/*--------------------------------------------------------------
Loading States
--------------------------------------------------------------*/
.loading-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.9);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
}
/*--------------------------------------------------------------
Accessibility
--------------------------------------------------------------*/
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/*--------------------------------------------------------------
Animation Classes
--------------------------------------------------------------*/
.fade-in {
animation: fadeIn 0.6s ease-in;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.slide-up {
animation: slideUp 0.6s ease-out;
}
@keyframes slideUp {
from { transform: translateY(50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}

/* Member Directory Styles */
.member-directory {
padding: 5rem 0;
}
.member-directory .section-header {
text-align: center;
margin-bottom: 3rem;
}
.member-card {
background: var(--white);
border: none;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
margin-bottom: 2rem;
padding: 2rem;
transition: var(--transition);
position: relative;
overflow: hidden;
}
.member-card:hover {
box-shadow: var(--box-shadow-lg);
transform: translateY(-5px);
}
.member-card .member-avatar {
width: 100px;
height: 100px;
border-radius: 50%;
object-fit: cover;
border: 4px solid var(--light-bg);
margin-bottom: 1rem;
}
.member-card .member-info h3 {
color: var(--primary-color);
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.member-card .member-info h3 a {
color: var(--primary-color);
text-decoration: none;
}
.member-card .member-info h3 a:hover {
color: var(--secondary-color);
}
.member-card .member-name {
font-size: 1.1rem;
font-weight: 600;
color: var(--dark-color);
margin-bottom: 0.25rem;
}
.member-card .member-name a {
color: var(--dark-color);
text-decoration: none;
}
.member-card .member-name a:hover {
color: var(--primary-color);
}
.member-card .member-profession {
color: #6c757d;
font-size: 0.95rem;
margin-bottom: 1rem;
font-style: italic;
}
.member-card .member-about {
color: #495057;
font-size: 0.9rem;
line-height: 1.5;
margin-bottom: 1.5rem;
}
.member-card .member-about a {
color: #495057;
text-decoration: none;
}
.member-card .member-about a:hover {
color: var(--primary-color);
}
.member-card .member-contact {
border-top: 1px solid var(--light-bg);
padding-top: 1rem;
margin-top: 1rem;
}
.member-card .contact-item {
display: flex;
align-items: center;
margin-bottom: 0.5rem;
font-size: 0.9rem;
}
.member-card .contact-item:last-child {
margin-bottom: 0;
}
.member-card .contact-item .contact-label {
font-weight: 600;
color: var(--secondary-color);
min-width: 70px;
}
.member-card .contact-item .contact-value {
color: #495057;
}
.member-card .contact-item .contact-value a {
color: var(--primary-color);
text-decoration: none;
}
.member-card .contact-item .contact-value a:hover {
color: var(--secondary-color);
text-decoration: underline;
}

/*--------------------------------------------------------------
# Social Icons - Missing State
--------------------------------------------------------------*/
.profile-info .social a.missing {
color: #6c757d;
opacity: 0.3;
pointer-events: none;
position: relative;
}

.profile-info .social a.missing::after {
content: '/';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(45deg);
color: #5D5C61;
font-size: 32px;
font-weight: bold;
}

/*--------------------------------------------------------------
# Modern Profile Section
--------------------------------------------------------------*/
.section {
  padding: 4rem 0 !important;
}

#profile.profile.section {
  padding: 4rem 0 !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-header .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 0 auto 2rem;
  border-radius: 2px;
}

/* Profile Cards */
#profile .profile-card.card {
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(33, 37, 41, 0.1) !important;
  transition: all 0.3s ease !important;
  background: #ffffff !important;
}

.profile-card:hover {
  box-shadow: 0 20px 60px rgba(33, 37, 41, 0.15);
  transform: translateY(-5px);
}

.profile-avatar-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 4px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.profile-profession {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 2rem;
  font-weight: 500;
}

.btn-modern {
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(36, 92, 172, 0.3);
}

.btn-primary-custom.btn-modern {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
}

.btn-primary-custom.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(36, 92, 172, 0.4);
}

/* Social Icons */
.social-links {
  margin-top: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--light-bg);
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-icon:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(36, 92, 172, 0.3);
}

.social-icon.missing {
  color: #6c757d;
  opacity: 0.3;
  pointer-events: none;
  position: relative;
}

.social-icon.missing::after {
  content: '/';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  color: #6c757d;
  font-size: 24px;
  font-weight: bold;
}

/* Profile Content Card */
.profile-content-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(33, 37, 41, 0.1);
  overflow: hidden;
  background: #ffffff;
}

.profile-featured-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.profile-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-featured-image:hover img {
  transform: scale(1.05);
}

.featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(36, 92, 172, 0.1), rgba(33, 37, 41, 0.1));
}

.about-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.about-content {
  color: #555;
  line-height: 1.8;
  font-size: 1.1rem;
}

/*--------------------------------------------------------------
# Modern Posts Section  
--------------------------------------------------------------*/
#posts.posts-section.section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
  padding: 4rem 0 !important;
}

#posts .post-card.card {
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 30px rgba(33, 37, 41, 0.08) !important;
  transition: all 0.3s ease !important;
  background: #ffffff !important;
  overflow: hidden !important;
  margin-bottom: 2rem !important;
}

.post-card:hover {
  box-shadow: 0 15px 50px rgba(33, 37, 41, 0.12);
  transform: translateY(-3px);
}

/* Post Header */
#posts .post-header {
  padding-bottom: 1rem !important;
  border-bottom: 1px solid #f1f3f4 !important;
  margin-bottom: 1rem !important;
}

#posts .post-avatar img {
  width: 50px !important;
  height: 50px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

#posts .card-body {
  padding: 2rem !important;
}

.post-author {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-color);
  margin: 0;
}

.post-date {
  font-size: 0.875rem;
  color: #6c757d;
}

.badge-pinned {
  background: var(--primary-color);
  color: var(--white);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

/* Post Content */
.post-text {
  color: #333;
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* Post Media */
.post-media {
  margin: 1rem 0;
}

.media-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
}

.post-media-img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 12px;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
}

.play-button {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

/* Post Actions */
.post-actions {
  background: #f8f9fa;
  margin: -1rem -1.5rem -1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 0 0 16px 16px;
}

.post-action-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6c757d;
  transition: all 0.3s ease;
  cursor: pointer;
}

.post-action-btn:hover {
  background: var(--light-bg);
  color: var(--primary-color);
}

.post-action-btn.liked {
  color: var(--primary-color);
  background: rgba(36, 92, 172, 0.1);
}

/* Comments Section */
.comments-section {
  background: #f8f9fa;
  margin: -1rem -1.5rem -1.5rem;
  padding: 1.5rem;
  border-radius: 0 0 16px 16px;
}

.comments-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-color);
}

.comment-item {
  margin-bottom: 1rem;
}

.comment-avatar-img {
  width: 35px;
  height: 35px;
  object-fit: cover;
}

.comment-bubble {
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
}

.comment-text {
  font-size: 0.875rem;
  color: #333;
  line-height: 1.5;
}

.no-comments,
.comments-disabled {
  color: #6c757d;
  font-size: 0.875rem;
}

.empty-posts {
  background: #ffffff;
  border-radius: 16px;
  margin: 2rem 0;
  box-shadow: 0 8px 30px rgba(33, 37, 41, 0.08);
}

.empty-posts-content {
  padding: 3rem 2rem;
}

/*--------------------------------------------------------------
# Modern Facts Section  
--------------------------------------------------------------*/
#facts.section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
  padding: 4rem 0 !important;
}

#facts .section-header {
  text-align: center !important;
  margin-bottom: 3rem !important;
}

#facts .section-header h2 {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  margin-bottom: 1rem !important;
}

#facts .section-header p {
  font-size: 1.1rem !important;
  color: #6c757d !important;
  max-width: 600px !important;
  margin: 0 auto !important;
}

#facts .counters {
  margin-top: 2rem !important;
}

#facts .counters .col-lg-3 {
  margin-bottom: 2rem !important;
}

#facts .purecounter {
  display: block !important;
  font-size: 3rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1) !important;
}

#facts .counters p {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

/*--------------------------------------------------------------
# Modern Business Section  
--------------------------------------------------------------*/
#business.section {
  background: #ffffff !important;
  padding: 4rem 0 !important;
}

#business .section-header {
  text-align: center !important;
  margin-bottom: 3rem !important;
}

#business .section-header h2 {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  margin-bottom: 1rem !important;
}

#business .content h3 {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--dark-color) !important;
  margin-bottom: 1rem !important;
}

#business .content p.fst-italic {
  font-size: 1.2rem !important;
  color: #555 !important;
  line-height: 1.8 !important;
  margin-bottom: 2rem !important;
  font-style: italic !important;
}

#business .content .row div {
  margin-bottom: 1rem !important;
}

#business .content .row div strong {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

/*--------------------------------------------------------------
# Mobile Responsive  
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .section {
    padding: 2rem 0;
  }
  
  .section-header .section-title {
    font-size: 2rem;
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
  }
  
  .profile-name {
    font-size: 1.25rem;
  }
  
  .profile-featured-image {
    height: 250px;
  }
  
  .post-card .card-body {
    padding: 1.5rem 1rem;
  }
  
  .social-icon {
    width: 45px;
    height: 45px;
  }
  
  .btn-modern {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}

/* Professional Theme Enhancements - Sparkle (Teal) */
:root {
  --primary-gradient: linear-gradient(135deg, #2dc2d7, #2da49e);
  --secondary-gradient: linear-gradient(135deg, #26a69a, #80cbc4);
  --accent-color: #2dc2d7;
  --accent-color-rgb: 45, 194, 215;
  --contrast-color: #ffffff;
  --card-shadow: 0 8px 25px rgba(45, 194, 215, 0.15);
  --hover-shadow: 0 15px 35px rgba(45, 194, 215, 0.25);
  --text-primary: #263238;
  --text-secondary: #546e7a;
  --bg-light: #f8fdff;
  --border-color: rgba(45, 194, 215, 0.1);
}

.profile-section {
  position: relative;
  background: var(--bg-light);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.profile-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--primary-gradient);
  border-radius: 20px 20px 0 0;
}

.profile-section:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.section-header {
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
}

.section-header .section-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.profile-info-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--secondary-gradient);
}

.profile-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
}

.profile-avatar {
  position: relative;
  margin-bottom: 1.5rem;
}

.profile-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: var(--primary-gradient);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-avatar:hover::after {
  opacity: 1;
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.profile-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
  margin-bottom: 2rem;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45, 194, 215, 0.1);
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.posts-section {
  margin-top: 3rem;
}

.post-card {
  background: white;
  border-radius: 16px;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--secondary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-card:hover::before {
  opacity: 1;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
}

.post-card .card-body {
  padding: 2rem;
}

.post-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--accent-color);
}

.post-excerpt {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.post-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-date::before {
  content: '📅';
  font-size: 0.8rem;
}

.btn-read-more {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 194, 215, 0.3);
  color: white;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.social-icon:hover::before {
  opacity: 1;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(45, 194, 215, 0.3);
}

.social-icon i {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.social-icon:hover i {
  color: white;
}

.contact-section {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45, 194, 215, 0.1);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.contact-details {
  flex: 1;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.contact-value {
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .profile-section {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }
  
  .section-header .section-title {
    font-size: 2rem;
  }
  
  .profile-info-card {
    padding: 1.5rem;
  }
  
  .profile-name {
    font-size: 1.5rem;
  }
  
  .profile-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1rem 0.5rem;
  }
  
  .post-card .card-body {
    padding: 1.5rem 1rem;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .social-links {
    gap: 0.75rem;
  }
  
  .social-icon {
    width: 45px;
    height: 45px;
  }
}

/* ======= Theme-Aware Color Classes ======= */
/* These classes use CSS custom properties to ensure perfect theme integration */

.btn-accent {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  color: var(--contrast-color) !important;
}

.btn-accent:hover {
  background-color: rgba(var(--accent-color-rgb), 0.8) !important;
  border-color: rgba(var(--accent-color-rgb), 0.8) !important;
  color: var(--contrast-color) !important;
}

.btn-outline-accent {
  border-color: var(--accent-color) !important;
  color: var(--accent-color) !important;
  background-color: transparent !important;
}

.btn-outline-accent:hover {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  color: var(--contrast-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

.bg-accent-subtle {
  background-color: rgba(var(--accent-color-rgb), 0.1) !important;
}

.border-accent {
  border-color: var(--accent-color) !important;
}

/* Featured Image Hero Section */
.featured-image-hero {
  position: relative;
  width: 100%;
  height: 380px;
  background-size: cover !important;
  background-position: center 25% !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  background-color: #2c3e50;
  overflow: hidden;
}

.featured-image-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

.featured-image-hero .hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 1rem 0;
}

.featured-image-hero .hero-info {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.featured-image-hero .hero-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--text-primary, #2c3e50) !important;
  margin: 0 0 0.25rem 0;
  text-shadow: none;
}

.featured-image-hero .hero-subtitle {
  font-size: 1rem;
  color: var(--accent-color, #007bff) !important;
  font-weight: 600;
  margin: 0;
  text-shadow: none;
}

/* Responsive adjustments for featured image hero */
@media (max-width: 768px) {
  .featured-image-hero {
    height: 380px;
    background-position: center 20% !important;
  }
  
  .featured-image-hero .hero-content {
    padding: 0.5rem 0;
  }
  
  .featured-image-hero .hero-info {
    padding: 0.5rem 1rem;
    border-radius: 8px;
  }
  
  .featured-image-hero .hero-title {
    font-size: 1.4rem;
  }
  
  .featured-image-hero .hero-subtitle {
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) {
  .featured-image-hero {
    height: 550px;
  }
}

.hero-business {
  color: var(--text-secondary, #6c757d) !important;
  font-size: 0.9rem;
  margin-bottom: 0;
  text-shadow: none;
}

.hero-buttons .btn {
  border-radius: 25px;
  padding: 8px 16px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.hero-buttons .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

@media (max-width: 480px) {
  .featured-image-hero {
    height: 350px;
    background-position: center 15% !important;
  }
  
  .featured-image-hero .hero-info {
    padding: 0.5rem 0.75rem;
    margin: 0 0.75rem;
  }
  
  .featured-image-hero .hero-title {
    font-size: 1.2rem;
  }
  
  .featured-image-hero .hero-subtitle {
    font-size: 0.85rem;
  }
}

/*--------------------------------------------------------------
# Event Details Page
--------------------------------------------------------------*/

/* Event Detail Hero Section */
.event-detail-hero {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.event-detail-hero .event-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.event-detail-hero .event-date-time {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

.event-detail-hero .event-date-time i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

/* Virtual Meeting Badge */
.virtual-meeting-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3d5a6f 100%);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.virtual-meeting-badge i {
  font-size: 1.2rem;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(var(--primary-color-rgb), 0.5);
  }
}

/* Event Info Cards */
.event-info-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.event-info-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.event-info-card .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
}

/* Event Description Content */
.event-description-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

.event-description-content p {
  margin-bottom: 1rem;
}

.event-description-content h1,
.event-description-content h2,
.event-description-content h3,
.event-description-content h4,
.event-description-content h5,
.event-description-content h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.event-description-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-description-content ul,
.event-description-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.event-description-content li {
  margin-bottom: 0.5rem;
}

.event-description-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.event-description-content a:hover {
  color: var(--accent-color);
}

/* Event Info Items */
.event-info-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.event-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.event-info-item:first-child {
  padding-top: 0;
}

.info-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3d5a6f 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

.info-content {
  flex: 1;
}

.info-content h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.info-content p {
  font-size: 1rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* Social Share Links */
.social-share {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

/* RSVP Card */
.rsvp-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 120px;
}

.rsvp-card .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.rsvp-card .form-label {
  font-weight: 600;
  color: #555;
  margin-bottom: 0.5rem;
}

.rsvp-card .form-control {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.rsvp-card .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.15);
}

.rsvp-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3d5a6f 100%);
  border: none;
  border-radius: 50px;
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.rsvp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.4);
  background: linear-gradient(135deg, #3d5a6f 0%, var(--primary-color) 100%);
}

.rsvp-btn i {
  margin-right: 0.5rem;
}

/* Responsive Design for Event Details */
@media (max-width: 991px) {
  .event-detail-hero .event-title {
    font-size: 2rem;
  }

  .virtual-meeting-badge {
    margin-top: 1rem;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }

  .event-info-card,
  .rsvp-card {
    padding: 1.5rem;
  }

  .rsvp-card {
    position: static;
    margin-top: 2rem;
  }

  .info-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 767px) {
  .event-detail-hero {
    padding: 1rem 0;
  }

  .event-detail-hero .event-title {
    font-size: 1.75rem;
  }

  .event-detail-hero .event-date-time {
    font-size: 1rem;
  }

  .virtual-meeting-badge {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .event-info-card .card-title,
  .rsvp-card .card-title {
    font-size: 1.25rem;
  }

  .event-info-item {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .info-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .rsvp-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* ======================================================================
   ARTICLES LIST PAGE
   ====================================================================== */

/* Article Cards */
.articles .article-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.articles .article-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.articles .article-image-link {
  display: block;
  overflow: hidden;
  position: relative;
  padding-top: 60%; /* 5:3 aspect ratio */
}

.articles .article-image-link img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.articles .article-card:hover .article-image-link img {
  transform: scale(1.05);
}

.articles .article-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.articles .article-card-title a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.articles .article-card-title a:hover {
  color: var(--primary-color);
}

.articles .article-excerpt {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.articles .article-category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  background-color: rgba(var(--primary-color-rgb), 0.1);
  border-radius: 4px;
}

.articles .article-meta-small {
  font-size: 0.85rem;
  color: #999;
}

.articles .article-meta-small .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.articles .article-meta-small i {
  font-size: 0.9rem;
}

.articles .article-card-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 1rem;
}

/* Empty State */
.articles .empty-state {
  padding: 3rem 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.articles .empty-state i {
  opacity: 0.3;
}

/* ======================================================================
   ARTICLE DETAIL PAGE
   ====================================================================== */

/* Hero Overlay Section */
.article-hero-overlay {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #000;
}

.article-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.85;
}

.article-hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.article-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 4rem 0;
  color: white;
}

/* Hero Back Button */
.article-back-btn {
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.article-back-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: white !important;
  transform: translateX(-4px);
}

.article-back-btn i {
  margin-right: 0.5rem;
}

/* Hero Title */
.article-title-hero {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

/* Hero Category Badge */
.article-category-badge-hero {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

/* Hero Metadata */
.article-meta-hero {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.article-meta-hero .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta-hero .meta-item i {
  font-size: 1.1rem;
}

.article-meta-hero .meta-separator {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0.75rem;
  font-size: 1.2rem;
}

/* Fallback Styles (No Image) */
.article-title-simple {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--dark-color);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-meta-simple {
  font-size: 0.9rem;
  color: #666;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.article-meta-simple .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-meta-simple .meta-item i {
  font-size: 0.95rem;
  color: var(--primary-color);
}

.article-meta-simple .meta-separator {
  color: #ccc;
  margin: 0 0.5rem;
}

/* Category Badge */
.article-category-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--primary-color);
  background-color: rgba(var(--primary-color-rgb), 0.1);
  border-radius: 50px;
}

/* Share Buttons Section */
.article-share-section h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-color);
}

/* Share Button Base Styles */
.article-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none !important;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.article-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.article-share-btn i {
  font-size: 1.1rem;
}

/* X (Twitter) Button */
.share-x {
  background-color: #000000 !important;
  color: #ffffff !important;
}

.share-x:hover {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

/* Facebook Button */
.share-facebook {
  background-color: #1877F2 !important;
  color: #ffffff !important;
}

.share-facebook:hover {
  background-color: #0d65d9 !important;
  color: #ffffff !important;
}

/* LinkedIn Button */
.share-linkedin {
  background-color: #0A66C2 !important;
  color: #ffffff !important;
}

.share-linkedin:hover {
  background-color: #004182 !important;
  color: #ffffff !important;
}

/* Article Content */
.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  font-weight: 700;
  color: var(--dark-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 2rem;
}

.article-content h3 {
  font-size: 1.5rem;
}

.article-content h4 {
  font-size: 1.25rem;
}

.article-content a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.article-content a:hover {
  color: var(--accent-color);
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
  background-color: var(--light-bg);
  font-style: italic;
  color: #555;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.article-content pre {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.article-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background-color: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.article-content pre code {
  background-color: transparent;
  padding: 0;
}

.article-content hr {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Author Bio Card */
.article-author-card {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-author-card .author-card-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.article-author-card .author-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.article-author-card .author-card-name a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-author-card .author-card-name a:hover {
  color: var(--primary-color);
}

.article-author-card .author-card-profession {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.article-author-card .author-card-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 0;
}

/* ======================================================================
   RESPONSIVE STYLES
   ====================================================================== */

@media (max-width: 991px) {
  /* Hero Overlay */
  .article-hero-overlay {
    min-height: 400px;
  }

  .article-hero-content {
    padding: 3rem 0;
  }

  .article-title-hero {
    font-size: 2.25rem;
  }

  /* Fallback */
  .article-title-simple {
    font-size: 2rem;
  }

  .article-content {
    font-size: 1.0625rem;
  }

  .article-author-card {
    padding: 1.5rem;
  }

  .article-author-card .author-card-image img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 767px) {
  /* Hero Overlay */
  .article-hero-overlay {
    min-height: 350px;
  }

  .article-hero-content {
    padding: 2rem 0;
  }

  .article-title-hero {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .article-category-badge-hero {
    font-size: 0.75rem;
    padding: 0.375rem 1rem;
  }

  .article-meta-hero {
    font-size: 0.875rem;
  }

  .article-meta-hero .meta-separator {
    margin: 0 0.5rem;
  }

  .article-back-btn {
    font-size: 0.875rem;
    padding: 0.4rem 0.8rem;
  }

  /* Fallback */
  .article-title-simple {
    font-size: 1.75rem;
  }

  .article-meta-simple {
    font-size: 0.85rem;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }

  .article-content h3 {
    font-size: 1.25rem;
  }

  .article-author-card .d-flex {
    flex-direction: column !important;
    text-align: center;
  }

  .article-author-card .author-card-image {
    margin: 0 auto;
  }

  .article-share-section .d-flex {
    flex-direction: column;
  }

  .article-share-section .btn {
    width: 100%;
    justify-content: center;
  }
}

/*--------------------------------------------------------------
# Mobile Navigation and Feed Fixes
--------------------------------------------------------------*/

/* Fix 1: Bootstrap Navbar Mobile Collapse */
.navbar-custom {
  background: rgba(6, 12, 34, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
  color: #fff !important;
  font-weight: 700;
}

.navbar-custom .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0.75rem;
}

.navbar-custom .navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(248, 34, 73, 0.25);
  outline: none;
}

.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Collapse Menu Styling */
@media (max-width: 991px) {
  .navbar-custom .navbar-collapse {
    background: rgba(6, 12, 34, 0.98);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 70vh;
    overflow-y: auto;
  }

  .navbar-custom .navbar-nav {
    margin-bottom: 1rem;
  }

  .navbar-custom .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    font-size: 1rem;
  }

  .navbar-custom .navbar-nav .nav-link:hover,
  .navbar-custom .navbar-nav .nav-link:focus {
    background: rgba(248, 34, 73, 0.1);
    color: #f82249 !important;
    transform: translateX(5px);
  }

  .navbar-custom .btn-primary-custom,
  .navbar-custom .btn-header {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    text-align: center;
  }
}

/* Ensure proper spacing for fixed navbar */
@media (max-width: 991px) {
  .main-page {
    margin-top: 80px !important;
  }
}

@media (max-width: 576px) {
  .main-page {
    margin-top: 70px !important;
  }
}

/* Fix 2: Correct Profile Picture Size in Posts Feed - Comprehensive Avatar Fix */
/* Target avatars in both #posts and #posts-home sections with multiple selector strategies */
/* Exclude .post-media-img to prevent affecting post content images */
#posts .post-media img:not(.post-media-img),
#posts-home .post-media img:not(.post-media-img),
#posts .post-avatar img,
#posts-home .post-avatar img,
.post-card .card-body > .post-media img:not(.post-media-img),
.post-card .card-body .d-flex .post-media img:not(.post-media-img) {
  width: 50px !important;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

/* Ensure post card body has proper layout for both sections */
#posts .post-card .card-body,
#posts-home .post-card .card-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

/* Mobile optimization for post cards - Tablet */
@media (max-width: 768px) {
  #posts .post-media img:not(.post-media-img),
  #posts-home .post-media img:not(.post-media-img),
  #posts .post-avatar img,
  #posts-home .post-avatar img,
  .post-card .card-body > .post-media img:not(.post-media-img),
  .post-card .card-body .d-flex .post-media img:not(.post-media-img) {
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }

  #posts .post-card .card-body,
  #posts-home .post-card .card-body {
    padding: 1.25rem !important;
  }
}

/* Mobile optimization for post cards - Mobile */
@media (max-width: 576px) {
  #posts .post-media img:not(.post-media-img),
  #posts-home .post-media img:not(.post-media-img),
  #posts .post-avatar img,
  #posts-home .post-avatar img,
  .post-card .card-body > .post-media img:not(.post-media-img),
  .post-card .card-body .d-flex .post-media img:not(.post-media-img) {
    width: 35px !important;
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
  }

  #posts .post-card .card-body,
  #posts-home .post-card .card-body {
    padding: 1rem !important;
  }
}

/* Fix 3: Override Old Navbar-Mobile Styles */
@media (max-width: 991px) {
  /* Disable old navbar-mobile overlay */
  .navbar-mobile {
    position: static !important;
    background: transparent !important;
    overflow: visible !important;
  }

  .navbar-mobile ul {
    position: static !important;
    background: transparent !important;
    overflow-y: visible !important;
  }

  /* Hide old mobile nav toggle */
  .mobile-nav-toggle {
    display: none !important;
  }
}

/* Fix 4: Ensure Header Doesn't Float Over Content */
.navbar.fixed-top {
  z-index: 1030 !important;
}

.section {
  position: relative;
  z-index: 1;
}

/* Prevent header transparency issues on mobile */
@media (max-width: 991px) {
  .navbar-custom,
  .navbar-dark {
    background: rgba(6, 12, 34, 0.98) !important;
  }

  #navbar {
    background: rgba(6, 12, 34, 0.98) !important;
  }
}

/* Fix 5: Prevent Navbar Brand Text Overflow */
@media (max-width: 991px) {
  .navbar-custom .navbar-brand {
    max-width: 70vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.1rem !important;
    letter-spacing: 1px !important;
  }
}

@media (max-width: 576px) {
  .navbar-custom .navbar-brand {
    max-width: 65vw;
    font-size: 1rem !important;
    letter-spacing: 0.5px !important;
  }
}

/* Fix 6: Strengthen Post Avatar Selectors */
.post-avatar img,
.post-header .post-avatar img,
#posts .post-avatar img {
  width: 50px !important;
  height: 50px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

@media (max-width: 768px) {
  .post-avatar img,
  .post-header .post-avatar img,
  #posts .post-avatar img {
    width: 40px !important;
    height: 40px !important;
  }
}

@media (max-width: 576px) {
  .post-avatar img,
  .post-header .post-avatar img,
  #posts .post-avatar img {
    width: 35px !important;
    height: 35px !important;
  }
}

/* Fix 7: Profile Photo Responsiveness */
.profile-photo {
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 50% !important;
}

@media (max-width: 768px) {
  .profile-photo {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
  }
}

@media (max-width: 576px) {
  .profile-photo {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
  }
}

/* ============================================================================
   Navigation Link Type Improvements
   ============================================================================ */

/* External link indicator icon styling */
.navbar-nav .nav-link i.bi-box-arrow-up-right {
  font-size: 0.75em;
  opacity: 0.7;
  vertical-align: super;
  margin-left: 0.25rem;
}

/* Featured button external link icon */
.btn-header i.bi-box-arrow-up-right {
  font-size: 0.85em;
  opacity: 0.9;
  margin-left: 0.25rem;
}

/* Visual feedback for clickable nav items */
.navbar-nav .nav-link {
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Accessibility - improved focus states */
.navbar-nav .nav-link:focus,
.btn-header:focus {
  outline: 2px solid var(--secondary-color, #ffc107);
  outline-offset: 2px;
  border-radius: 4px;
}

/* External link hover effect */
.navbar-nav .nav-link.external-link:hover i.bi-box-arrow-up-right {
  opacity: 1;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* Smooth scroll link visual indicator (optional - subtle underline style) */
.navbar-nav .nav-link.scrollto {
  position: relative;
}

/* Mobile touch targets - ensure 48x48px minimum for accessibility */
@media (max-width: 991px) {
  .navbar-nav .nav-link {
    padding: 1rem 1.5rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* External link icon on mobile */
  .navbar-nav .nav-link i.bi-box-arrow-up-right {
    margin-left: auto;
    padding-left: 0.5rem;
  }

  /* Featured button touch target */
  .btn-header {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
  }
}

/* Tablet and smaller screens */
@media (max-width: 768px) {
  .navbar-nav .nav-link {
    font-size: 1rem;
  }

  .navbar-nav .nav-link i.bi-box-arrow-up-right {
    font-size: 0.875rem;
  }
}

/* Small mobile devices */
@media (max-width: 576px) {
  .navbar-nav .nav-link {
    padding: 0.875rem 1.25rem;
  }

  .btn-header {
    width: 100%;
    margin: 0.5rem 0;
  }
}
