/* CSS variables for shared gradients */
:root {
  --bg-gradient-start: #f8fafc;
  --bg-gradient-end: #e2e8f0;
}

/* Premium Top Drawer Styles - Physically Attached to Navbar */
.top-drawer-container {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 999;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  /* Extend container to show attached tab */
  height: auto;
  min-height: 0;
}

.top-drawer {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: none;
  width: 100%;
  position: relative;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: auto;
  z-index: 999;
}

.top-drawer.open {
  transform: translateY(0);
}

.drawer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 8px 2rem;
  height: 100%;
}

.drawer-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  width: 90px;
  height: 90px;
}

.drawer-logo-link:hover {
  transform: scale(1.1) rotate(2deg);
}

.drawer-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.drawer-logo-link:hover .drawer-logo {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 3px 6px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Specific styling for Print Buddy logo - 5% zoom */
.drawer-logo[alt="Print Buddy"] {
  transform: scale(1.05);
}

/* Maintain zoom on hover for Print Buddy logo */
.drawer-logo-link:hover .drawer-logo[alt="Print Buddy"] {
  transform: scale(1.155) rotate(2deg); /* 1.05 * 1.1 = 1.155 */
}

.drawer-tab {
  position: absolute;
  bottom: -40px;
  right: 2rem;
  left: auto;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: auto;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Simple arrow positioning */
  margin-top: 8px;
  top: 100%;
}

.drawer-tab:hover {
  transform: scale(1.2);
  background: transparent !important;
}

.drawer-tab:active {
  transform: scale(1.1);
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.drawer-tab:focus {
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.drawer-tab:active {
  transform: scale(1.1);
  background: transparent !important;
}

.drawer-tab:focus {
  outline: none;
  background: transparent !important;
}

.drawer-arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: none !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.drawer-arrow.rotated {
  transform: rotate(180deg);
  color: rgba(255, 255, 255, 0.4);
  background: none !important;
}

/* Enhanced navbar integration with synchronized movement */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  will-change: transform;
  height: 80px;
}

/* Navbar states that affect drawer positioning */
.navbar.hidden {
  transform: translateY(-100%);
}

.navbar.visible {
  transform: translateY(0);
}

/* Synchronized drawer movement with navbar */
.top-drawer-container.navbar-hidden {
  transform: translateY(-100%);
}

.top-drawer-container.navbar-hidden .drawer-tab {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-20px);
}

.top-drawer-container.navbar-visible {
  transform: translateY(0);
}

.top-drawer-container.navbar-visible .drawer-tab {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Ensure navbar is always visible when mobile menu is active */
.navbar:has(.nav-menu.active),
.navbar.nav-menu-active {
  transform: translateY(0) !important;
}

.navbar:has(.nav-menu.active) + * .top-drawer-container,
.navbar.nav-menu-active + * .top-drawer-container {
  transform: translateY(0) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .top-drawer-container {
    top: 70px;
  }
  
  .top-drawer {
    border-radius: 0 0 16px 16px;
  }
  
  .drawer-content {
    gap: 1.5rem;
    padding: 6px 1.5rem;
    height: 100%;
  }
  
  .drawer-logo-link {
    width: 80px;
    height: 80px;
  }
  
  .drawer-logo {
    width: 80px;
    height: 80px;
  }
  
  .drawer-tab {
    right: 1.5rem;
    margin-top: 8px;
    background: transparent !important;
  }
  
  .navbar {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .top-drawer-container {
    top: 65px;
  }
  
  .drawer-content {
    gap: 1rem;
    padding: 5px 1.25rem;
    height: 100%;
  }
  
  .drawer-logo-link {
    width: 75px;
    height: 75px;
  }
  
  .drawer-logo {
    width: 75px;
    height: 75px;
  }
  
  .drawer-tab {
    right: 1.25rem;
    margin-top: 8px;
    background: transparent !important;
  }
  
  .navbar {
    height: 65px;
  }
}

.illustration-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
}
/* Services Section */
.services-section {
    width: 100%;
    background: #FFFFFF;
    padding: 0 0 80px 0;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Enhanced Essential Services Section */
.essential-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* Premium Essential Item Styling */
.essential-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 16px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

.essential-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.02) 0%, 
        rgba(99, 102, 241, 0.03) 50%, 
        rgba(139, 92, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.essential-item:hover::before {
    opacity: 1;
}

.essential-item:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Premium Responsive Design */
@media (min-width: 640px) {
    .essential-services {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .essential-services {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Enhanced Logo Styling */
.essential-logo {
    margin-right: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.circular-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.essential-item:hover .circular-logo {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Enhanced Content Styling */
.essential-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.essential-title {
    font-size: 1.2rem;
    font-weight: 650;
    margin: 0 0 0.5rem 0;
    color: #1e293b;
    transition: all 0.4s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.essential-description {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    transition: color 0.4s ease;
    font-weight: 500;
}
/* Premium Hover Effects with Enhanced Colors */
.essential-item:nth-child(1):hover {
    background: linear-gradient(135deg, 
        rgba(186, 104, 200, 0.08) 0%, 
        rgba(186, 104, 200, 0.05) 100%);
}

.essential-item:nth-child(1):hover .essential-title {
    color: #BA68C8;
    text-shadow: 0 2px 4px rgba(186, 104, 200, 0.2);
}

.essential-item:nth-child(2):hover {
    background: linear-gradient(135deg, 
        rgba(255, 213, 79, 0.08) 0%, 
        rgba(255, 213, 79, 0.05) 100%);
}

.essential-item:nth-child(2):hover .essential-title {
    color: #F59E0B;
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.essential-item:nth-child(3):hover {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.08) 0%, 
        rgba(16, 185, 129, 0.05) 100%);
}

.essential-item:nth-child(3):hover .essential-title {
    color: #10B981;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.essential-item:nth-child(4):hover {
    background: linear-gradient(135deg, 
        rgba(255, 79, 129, 0.08) 0%, 
        rgba(255, 79, 129, 0.05) 100%);
}

.essential-item:nth-child(4):hover .essential-title {
    color: #FF4F81;
    text-shadow: 0 2px 4px rgba(255, 79, 129, 0.2);
}

.essential-item:nth-child(5):hover {
    background: linear-gradient(135deg, 
        rgba(255, 105, 180, 0.08) 0%, 
        rgba(255, 105, 180, 0.05) 100%);
}

.essential-item:nth-child(5):hover .essential-title {
    color: #FF69B4;
    text-shadow: 0 2px 4px rgba(255, 105, 180, 0.2);
}

.essential-item:nth-child(6):hover {
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.08) 0%, 
        rgba(74, 144, 226, 0.05) 100%);
}

.essential-item:nth-child(6):hover .essential-title {
    color: #4A90E2;
    text-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

.essential-item:nth-child(7):hover {
    background: linear-gradient(135deg, 
        rgba(139, 94, 60, 0.08) 0%, 
        rgba(139, 94, 60, 0.05) 100%);
}

.essential-item:nth-child(7):hover .essential-title {
    color: #8B5E3C;
    text-shadow: 0 2px 4px rgba(139, 94, 60, 0.2);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .essential-services {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .essential-item {
        padding: 1.25rem;
        transform: none !important;
        transition: none !important;
    }

    .essential-item:hover {
        transform: none !important;
    }

    .circular-logo {
        width: 56px;
        height: 56px;
        transition: none !important;
    }

    .essential-item:hover .circular-logo {
        transform: none !important;
    }

    .essential-title {
        font-size: 1.1rem;
        transition: none !important;
    }

    /* Static premium colors for mobile */
    .essential-item:nth-child(1) {
        background: linear-gradient(135deg, 
            rgba(186, 104, 200, 0.06) 0%, 
            rgba(186, 104, 200, 0.03) 100%) !important;
    }
    
    .essential-item:nth-child(1) .essential-title { 
        color: #BA68C8 !important; 
    }

    .essential-item:nth-child(2) {
        background: linear-gradient(135deg, 
            rgba(255, 213, 79, 0.06) 0%, 
            rgba(255, 213, 79, 0.03) 100%) !important;
    }
    
    .essential-item:nth-child(2) .essential-title { 
        color: #F59E0B !important; 
    }

    .essential-item:nth-child(3) {
        background: linear-gradient(135deg, 
            rgba(16, 185, 129, 0.06) 0%, 
            rgba(16, 185, 129, 0.03) 100%) !important;
    }
    
    .essential-item:nth-child(3) .essential-title { 
        color: #10B981 !important; 
    }

    .essential-item:nth-child(4) {
        background: linear-gradient(135deg, 
            rgba(255, 79, 129, 0.06) 0%, 
            rgba(255, 79, 129, 0.03) 100%) !important;
    }
    
    .essential-item:nth-child(4) .essential-title { 
        color: #FF4F81 !important; 
    }

    .essential-item:nth-child(5) {
        background: linear-gradient(135deg, 
            rgba(255, 105, 180, 0.06) 0%, 
            rgba(255, 105, 180, 0.03) 100%) !important;
    }
    
    .essential-item:nth-child(5) .essential-title { 
        color: #FF69B4 !important; 
    }

    .essential-item:nth-child(6) {
        background: linear-gradient(135deg, 
            rgba(74, 144, 226, 0.06) 0%, 
            rgba(74, 144, 226, 0.03) 100%) !important;
    }
    
    .essential-item:nth-child(6) .essential-title { 
        color: #4A90E2 !important; 
    }

    .essential-item:nth-child(7) {
        background: linear-gradient(135deg, 
            rgba(139, 94, 60, 0.06) 0%, 
            rgba(139, 94, 60, 0.03) 100%) !important;
    }
    
    .essential-item:nth-child(7) .essential-title { 
        color: #8B5E3C !important; 
    }
}

/* Additional Premium Styling */
.essential-item:hover .essential-description {
    color: #475569;
}

/* Responsive styling for essential services */
@media (max-width: 768px) {
    .essential-services {
        padding: 0 1.5rem;
        margin: 2rem auto;
    }
    
    .essential-logo {
        margin-right: 1.5rem;
    }
    
    .circular-logo {
        width: 70px;
        height: 70px;
    }
    
    .essential-title {
        font-size: 1.4rem;
    }
    
    .essential-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .essential-services {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }
    
    .essential-logo {
        margin-right: 1rem;
    }
    
    .circular-logo {
        width: 60px;
        height: 60px;
    }
    
    .essential-title {
        font-size: 1.2rem;
    }
    
    .essential-description {
        font-size: 0.9rem;
    }
}

/* Clean Section Styles */
.clean-section {
    width: 100%;
    background-color: #fff;
    margin-top: 2rem;
    padding: 2rem 0;
    min-height: 200px;
}

/* Premium Section Heading Styles */
.section-heading {
    width: 100%;
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(99, 102, 241, 0.08) 50%, 
        rgba(139, 92, 246, 0.05) 100%);
    border-radius: 24px;
    overflow: hidden;
}

.section-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

.section-heading h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, 
        #1e293b 0%, 
        #334155 30%, 
        #475569 70%, 
        #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    padding: 0.5rem 2rem;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
    z-index: 2;
    font-family: 'Playfair Display', serif;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, 
        #3b82f6 0%, 
        #6366f1 50%, 
        #8b5cf6 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.section-heading h2::before {
    content: '✨';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    z-index: 3;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }
}

/* Mobile responsiveness for section heading */
@media (max-width: 480px) {
    .section-heading h2 {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
        padding: 0.3rem 1.5rem;
    }
    
    .section-heading h2::before {
        font-size: 1.2rem;
        left: -1rem;
    }
}

/* MNIT Tour Button Styles */
.tour-btn-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 5rem;  /* Spacing between button and tiles section */
    margin-top: 1rem;
}

.mnit-tour-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Better centering for all screen sizes */
    gap: 0.8em;
    background: linear-gradient(135deg, #FF0000, #CC0000);
    color: white;
    border: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 15px -5px rgba(255, 0, 0, 0.3), 
                0 4px 8px -5px rgba(0, 0, 0, 0.1),
                inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: auto; /* Let the button size fit its content */
}

/* Gradient shimmer animation on hover */
.mnit-tour-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

.mnit-tour-btn i.fab.fa-youtube {
    font-size: 1.2em;
    color: #fff;
    margin-right: 0.1em;
    display: flex;
    align-items: center;
}

.mnit-tour-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px -5px rgba(255, 0, 0, 0.4),
                0 6px 10px -5px rgba(0, 0, 0, 0.1),
                inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.mnit-tour-btn:hover::before {
    left: 100%;
}

.mnit-tour-btn:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 3px 8px -3px rgba(255, 0, 0, 0.3);
}

.mnit-tour-btn:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .tour-btn-wrapper {
        margin-bottom: 4rem;
    }
}

@media (max-width: 768px) {
    .tour-btn-wrapper {
        margin-bottom: 3.5rem;
    }
    
    .mnit-tour-btn {
        font-size: 1.1rem;
        padding: 10px 18px;
    }
}

@media (max-width: 600px) {
    .tour-btn-wrapper {
        margin-bottom: 3rem;
        padding: 0 20px; /* Add side padding for consistent spacing */
    }
}

@media (max-width: 480px) {
    .mnit-tour-btn {
        font-size: 1rem;
        padding: 8px 16px;
        width: auto; /* Keep it sized to content */
    }
}
/* Removed tiles banner styles */

/* Removed service tile styles */

/* Removed service tile hover styles */

/* Removed tile-logo and tile-content styles */

/* Removed service tile content styles */
/* Removed responsive grid styles */

@media (max-width: 768px) {
    .services-container {
        padding: 0 0.5rem;
    }
    .clean-section {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .clean-section {
        padding: 1rem 0;
        min-height: 100px;
    }
}

/* Process Section */
.process-section {
    padding: 4rem 2rem;
    background: #f8fafc;
    max-width: 1200px;
    margin: 4rem auto;
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.08);
}
.process-container {
    max-width: 800px;
    margin: 0 auto;
}
.process-header {
    text-align: center;
    margin-bottom: 3rem;
}
.process-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
    position: relative;
    display: inline-block;
}
.process-heading::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
}
.process-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.process-step {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.process-step:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    transform: translateY(-1px);
    border-color: #d1d5db;
}
.process-step[open] {
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.08), 0 3px 6px rgba(37, 99, 235, 0.04);
    border-color: #2563eb;
}
.process-step-header {
    padding: 1.75rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    border: none;
    font-family: inherit;
    width: 100%;
    transition: all 0.2s ease;
    list-style: none;
    border-radius: 16px;
}
.process-step-header::-webkit-details-marker {
    display: none;
}
.process-step-header::marker {
    display: none;
}
.process-step[open] .process-step-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.step-icon {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    width: 12px;
    height: 12px;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}
.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    flex: 1;
    letter-spacing: -0.025em;
}
.step-arrow {
    font-size: 1.25rem;
    font-weight: 400;
    color: #6b7280;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
}
.process-step[open] .step-arrow {
    transform: rotate(45deg);
    background: #e5e7eb;
    color: #374151;
}
.process-step-content {
    padding: 0 2rem 2rem 2rem;
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: none;
}
.process-step-content p {
    margin: 0;
}
@keyframes slideDown {
    }
    .process-step {
        border-radius: 12px;
    }
    .process-step-header {
        padding: 1.5rem 1.5rem;
        gap: 1rem;
        border-radius: 12px;
    }
    .step-icon {
        width: 10px;
        height: 10px;
        border-radius: 5px;
    }
    .step-title {
        font-size: 1.1rem;
    }
    .step-arrow {
        width: 20px;
        height: 20px;
        font-size: 1rem;
    }
    .process-step-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
        font-size: 0.95rem;
    }
@media (max-width: 600px) {
    .services-container {
        padding: 0 1rem;
    }
    /* Removed service-tile styles */
}
/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.4,2,.6,1), transform 0.7s cubic-bezier(.4,2,.6,1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Enhanced smooth scrolling for mobile devices */
@media screen and (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Disable smooth scrolling for users who prefer reduced motion */
@media screen and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Mobile-specific smooth scrolling improvements */
@media screen and (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        /* Enable momentum scrolling on iOS */
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        /* Improve touch scrolling on mobile */
        -webkit-overflow-scrolling: touch;
        /* Prevent horizontal scroll bounce */
        overflow-x: hidden;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header/Navbar styles - integrated with drawer */

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.hidden {
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.visible {
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ensure navbar is always visible when mobile menu is active */
.navbar:has(.nav-menu.active),
.navbar.nav-menu-active {
    transform: translateY(0) !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
}

.logo h2 a {
    color: #333;
    text-decoration: none;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #22c55e;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #22c55e;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Removed .nav-cta styles as Explore button is no longer used */

/* CTA Button styles */
.cta-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease; /* remove transform scaling */
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s;
    z-index: 1;
}

.cta-btn::after {
    content: '→';
    position: absolute;
    right: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-10px);
    z-index: 1;
}

.cta-btn span {
    position: relative;
    z-index: 2;
}

.cta-btn:hover {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover::after {
    opacity: 1;
    transform: translateX(0);
    right: 1rem;
}

.cta-btn:active {
    transform: none;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bar {
    width: 24px;
    height: 2px;
    background: #0f172a;
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s ease;
}

/* Responsive design */

/* Animation keyframes used by other sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 68px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* .nav-cta removed */
    
}

/* Medium-small screens */
@media (max-width: 640px) {
    .nav-container {
        padding: 0.625rem 0.875rem;
    }
    
    .logo h2 {
        font-size: 1.7rem;
    }
    
    .nav-menu {
        top: 62px;
    }
}

/* Very small screens - ultra compact navbar */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem 0.75rem;
    }
    
    .logo h2 {
        font-size: 1.6rem;
    }
    
    .hamburger {
        padding: 6px 8px;
        border-radius: 10px;
    }
    
    .nav-menu {
        top: 57px;
    }
}

@media (max-width: 480px) {
    
    .cta-btn:hover::after {
        right: 0.8rem;
    }
}

/* Premium Seniors' Tips Section */
.tips-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, 
    #f8fafc 0%, 
    #f1f5f9 25%, 
    #e2e8f0 75%, 
    #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.tips-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top center, 
    rgba(59, 130, 246, 0.03) 0%, 
    transparent 50%);
  pointer-events: none;
}

.tips-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Premium Tips Header */
.tips-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.tips-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  height: 80px;
  margin: 0 auto 3rem auto;
  border-radius: 24px;
  background: linear-gradient(135deg, 
    #f59e42 0%, 
    #f43f5e 25%, 
    #8b5cf6 50%, 
    #3b82f6 75%, 
    #06b6d4 100%);
  box-shadow: 
    0 8px 32px rgba(244, 63, 94, 0.15),
    0 4px 16px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.tips-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
}

.tips-heading {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.1);
  margin: 0;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  font-family: 'Playfair Display', serif;
  position: relative;
  z-index: 2;
}

/* Premium Tips Feed Container */
.tips-feed-container {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 255, 255, 0.98) 100%);
  border-radius: 24px;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.tips-feed-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.02) 0%, 
    rgba(99, 102, 241, 0.03) 50%, 
    rgba(139, 92, 246, 0.02) 100%);
  pointer-events: none;
  z-index: 1;
}

.tips-input-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  background: linear-gradient(135deg, 
    rgba(248, 250, 252, 0.8) 0%, 
    rgba(241, 245, 249, 0.9) 100%);
  position: relative;
  z-index: 2;
}

.tips-input-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tip-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.tip-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  background: #ffffff;
  margin-right: 10px;
}

.tip-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.post-tip-btn {
  flex-shrink: 0;
  width: 70px;
  padding: 0.75rem 0;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.post-tip-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Image Upload Button */
.image-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.image-upload-btn:hover {
  border-color: #22c55e;
  color: #22c55e;
  background: #f0fdf4;
}

.image-upload-btn:active {
  transform: scale(0.95);
}

/* Image Preview */
.image-preview {
  position: relative;
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.image-preview img {
  max-width: 200px;
  max-height: 150px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
}

.remove-image-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.2s ease;
}

.remove-image-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

/* Profile Image Styles */
.profile-image {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  transition: border-color 0.2s ease;
}

.profile-image:hover {
  border-color: #22c55e;
}

.profile-image-small {
  width: 40px;
  height: 40px;
}

.profile-image-medium {
  width: 80px;
  height: 80px;
}

.profile-image-large {
  width: 150px;
  height: 150px;
}

/* Tip image styles removed - tips are text-only */

.post-tip-btn:active {
  transform: translateY(0);
}

/* Premium Tips Feed */
.tips-feed {
  max-height: 520px;
  overflow-y: auto;
  padding: 1.5rem 0;
  position: relative;
  z-index: 2;
}

/* Custom scrollbar for tips feed */
.tips-feed::-webkit-scrollbar {
  width: 6px;
}

.tips-feed::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.5);
  border-radius: 8px;
}

.tips-feed::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  border-radius: 8px;
  transition: background 0.3s ease;
}

.tips-feed::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}

/* Premium Tip Cards */
.tip-card {
  display: flex;
  padding: 1.5rem;
  margin: 0.5rem 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(255, 255, 255, 0.95) 100%);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(226, 232, 240, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.tip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.03) 0%, 
    rgba(99, 102, 241, 0.02) 50%, 
    rgba(139, 92, 246, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tip-card:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.08),
    0 3px 10px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-color: rgba(59, 130, 246, 0.2);
}

.tip-card:hover::before {
  opacity: 1;
}

.tip-card:last-child {
  margin-bottom: 1rem;
}

/* Premium Tip Profile Avatar */
.tip-profile {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.25),
    0 2px 6px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.tip-card:hover .tip-profile {
  transform: scale(1.05);
  box-shadow: 
    0 6px 16px rgba(59, 130, 246, 0.3),
    0 3px 8px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Enhanced Tip Content */
.tip-content {
  flex: 1;
  min-width: 0;
  margin-left: 16px;
  position: relative;
  z-index: 2;
}

.tip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  position: relative;
}

.tip-name {
  font-weight: 650;
  color: #1e293b;
  font-size: 1rem;
  margin: 0;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: color 0.3s ease;
}

.tip-card:hover .tip-name {
  color: #0f172a;
}

.tip-text {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.75rem 0;
  word-wrap: break-word;
  font-weight: 500;
  transition: all 0.3s ease;
  /* Ensure normal tip text displays fully */
  display: block;
  overflow: visible;
  max-height: none;
}

.tip-card:hover .tip-text {
  color: #334155;
}

/* Read More/Read Less functionality */
.tip-text-container {
  position: relative;
  /* Ensure container doesn't interfere with delete button */
  z-index: 1;
}

/* Ensure normal tip text is not truncated */
.tip-text:not(.truncated) {
  display: block !important;
  overflow: visible !important;
  max-height: none !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: unset !important;
}

.tip-text.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 4.8rem; /* Approximate height for 3 lines */
}

.tip-text.expanded {
  overflow: visible;
  display: block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: none;
}

.read-more-btn {
  background: none;
  border: none;
  color: #3b82f6;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.125rem 0.25rem;
  margin: 0.375rem 0 0 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 4px;
  position: relative;
  font-family: inherit;
}

.read-more-btn:hover {
  color: #2563eb;
  background-color: rgba(59, 130, 246, 0.04);
  transform: translateY(-1px);
}

.read-more-btn:active {
  transform: translateY(0);
  background-color: rgba(59, 130, 246, 0.08);
}

.read-more-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 4px;
}

.read-more-btn:focus:not(:focus-visible) {
  outline: none;
}

.read-more-btn .chevron-icon {
  font-size: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
}

.read-more-btn:hover .chevron-icon {
  opacity: 1;
}

.read-more-btn.expanded .chevron-icon {
  transform: rotate(180deg);
}

/* Smooth height transition for tip cards */
.tip-card {
  transition: all 0.3s ease, height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Improve line-height for better text flow */
.tip-text-content,
.tip-text-full {
  line-height: inherit;
  word-break: break-word;
  hyphens: auto;
}

.tip-timestamp,
.tip-time {
  color: #6b7280;  /* text-gray-500 */
  font-size: 0.7rem; /* text-xs */
  text-align: right;
  margin: 0;
  position: absolute;
  top: 0;
  right: 0;
}

/* Enhanced Tip Actions */
.tip-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(241, 245, 249, 0.8);
}

/* Premium Upvote Button */
.upvote-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.8) 0%, 
    rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 12px;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.upvote-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(59, 130, 246, 0.1), 
    transparent);
  transition: left 0.5s ease;
}

.upvote-btn:hover {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.08) 0%, 
    rgba(99, 102, 241, 0.05) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

.upvote-btn:hover::before {
  left: 100%;
}

.upvote-btn.upvoted {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.12) 0%, 
    rgba(99, 102, 241, 0.08) 100%);
  border-color: rgba(59, 130, 246, 0.4);
  color: #3b82f6;
  box-shadow: 
    0 2px 8px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.upvote-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 1px 3px rgba(59, 130, 246, 0.2),
    inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Enhanced Upvote Icon and Count */
.upvote-icon {
  width: 18px;
  height: 18px;
  transition: all 0.3s ease;
}

.upvote-btn:hover .upvote-icon {
  transform: scale(1.1);
}

.upvote-count {
  font-weight: 600;
  min-width: 1.2rem;
  text-align: center;
  transition: color 0.3s ease;
}

/* Premium Mobile Responsiveness for Tips Section */
@media (max-width: 768px) {
  .tips-section {
    padding: 3rem 0;
  }
  
  .tips-container {
    padding: 0 1rem;
  }
  
  .tips-header {
    margin-bottom: 3rem;
  }
  
  .tips-banner {
    max-width: 320px;
    height: 70px;
    margin-bottom: 2rem;
  }
  
  .tips-heading {
    font-size: 2.2rem;
    letter-spacing: -0.5px;
  }
  
  .tips-feed-container {
    max-width: 100%;
    border-radius: 20px;
    margin: 0 0.5rem;
  }
  
  .tips-input-container {
    padding: 1.5rem;
  }
  
  .tips-feed {
    max-height: 400px;
    padding: 1rem 0;
  }
  
  .tip-card {
    margin: 0.5rem 0.5rem;
    padding: 1.25rem;
    border-radius: 12px;
    /* Disable hover effects on mobile */
    transform: none !important;
  }
  
  .tip-card:hover {
    transform: none !important;
    box-shadow: 
      0 2px 8px rgba(0, 0, 0, 0.04),
      0 1px 3px rgba(0, 0, 0, 0.02);
  }
  
  .tip-profile {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
  }
  
  .tip-card:hover .tip-profile {
    transform: none !important;
  }
  
  .tip-content {
    margin-left: 12px;
  }
  
  .tip-name {
    font-size: 0.95rem;
  }
  
  .tip-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .upvote-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 10px;
    /* Disable hover effects */
    transform: none !important;
  }
  
  .upvote-btn:hover {
    transform: none !important;
  }
  
  .upvote-icon {
    width: 16px;
    height: 16px;
  }

  /* Mobile Read More/Read Less styles */
  .read-more-btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.375rem;
    margin: 0.5rem 0 0 0;
    touch-action: manipulation;
    gap: 0.5rem;
    min-height: 36px; /* Better touch target */
  }
  
  /* Ensure normal tip text is not truncated on mobile */
  .tip-text:not(.truncated) {
    display: block !important;
    overflow: visible !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
  }
  
  .tip-text.truncated {
    -webkit-line-clamp: 2; /* Show fewer lines on mobile */
    line-clamp: 2;
    max-height: 3.2rem; /* Adjust for 2 lines */
  }
  
  .tip-text-container {
    width: 100%;
  }
  
  .read-more-btn .chevron-icon {
    font-size: 0.7rem;
  }
}

.empty-tips-state {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  color: #64748b;
  font-size: 1.1rem;
  text-align: center;
  font-style: italic;
  height: 200px;  /* Ensure it takes up space for better visibility */
}

.loading-more-tips {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  color: #64748b;
  font-size: 0.9rem;
  text-align: center;
  position: relative;
}

.loading-more-tips::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.75rem;
}

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

.end-of-tips {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  color: #9ca3af;
  font-size: 0.875rem;
  text-align: center;
  font-style: italic;
  border-top: 1px solid #f1f5f9;
  margin-top: 1rem;
  animation: fadeIn 0.5s ease;
}

/* Responsive Design for Tips */
@media (max-width: 768px) {
  .tips-section {
    padding: 3rem 0;
  }
  
  .tips-container {
    padding: 0 1rem;
  }
  
  .tips-banner {
    max-width: 80%;
    height: 54px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
  }
  .tips-heading {
    font-size: 1.75rem;
    letter-spacing: 1px;
  }
  
  .tips-feed-container {
    max-width: 100%;
    border-radius: 12px;
  }
  
  .tips-input-container {
    padding: 1rem;
  }
  
  .tip-input {
    font-size: 0.9rem;
    margin-right: 8px;
  }
  
  .post-tip-btn {
    width: 60px;
    font-size: 0.85rem;
  }
  
  .tip-card {
    padding: 0.75rem 1rem;
  }
  
  .tip-profile {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
  
  .tip-content {
    margin-left: 10px;
  }
  
  .tip-name {
    font-size: 0.9rem;
  }
  
  .tip-text {
    font-size: 0.85rem;
  }
  
  .loading-more-tips {
    padding: 1rem;
    font-size: 0.85rem;
  }
  
  .end-of-tips {
    padding: 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .tips-heading {
    font-size: 1.3rem;
  }
  
  .tips-banner {
    max-width: 98%;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: 10px;
  }
  .tips-heading {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
  }
  
  .tips-input-container {
    padding: 0.75rem;
  }
  
  .tip-input {
    font-size: 0.85rem;
    margin-right: 6px;
    padding: 0.6rem 0.8rem;
  }
  
  .post-tip-btn {
    width: 55px;
    padding: 0.6rem 0;
    font-size: 0.8rem;
  }
  
  .tip-card {
    padding: 0.6rem 0.75rem;
  }
  
  .tip-profile {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  
  .tip-content {
    margin-left: 8px;
  }
  
  .tip-name {
    font-size: 0.85rem;
  }
  
  .tip-text {
    font-size: 0.8rem;
  }
  
  .tip-timestamp,
  .tip-time {
    font-size: 0.65rem;
  }
  
  .upvote-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .upvote-icon {
    width: 14px;
    height: 14px;
  }
  
  .loading-more-tips {
    padding: 1rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .end-of-tips {
    padding: 1rem 0.5rem;
    font-size: 0.8rem;
  }
  
  /* Read More Button - Mobile Extra Small Screens */
  .read-more-btn {
    padding: 6px 12px;
    font-size: 0.7rem;
    min-height: 36px;
    touch-action: manipulation;
    gap: 4px;
  }
  
  /* Ensure normal tip text is not truncated on small mobile */
  .tip-text:not(.truncated) {
    display: block !important;
    overflow: visible !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
  }
  
  .tip-text.truncated {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-height: 3.2rem;
  }
}

/* --- HERO SECTION PREMIUM ENHANCEMENT --- */
.hero-section {
  background: linear-gradient(120deg, #d1d5ff 0%, #b8c5ff 60%, #f5d6b8 100%);
  padding: 4.5rem 0 3.5rem 0; /* Reduced padding for more compact look */
  min-height: 380px; /* Reduced min-height */
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-container {
  max-width: 900px; /* Reduced max-width for better centered content */
  margin: 0 auto;
  padding: 0 2.5rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center; /* Center content horizontally */
  text-align: center; /* Center text */
}

.hero-text {
  max-width: 700px; /* Control the text width */
  z-index: 1;
}

.hero-heading {
  font-size: 3.5rem; /* Slightly increased for better visibility */
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.15;
  color: #1e293b;
  margin-bottom: 1.5rem; /* Increased spacing */
  text-shadow: 0 2px 12px rgba(59,130,246,0.07);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 0.8s 0.1s cubic-bezier(.4,1.2,.6,1) forwards;
}

.hero-paragraph {
  font-size: 1.35rem; /* Slightly increased for better visibility */
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px; /* Constrained width for better readability */
  margin-left: auto; /* Center the paragraph */
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 0.8s 0.3s cubic-bezier(.4,1.2,.6,1) forwards;
}



.hero-illustration {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  z-index: 1;
}

.hero-illustration-img {
  max-width: 370px;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 8px 32px 0 rgba(34,197,94,0.08);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 0.8s 0.7s cubic-bezier(.4,1.2,.6,1) forwards;
}

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

@media (max-width: 900px) {
  .hero-section {
    padding: 3.5rem 0 2.5rem 0;
    min-height: 320px; /* Reduced height for more compact mobile view */
  }
  .hero-container {
    padding: 0 1.5rem;
  }
  .hero-heading {
    font-size: 2.6rem; /* Adjusted for better visibility */
  }
  .hero-paragraph {
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
  }
}

@media (max-width: 700px) {
  .hero-section {
    padding-top: 80px;
    padding-bottom: 40px; /* Reduced padding for more compact mobile view */
    min-height: 280px;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero-text {
    width: 100%;
    margin-bottom: 0;
  }
  .hero-heading {
    font-size: 2rem; /* Larger than before for better visibility on mobile */
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  .hero-paragraph {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 100%; /* Full width on mobile */
  }

  .hero-illustration-img {
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 0 1.8rem 0;
    min-height: 250px; /* Even more compact for smallest screens */
  }
  .hero-heading {
    font-size: 1.6rem; /* Increased for better readability */
    letter-spacing: 0.5px;
    line-height: 1.3;
  }
  .hero-paragraph {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
  }
}
/* --- END HERO SECTION PREMIUM ENHANCEMENT --- */

/* --- HERO SECTION BANNER REFACTOR FOR MOBILE --- */
.hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 18px;
  padding: 1.2rem 2.2rem;
  margin-bottom: 0;
  box-shadow: 0 4px 24px rgba(59,130,246,0.10);
  min-width: 0;
}

.hero-banner .hero-heading {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: #fff;
  margin: 0;
}

.hero-secondary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.5rem;
  flex: 1 1 0;
  min-width: 0;
  margin-left: 0;
}

@media (max-width: 700px) {
  .hero-content {
    flex-direction: column;
    align-items: stretch;
    gap: 2.2rem;
  }
  .hero-banner {
    width: 100%;
    margin-bottom: 1.2rem;
    padding: 1.1rem 0.7rem;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(59,130,246,0.10);
  }
  .hero-banner .hero-heading {
    color: #fff;
    font-size: 1.45rem;
    text-align: center;
    letter-spacing: 1.2px;
    line-height: 1.2;
    margin: 0;
  }
  .hero-secondary {
    align-items: center;
    text-align: center;
    gap: 1.1rem;
    margin-left: 0;
  }
  .hero-paragraph {
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
  }

  .hero-illustration {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
  }
  .hero-illustration-img {
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    padding: 0.7rem 0.2rem;
    border-radius: 10px;
  }
  .hero-banner .hero-heading {
    font-size: 1.05rem;
    letter-spacing: 0.7px;
  }

  .hero-illustration-img {
    max-width: 110px;
  }
}
/* --- END HERO SECTION BANNER REFACTOR FOR MOBILE --- */

@media (max-width: 768px) {
  .hero-section {
    padding-top: 120px; /* Increased for navbar clearance */
    padding-bottom: 2.5rem;
  }
  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }
  /* Mobile Hero Styles */
  .hero-section {
    padding-top: 100px;
    min-height: 90vh;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-text {
    width: 100%;
  }
  
  .hero-heading {
    font-size: 2.5rem;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-paragraph {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: none;
  }
  

  
  .hero-image {
    transform: none;
    border-radius: 16px;
    max-width: 350px;
  }
  
  .hero-decoration {
    width: 80px;
    height: 80px;
    top: -15px;
    right: -15px;
  }
  .hero-illustration {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .hero-illustration-img {
    max-width: 160px;
    width: 100%;
    height: auto;
  }
  .hero-banner {
    display: none !important;
  }
}

/* --- Moved from index.html inline <style> --- */
/* Hero section styling refinements */
.hero-heading {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
  font-weight: 700;
}

.hero-illustration-img {
  border-radius: 24px;
  transition: border-radius 0.3s ease;
}

/* Center alignment for all screen sizes */
.hero-content {
  align-items: center;
  justify-content: center;
}

/* Hero section refactoring for mobile view */
@media (max-width: 768px) {
  .hero-section {
    position: relative;
    overflow: visible;
    padding-bottom: 0;
  }
  .hero-content {
    flex-direction: column;
  }
  .hero-mobile-top {
    padding: 40px 20px 60px;
    background: linear-gradient(to bottom, var(--bg-gradient-start), var(--bg-gradient-end));
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    text-align: center;
  }
  .hero-mobile-bottom {
    margin-top: -30px;
    padding-top: 0;
    position: relative;
    z-index: 2;
  }
  .hero-illustration {
    transform: translateY(0);
    margin: 0 auto;
  }
  .illustration-container {
    display: flex;
    justify-content: center;
  }
  .hero-illustration-img {
    max-width: 90%;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    border-radius: 30px;
  }
}

/* Modal Base Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0 24px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.modal-close {
  background: none !important;
  border: none !important;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 0;
  transition: color 0.2s ease;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none !important;
  box-shadow: none !important;
}

.modal-close:hover {
  color: #374151;
  background: none !important;
  border: none !important;
}

.modal-close:focus {
  color: #374151;
  background: none !important;
  border: none !important;
  outline: none !important;
}

.modal-close:active {
  color: #1f2937;
  background: none !important;
  border: none !important;
}

.modal-body {
  padding: 0 24px 24px 24px;
}





/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Responsive modal adjustments */
@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    border-radius: 12px;
  }
  
  .modal-header,
  .modal-body {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .modal-header {
    padding-top: 20px;
    margin-bottom: 20px;
  }
  
  .modal-body {
    padding-bottom: 20px;
  }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
  .hero-heading {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }
  
  .hero-paragraph {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  

  
  .hero-image {
    max-width: 280px;
  }
  
  .hero-decoration {
    width: 60px;
    height: 60px;
    top: -10px;
    right: -10px;
  }
}

/* Profile Modal Styles */
.profile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1rem;
}

.profile-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.profile-modal {
  background: linear-gradient(135deg, #F0F8FF 0%, #e6f2ff 100%);
  border-radius: 20px;
  box-shadow: 
    0 20px 40px -12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  max-width: 440px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.profile-modal-overlay.active .profile-modal {
  transform: scale(1) translateY(0);
}

.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 0.75rem;
  background: linear-gradient(135deg, #4dabff 0%, #2b6cb0 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.profile-modal-header::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="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="30" r="1.5" fill="white" opacity="0.1"/><circle cx="40" cy="70" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="80" r="2.5" fill="white" opacity="0.1"/></svg>');
  pointer-events: none;
}

.profile-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 1;
  font-family: 'Outfit', 'Poppins', sans-serif;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.profile-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.profile-modal-content {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(85vh - 100px);
}

/* Profile Tab Navigation */
.profile-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 0.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(75, 171, 255, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.profile-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.75rem 0.5rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Outfit', 'Poppins', sans-serif;
}

.profile-tab-btn i {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.profile-tab-btn span {
  display: none;
}

.profile-tab-btn.active {
  background: rgba(75, 171, 255, 0.1);
  color: #4dabff;
  transform: translateY(-1px);
}

.profile-tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.8);
  color: #4dabff;
}

/* Tab Content */
.profile-tab-content {
  position: relative;
  min-height: 300px;
}

.profile-tab-panel {
  display: none;
}

.profile-tab-panel.active {
  display: block;
  animation: fadeInTab 0.3s ease forwards;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Loading States */
.tab-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #64748b;
  font-size: 0.9rem;
  gap: 0.75rem;
}

.tab-loading i {
  font-size: 1.5rem;
  color: #4dabff;
}

/* Empty States */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: #64748b;
}

.empty-state i {
  font-size: 2.5rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.empty-state h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #475569;
  font-family: 'Outfit', 'Poppins', sans-serif;
}

.empty-state p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

/* Tips List Styling */
.tips-list, .spotlight-list, .liked-spotlight-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.tip-item, .spotlight-item, .liked-spotlight-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 8px;
  padding: 0.875rem;
  transition: all 0.2s ease;
}

.tip-item:hover, .spotlight-item:hover, .liked-spotlight-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(75, 171, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(75, 171, 255, 0.1);
}

.tip-content {
  margin-bottom: 0.5rem;
}

/* Profile modal specific tip text styling */
.tips-list .tip-text,
.spotlight-list .tip-text,
.liked-spotlight-list .tip-text {
  font-size: 0.875rem;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tip-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
}

.tip-meta-right {
  display: flex;
  align-items: center;
}

.tip-upvote-count {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(75, 171, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(75, 171, 255, 0.2);
  font-weight: 500;
}

.tip-upvote-count i {
  color: #4dabff;
  font-size: 0.75rem;
}

/* Top-right positioned delete button for tips */
.tip-delete-top-right {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  padding: 0.375rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
  z-index: 10; /* Ensure it's above other elements */
}

.tip-delete-top-right:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
  transform: scale(1.05);
}

/* Make tip-item relative for absolute positioning of delete button */
.tip-item {
  position: relative;
}

.tip-date {
  font-family: 'JetBrains Mono', monospace;
}

.tip-stats {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.tip-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tip-stat i {
  color: #4dabff;
}

/* Like Button in Profile Tabs */
.tip-stat .like-btn {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
  font-size: 0.75rem;
}

.tip-stat .like-btn:hover {
  color: #ff6b6b;
  transform: scale(1.05);
}

.tip-stat .like-btn.liked {
  color: #ff6b6b;
}

.tip-stat .like-btn.liked i {
  color: #ff6b6b;
  animation: heartBeat 0.3s ease;
}

.tip-stat .like-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tip-stat .like-btn:disabled:hover {
  transform: none;
  color: #64748b;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Delete Button Styles */
.delete-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
  font-size: 0.75rem;
  border-radius: 4px;
}

.delete-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  transform: scale(1.05);
}

.delete-btn i {
  font-size: 0.7rem;
}

/* Liked Spotlight Actions */
.liked-spotlight-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.liked-spotlight-actions .like-btn {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.2);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
  font-size: 0.75rem;
}

.liked-spotlight-actions .like-btn:hover {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.3);
  transform: translateY(-1px);
}

.liked-spotlight-actions .like-btn.liked {
  background: rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.4);
  color: #ff6b6b;
}

.liked-spotlight-actions .like-btn.liked i {
  color: #ff6b6b;
}

/* Tip Tags */
.tip-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.tip-tag {
  background: linear-gradient(135deg, #e0f2fe, #f0f8ff);
  color: #1e40af;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid rgba(75, 171, 255, 0.2);
}

/* Spotlight Specific Styling */
.spotlight-content {
  margin-bottom: 0.75rem;
}

.spotlight-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

@keyframes sparkle {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-50%) scale(1.2);
    opacity: 1;
  }
}

/* Profile Spotlight Card - New Design with Teal Theme */
.profile-spotlight-card {
  background: linear-gradient(145deg, #ffffff, #f0fdfa);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 10px rgba(45, 212, 191, 0.1);
}

.profile-spotlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 212, 191, 0.15);
  border-color: rgba(45, 212, 191, 0.4);
}

.profile-spotlight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.profile-spotlight-header-left {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.profile-spotlight-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  font-family: 'Outfit', 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0d9488, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-spotlight-delete-btn {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.profile-spotlight-delete-btn:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
  transform: scale(1.05);
}

.profile-spotlight-avatar {
  flex-shrink: 0;
}

.profile-spotlight-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(45, 212, 191, 0.3);
  box-shadow: 0 2px 8px rgba(45, 212, 191, 0.15);
}

.profile-spotlight-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ecfdf5, #f0f9ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d9488;
  font-size: 1.25rem;
  border: 2px solid rgba(45, 212, 191, 0.3);
}

.profile-spotlight-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(236, 253, 245, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(45, 212, 191, 0.15);
}

.profile-spotlight-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
}

.profile-spotlight-detail i {
  color: #0d9488;
  font-size: 0.875rem;
  width: 16px;
  text-align: center;
}

.profile-spotlight-detail span {
  font-weight: 500;
}

.profile-spotlight-description {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  padding: 0.875rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  border: 1px solid rgba(45, 212, 191, 0.1);
  font-style: italic;
}

.profile-spotlight-footer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(45, 212, 191, 0.15);
}

.premium-stat {
  position: relative;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.05), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.premium-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.1), transparent);
  transition: left 0.6s ease;
}

.premium-stat:hover::before {
  left: 100%;
}

.premium-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: 0 4px 15px rgba(45, 212, 191, 0.2);
}

.stat-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(6, 182, 212, 0.15));
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.profile-spotlight-stat-icon {
  font-size: 1rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.profile-spotlight-stat-count {
  font-weight: 700;
  color: #0f172a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stat-label {
  font-size: 0.75rem;
  color: #0d9488;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spotlight-year {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.spotlight-description {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  /* Removed line-clamp to allow JavaScript read more functionality */
}

/* Read More Trigger Styling */
.read-more-trigger {
  color: #3b82f6; /* Blue color to make it more visible */
  font-style: italic;
  cursor: pointer;
  font-size: 0.875rem; /* Slightly larger font */
  transition: color 0.2s ease;
  margin-left: 4px;
  text-decoration: none;
  opacity: 1; /* Full opacity */
  font-weight: 500; /* Medium font weight */
}

.read-more-trigger:hover {
  color: #1d4ed8; /* Darker blue on hover */
  text-decoration: underline;
  opacity: 1;
}

.spotlight-branch {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.spotlight-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.view-more-btn {
  background: none;
  border: none;
  color: #4dabff;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  transition: color 0.2s ease;
}

.view-more-btn:hover {
  color: #2b6cb0;
}

/* Liked Spotlight Specific Styling */
.liked-spotlight-item {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(75, 171, 255, 0.15);
}

.liked-spotlight-content {
  margin-bottom: 0.75rem;
}

.liked-spotlight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.liked-spotlight-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  font-family: 'Outfit', 'Poppins', sans-serif;
}

.liked-spotlight-name i {
  color: #4dabff;
  font-size: 0.9rem;
}

.liked-spotlight-branch,
.liked-spotlight-department {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.liked-spotlight-branch i,
.liked-spotlight-department i {
  color: #6b7280;
  font-size: 0.8rem;
}

.liked-spotlight-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.liked-spotlight-actions {
  display: flex;
  gap: 0.5rem;
}

.view-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.view-profile-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* Scrollbar Styling */
.tips-list::-webkit-scrollbar, 
.spotlight-list::-webkit-scrollbar,
.liked-spotlight-list::-webkit-scrollbar {
  width: 4px;
}

.tips-list::-webkit-scrollbar-track, 
.spotlight-list::-webkit-scrollbar-track,
.liked-spotlight-list::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.3);
  border-radius: 2px;
}

.tips-list::-webkit-scrollbar-thumb, 
.spotlight-list::-webkit-scrollbar-thumb,
.liked-spotlight-list::-webkit-scrollbar-thumb {
  background: rgba(75, 171, 255, 0.3);
  border-radius: 2px;
}

.tips-list::-webkit-scrollbar-thumb:hover, .spotlight-list::-webkit-scrollbar-thumb:hover {
  background: rgba(75, 171, 255, 0.5);
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4dabff 0%, #2b6cb0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 
    0 10px 20px rgba(43, 108, 176, 0.25),
    0 0 0 3px rgba(240, 248, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.profile-avatar:hover::before {
  transform: translateX(100%);
}

.profile-status-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(43, 108, 176, 0.08);
  color: #2b6cb0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(43, 108, 176, 0.15);
  transform: translateY(-5px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.profile-info-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.875rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.2s ease;
}

.profile-info-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(75, 171, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(75, 171, 255, 0.1);
}

.profile-info-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: 'Outfit', 'Poppins', sans-serif;
}

.profile-info-label i {
  width: 16px;
  text-align: center;
  color: #4dabff;
}

.profile-info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  word-break: break-all;
  line-height: 1.4;
  margin-left: 1.75rem;
  font-family: 'Inter', 'Roboto', sans-serif;
}

.profile-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f0f8ff, #e0f2fe);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(75, 171, 255, 0.15);
  word-break: normal;
}

.stat-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e40af;
  font-family: 'Outfit', 'Poppins', sans-serif;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  text-transform: lowercase;
}

.profile-uid {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.8rem;
  background: rgba(75, 171, 255, 0.05);
  padding: 0.4rem;
  border-radius: 5px;
  border: 1px solid rgba(75, 171, 255, 0.12);
  letter-spacing: -0.01em;
}

.profile-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-action-btn {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Outfit', 'Poppins', sans-serif;
}

.profile-action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.profile-action-btn:hover::before {
  left: 100%;
}

.profile-action-btn.primary {
  background: linear-gradient(135deg, #ff4e4e 0%, #f43f5e 100%);
  color: white;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.25);
}

.profile-action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.3);
  filter: brightness(1.05);
}

.profile-action-btn.secondary {
  background: rgba(255, 255, 255, 0.8);
  color: #4b5563;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.profile-action-btn.secondary:hover {
  background: #ffffff;
  border-color: #4dabff;
  color: #4dabff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(75, 171, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .profile-modal {
    margin: 1rem;
    max-width: calc(100vw - 2rem);
  }
  
  .profile-modal-header,
  .profile-modal-content {
    padding: 1.5rem;
  }
  
  .profile-modal-content {
    padding-top: 1.5rem;
  }
  
  .profile-actions {
    flex-direction: column;
  }
  
  .profile-action-btn {
    min-width: auto;
  }
  
  .toast-container {
    top: 1rem;
    right: 1rem;
    left: 1rem;
  }
  
  .toast {
    min-width: auto;
    width: 100%;
  }

  /* Tab responsive styles */
  .profile-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.125rem;
    scroll-behavior: smooth;
    white-space: nowrap;
  }

  .profile-tabs::-webkit-scrollbar {
    display: none;
  }

  .profile-tab-btn {
    min-width: 60px;
    flex-shrink: 0;
    padding: 0.75rem 0.5rem;
    justify-content: center;
  }

  .profile-tab-btn i {
    font-size: 1.125rem;
  }

  .profile-tab-btn span {
    display: none;
  }

  .tips-list, .spotlight-list {
    max-height: 400px;
  }

  .tip-item, .spotlight-item {
    padding: 0.75rem;
  }

  .tip-delete-top-right {
    top: 0.375rem;
    right: 0.375rem;
    width: 24px;
    height: 24px;
    padding: 0.25rem;
    font-size: 0.6875rem;
    z-index: 10; /* Ensure it's above other elements on mobile */
  }

  .tip-upvote-count {
    padding: 0.1875rem 0.375rem;
    font-size: 0.6875rem;
  }

  /* Profile modal specific tip text styling for mobile */
  .tips-list .tip-text,
  .spotlight-list .tip-text,
  .liked-spotlight-list .tip-text {
    font-size: 0.8125rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  /* Profile Spotlight Card Mobile Responsive */
  .profile-spotlight-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .profile-spotlight-header-left {
    gap: 0.625rem;
  }

  .profile-spotlight-heading {
    font-size: 1rem;
  }

  .profile-spotlight-delete-btn {
    width: 32px;
    height: 32px;
    padding: 0.375rem;
  }

  .profile-spotlight-avatar-img,
  .profile-spotlight-avatar-placeholder {
    width: 40px;
    height: 40px;
  }

  .profile-spotlight-avatar-placeholder i {
    font-size: 1rem;
  }

  .profile-spotlight-info-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.625rem;
  }

  .profile-spotlight-detail {
    font-size: 0.8125rem;
  }

  .profile-spotlight-description {
    font-size: 0.8125rem;
    padding: 0.75rem;
  }

  .profile-spotlight-footer {
    gap: 1.5rem;
  }

  .premium-stat {
    padding: 0.625rem 1rem;
    border-radius: 12px;
  }

  .stat-icon-wrapper {
    width: 28px;
    height: 28px;
  }

  .profile-spotlight-stat-count {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.6875rem;
  }
}

@media (max-width: 480px) {
  .profile-modal {
    margin: 0.5rem;
    max-width: calc(100vw - 1rem);
    border-radius: 16px;
  }
  
  .profile-modal-header {
    padding: 1.25rem;
    border-radius: 16px 16px 0 0;
  }
  
  .profile-modal-content {
    padding: 1.25rem;
  }
  
  .profile-avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .profile-info-value {
    margin-left: 1.5rem;
    font-size: 0.9rem;
  }

  /* Small mobile tab adjustments */
  .profile-tab-btn {
    min-width: 50px;
    padding: 0.625rem 0.25rem;
    gap: 0;
    justify-content: center;
  }

  .profile-tab-btn span {
    display: none;
  }

  .profile-tab-btn i {
    font-size: 1.125rem;
    margin-bottom: 0;
  }

  .empty-state {
    padding: 1.5rem;
  }

  .empty-state i {
    font-size: 2rem;
  }

  .empty-state h4 {
    font-size: 1rem;
  }

  .tips-list, .spotlight-list {
    max-height: 350px;
  }
}

/* Extra small screens - ensure tabs are fully accessible */
@media (max-width: 360px) {
  .profile-tabs {
    padding: 0.125rem;
    gap: 0.125rem;
  }
  
  .profile-tab-btn {
    min-width: 45px;
    padding: 0.5rem 0.25rem;
    gap: 0;
    justify-content: center;
  }
  
  .profile-tab-btn span {
    display: none;
  }
  
  .profile-tab-btn i {
    font-size: 1rem;
  }
}

/* ===== FRESHERS' SPOTLIGHT SECTION ===== */
.spotlight-section {
  background: transparent;
  padding: 4rem 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.spotlight-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 118, 117, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.spotlight-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.spotlight-header {
  text-align: center;
  margin-bottom: 2rem; /* Reduced since we no longer have description */
  display: flex;
  justify-content: center;
  align-items: center;
}

.spotlight-cards-wrapper {
  position: relative;
  margin-bottom: 3rem;
}

/* Carousel Container */
.spotlight-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

/* Cards Track - Horizontal Scrolling Container */
.spotlight-cards-track {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  scroll-behavior: smooth;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: transform 0.3s ease;
}

.spotlight-cards-track::-webkit-scrollbar {
  display: none;
}

/* Navigation Buttons - Fixed Positioning */
.spotlight-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100; /* High z-index to appear above cards */
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.spotlight-nav-btn:hover {
  background: #4dabff;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 
    0 12px 40px rgba(77, 171, 255, 0.3),
    0 6px 20px rgba(77, 171, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(77, 171, 255, 0.3);
}

.spotlight-nav-prev {
  left: 10px; /* Position outside the carousel container */
}

.spotlight-nav-next {
  right: 10px; /* Position outside the carousel container */
}

.spotlight-nav-btn i {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.spotlight-nav-btn:hover i {
  transform: scale(1.1);
}

/* Responsive Card Sizing */
.spotlight-card {
  flex: 0 0 auto;
  width: 320px; /* Fixed width for desktop - show ~3 cards */
  min-height: 420px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.spotlight-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-color: rgba(77, 171, 255, 0.3);
}

/* Special "Watch All" Card */
.watch-all-card {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 50%, #e17055 100%);
  color: #2d3436;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  text-decoration: none;
  border: none;
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  flex: 0 0 280px !important;
  min-height: 360px !important;
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
}

.watch-all-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.watch-all-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 70px rgba(255, 234, 167, 0.4);
}

.watch-all-card:hover .watch-all-icon {
  transform: scale(1.1);
  background: rgba(45, 52, 54, 0.15);
}

.watch-all-icon {
  width: 90px;
  height: 90px;
  background: rgba(45, 52, 54, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(15px);
  border: 3px solid rgba(45, 52, 54, 0.15);
  transition: all 0.3s ease;
}

.emoji-face {
  font-size: 3rem;
  line-height: 1;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.watch-all-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
  color: #2d3436;
}

.watch-all-card p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  max-width: 240px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: #636e72;
}

.watch-all-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(45, 52, 54, 0.15);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(45, 52, 54, 0.2);
  transition: all 0.3s ease;
}

.cta-text {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: white !important;
}

.watch-all-arrow {
  width: 35px;
  height: 35px;
  background: rgba(45, 52, 54, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.watch-all-card:hover .watch-all-cta {
  background: rgba(45, 52, 54, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.watch-all-card:hover .watch-all-arrow {
  background: rgba(45, 52, 54, 0.4);
  transform: translateX(3px);
}

.watch-all-arrow i {
  font-size: 1rem;
  color: white !important;
}

/* Dots Navigation */
.spotlight-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #4dabff;
  transform: scale(1.2);
}

.dot:hover {
  background: #4dabff;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .spotlight-card {
    width: 280px; /* Slightly smaller for tablets */
  }
  
  .spotlight-nav-btn {
    width: 55px;
    height: 55px;
  }
  
  .spotlight-nav-prev {
    left: 5px;
  }
  
  .spotlight-nav-next {
    right: 5px;
  }
}

@media (max-width: 768px) {
  .spotlight-card {
    width: 260px; /* Show 2 cards on small tablets */
  }
  
  .spotlight-nav-btn {
    width: 50px;
    height: 50px;
  }
  
  .spotlight-nav-prev {
    left: 0px;
  }
  
  .spotlight-nav-next {
    right: 0px;
  }
  
  .spotlight-cards-track {
    gap: 1rem;
    padding: 0.5rem 0;
  }
}

@media (max-width: 640px) {
  .spotlight-card {
    width: 280px; /* Single card focus on mobile */
  }
  
  .spotlight-nav-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .spotlight-nav-prev {
    left: -5px;
  }
  
  .spotlight-nav-next {
    right: -5px;
  }
}

@media (max-width: 480px) {
  .spotlight-nav-btn {
    display: none; /* Hide arrows on very small screens, rely on swipe */
  }
  
  .spotlight-carousel-container {
    padding: 0 20px !important;
  }
}

@media (max-width: 480px) {
  .spotlight-card {
    width: 280px; /* Show 1 card on mobile with some overflow for peek effect */
    min-height: 380px;
  }
  
  .spotlight-cards-track {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .spotlight-container {
    overflow: hidden;
  }
}

/* END OF OLD STYLES - REMOVE EVERYTHING BELOW */
.spotlight-card {
  cursor: pointer;
}

.spotlight-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4dabff, #ff6b6b, #4ecdc4);
  border-radius: 1.5rem 1.5rem 0 0;
}

.spotlight-image {
  text-align: center;
  margin-bottom: 1.5rem;
}

.spotlight-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.spotlight-card:hover .spotlight-avatar {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.spotlight-info {
  text-align: center;
}

.spotlight-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.spotlight-branch {
  font-size: 0.875rem;
  color: #4dabff;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.spotlight-location {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.spotlight-description {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4dabff, #ff6b6b);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(77, 171, 255, 0.3);
}

/* Dots Navigation */
.spotlight-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(100, 116, 139, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #4dabff;
  transform: scale(1.2);
}

.dot:hover {
  background: #4dabff;
  opacity: 0.7;
}

/* Create Spotlight Button */
.create-spotlight-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.view-all-link {
  display: block;
  color: #4dabff;
  text-decoration: none;
  font-weight: 500;
  margin-top: 1rem;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.view-all-link:hover {
  color: #3b82f6;
  text-decoration: underline;
}

/* Spotlight Modal Styles */
.spotlight-modal-overlay {
  z-index: 2000;
}

.spotlight-modal-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.spotlight-modal-overlay.active .spotlight-modal-content {
  transform: scale(1);
  opacity: 1;
}

.spotlight-modal-content {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1.5rem;
}

.spotlight-modal-content .modal-body {
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.spotlight-image-upload {
  margin-bottom: 2rem;
}

.image-upload-container {
  position: relative;
}

.image-upload-container input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.image-preview {
  width: 120px;
  height: 120px;
  border: 2px dashed #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.image-preview:hover {
  border-color: #4dabff;
  background: rgba(77, 171, 255, 0.05);
}

.upload-placeholder {
  text-align: center;
  color: #64748b;
}

.upload-placeholder i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.upload-placeholder span {
  font-size: 0.875rem;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.form-group select {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.3s ease;
}

.form-group select:focus {
  outline: none;
  border-color: #4dabff;
  box-shadow: 0 0 0 3px rgba(77, 171, 255, 0.1);
}

.form-group select option {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: white;
  color: #374151;
}

.form-group select option:last-child {
  border-bottom: none;
}

.form-group select option:hover {
  background-color: #f3f4f6;
}

.form-group select option:first-child {
  color: #9ca3af;
  font-style: italic;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.char-count {
  text-align: right;
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.btn-loader {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-loader i {
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .spotlight-section {
    padding: 3rem 1rem;
    margin: 1rem 0;
    border-radius: 1.5rem;
  }

  .spotlight-cards {
    gap: 1rem;
  }

  .spotlight-card {
    flex: 0 0 250px;
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .spotlight-modal-content {
    margin: 1rem;
    max-width: calc(100vw - 2rem);
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .spotlight-card {
    flex: 0 0 220px;
    padding: 1.25rem;
  }

  .spotlight-avatar {
    width: 60px;
    height: 60px;
  }

  .spotlight-name {
    font-size: 1.125rem;
  }
}

/* ===== SPOTLIGHT HERO SECTION ===== */
.spotlight-hero {
  background-color: transparent; /* Removed greyish background */
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
  margin-top: 70px; /* Reduced to match smaller navbar */
}

.spotlight-hero-container {
  max-width: 800px;
  margin: 0 auto;
  /* Subtle uplift effect for the entire text container */
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

/* Subtle container hover effect */
.spotlight-hero-container:hover {
  transform: translateY(-8px);
}

.spotlight-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(
    45deg,
    #ff1493,
    #ff69b4,
    #ff1493,
    #dc143c,
    #ff1493,
    #ff69b4
  );
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ff1493;
  margin-bottom: 1.5rem;
  /* Bright pinkish-red glow */
  text-shadow: 
    0 0 5px rgba(255, 20, 147, 0.4),
    0 0 10px rgba(255, 20, 147, 0.3),
    2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  white-space: nowrap;
  animation: gradientShift 4s ease-in-out infinite, titleGlow 3s ease-in-out infinite alternate;
  /* Subtle 3D transform for depth */
  transform: perspective(1000px) rotateX(5deg);
  transition: transform 0.3s ease;
}

/* Bright pinkish-red glow animation */
@keyframes titleGlow {
  0% {
    text-shadow: 
      0 0 5px rgba(255, 20, 147, 0.4),
      0 0 10px rgba(255, 20, 147, 0.3),
      2px 2px 4px rgba(0, 0, 0, 0.3);
  }
  100% {
    text-shadow: 
      0 0 8px rgba(255, 20, 147, 0.5),
      0 0 15px rgba(255, 20, 147, 0.4),
      2px 2px 4px rgba(0, 0, 0, 0.3);
  }
}

/* Subtle hover effect for additional depth */
.spotlight-hero-title:hover {
  transform: perspective(1000px) rotateX(0deg) scale(1.02);
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 50% 100%;
  }
  75% {
    background-position: 100% 0%;
  }
}

.spotlight-hero-description {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 600;
  opacity: 1;
  /* Enhanced text styling for better readability */
  letter-spacing: 0.5px;
  text-shadow: 
    0 0 8px rgba(74, 85, 104, 0.2),
    1px 1px 3px rgba(255, 255, 255, 0.8),
    2px 2px 6px rgba(0, 0, 0, 0.1);
  /* Subtle gradient overlay effect for better readability */
  background: linear-gradient(
    135deg,
    rgba(74, 85, 104, 0.1) 0%,
    transparent 50%,
    rgba(74, 85, 104, 0.1) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  /* Subtle 3D transform for depth */
  transform: perspective(800px) rotateX(2deg);
  transition: all 0.3s ease;
}

/* Subtle hover effect for description */
.spotlight-hero-description:hover {
  transform: perspective(800px) rotateX(0deg);
  text-shadow: 
    0 0 12px rgba(74, 85, 104, 0.3),
    1px 1px 3px rgba(255, 255, 255, 0.9),
    2px 2px 6px rgba(0, 0, 0, 0.1);
}

.spotlight-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #4dabff, #ff6b6b);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 20px rgba(77, 171, 255, 0.3),
    0 2px 10px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.spotlight-hero-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.spotlight-hero-btn:hover::before {
  animation: shine 1.5s ease-in-out infinite;
}

.spotlight-hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 30px rgba(77, 171, 255, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.spotlight-hero-btn .btn-icon {
  font-size: 1.2rem;
  font-weight: normal;
}

.spotlight-hero-btn .btn-text {
  font-weight: 700;
}

@keyframes shine {
  0% {
    left: -50%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 150%;
    opacity: 0;
  }
}

/* Mobile responsiveness for hero */
@media (max-width: 768px) {
  .spotlight-hero {
    min-height: 45vh;
    padding: 0 1rem;
    margin-top: 65px; /* Further reduced to match smaller navbar */
  }
  
  .spotlight-hero-title {
    font-size: 2.5rem;
    white-space: normal;
    line-height: 1.3;
    /* Maintain enhanced effects on mobile with reduced intensity */
    text-shadow: 
      0 0 8px rgba(255, 215, 0, 0.5),
      0 0 15px rgba(255, 215, 0, 0.3),
      0 0 20px rgba(255, 215, 0, 0.2),
      1px 1px 3px rgba(0, 0, 0, 0.3),
      2px 2px 6px rgba(0, 0, 0, 0.2);
    transform: perspective(800px) rotateX(3deg);
  }
  
  .spotlight-hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    /* Reduced effects for mobile */
    text-shadow: 
      0 0 6px rgba(255, 215, 0, 0.3),
      1px 1px 2px rgba(0, 0, 0, 0.3);
    transform: perspective(600px) rotateX(1deg);
  }
  
  .spotlight-hero-btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .spotlight-hero {
    margin-top: 62px; /* Further reduced for medium-small screens */
  }
}

@media (max-width: 480px) {
  .spotlight-hero {
    min-height: 40vh;
    margin-top: 58px; /* Most compact for very small screens */
  }
  
  .spotlight-hero-title {
    font-size: 2.2rem;
    /* Further reduced effects for small screens */
    text-shadow: 
      0 0 6px rgba(255, 215, 0, 0.4),
      0 0 12px rgba(255, 215, 0, 0.2),
      1px 1px 2px rgba(0, 0, 0, 0.3);
    transform: perspective(600px) rotateX(2deg);
  }
  
  .spotlight-hero-description {
    font-size: 0.95rem;
  }
  
  .spotlight-hero-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* Enhanced Mobile Performance for Spotlight Page */
@media screen and (max-width: 768px) {
  /* Optimize spotlight page for smooth mobile scrolling */
  .spotlight-hero,
  .spotlight-cards-section,
  .spotlight-filter-container {
    /* Enable hardware acceleration for smoother scrolling */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Optimize compositing layers */
    will-change: scroll-position;
  }
  
  /* Improve touch scrolling responsiveness */
  body {
    /* Enhanced momentum scrolling for spotlight page */
    -webkit-overflow-scrolling: touch;
    /* Allow overscroll for pull-to-refresh on mobile */
    overscroll-behavior-y: auto;
  }
  
  /* Optimize cards container for smooth scrolling */
  .spotlight-cards-grid {
    /* Better mobile scrolling performance */
    -webkit-overflow-scrolling: touch;
    will-change: transform;
  }
}

/* Premium Spotlight Filter Styling */
.spotlight-filter-container {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 0 2rem;
  position: relative; /* Ensure proper positioning context */
  z-index: 10000; /* High z-index to ensure dropdown appears above cards */
  overflow: visible; /* Ensure dropdown isn't clipped */
}

.active-filter-count {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.08) 0%, 
    rgba(99, 102, 241, 0.05) 100%);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-top: 1rem; /* Add margin since it's now below the dropdown */
  text-align: center;
}

.active-filter-count span {
  font-weight: 600;
  color: #3b82f6;
}

.filter-dropdown-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0; /* Remove bottom margin since we moved the count */
  position: relative; /* Ensure proper positioning context */
  z-index: 10000; /* High z-index for the container */
}

/* Premium Filter Dropdown */
.filter-dropdown {
  position: relative;
  min-width: 280px;
  z-index: 10000; /* Add high z-index to dropdown container */
}

.filter-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-weight: 600;
  color: #1e293b;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.filter-selected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.03) 0%, 
    rgba(99, 102, 241, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.filter-selected:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 3px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.filter-selected:hover::before {
  opacity: 1;
}

.filter-arrow {
  transition: transform 0.3s ease;
  color: #64748b;
  font-size: 0.9rem;
}

.filter-dropdown.open .filter-arrow {
  transform: rotate(180deg);
}

.filter-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 16px;
  margin-top: 0.5rem;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: translateY(10px);
  transform-origin: top center;
  z-index: 9999;
  /* Enhanced mobile performance */
  will-change: transform, opacity, max-height;
  /* Improved mobile touch scrolling */
  -webkit-overflow-scrolling: touch;
  /* Better hardware acceleration on mobile */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.filter-dropdown.open .filter-options {
  max-height: 320px;
  opacity: 1;
  transform: translateY(0) translateZ(0);
  overflow-y: auto;
  overflow-x: hidden;
  /* Enhanced smooth scrolling for all devices */
  scroll-behavior: smooth;
  /* Optimized touch scrolling on mobile */
  -webkit-overflow-scrolling: touch;
  /* Custom scrollbar styling for premium look */
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
}

/* Custom scrollbar for webkit browsers */
.filter-dropdown.open .filter-options::-webkit-scrollbar {
  width: 6px;
}

.filter-dropdown.open .filter-options::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.filter-dropdown.open .filter-options::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.filter-dropdown.open .filter-options::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}

/* Ensure scrollbar doesn't affect layout */
.filter-dropdown.open .filter-options::-webkit-scrollbar-corner {
  background: transparent;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #475569;
  border-bottom: 1px solid rgba(241, 245, 249, 0.5);
  position: relative;
}

.filter-option:last-child {
  border-bottom: none;
}

.filter-option:hover {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.08) 0%, 
    rgba(99, 102, 241, 0.05) 100%);
  color: #1e293b;
}

.filter-option.active {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.12) 0%, 
    rgba(99, 102, 241, 0.08) 100%);
  color: #3b82f6;
  font-weight: 600;
}

.filter-option.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-radius: 0 2px 2px 0;
}

.filter-option i {
  margin-right: 0.75rem;
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

.option-count {
  font-size: 0.8rem;
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.filter-option.active .option-count {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

/* Filter Reset Button */
.filter-reset-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 0.08) 0%, 
    rgba(220, 38, 38, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  color: #dc2626;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-reset-btn:hover {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 0.12) 0%, 
    rgba(220, 38, 38, 0.08) 100%);
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Smooth card filtering transitions */
.spotlight-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* High specificity filter rules to override all other display rules */
.spotlight-cards .spotlight-card.filter-hidden,
#spotlight-grid .spotlight-card.filter-hidden,
.spotlight-cards-wrapper .spotlight-card.filter-hidden,
.spotlight-section .spotlight-card.filter-hidden,
.spotlight-cards-wrapper .spotlight-cards .spotlight-card.filter-hidden {
  opacity: 0 !important;
  transform: scale(0.95) translateY(20px) !important;
  pointer-events: none !important;
  display: none !important; /* Force hidden cards to not display */
  visibility: hidden !important; /* Double ensure hiding */
}

.spotlight-card.filter-visible,
.spotlight-cards .spotlight-card.filter-visible,
#spotlight-grid .spotlight-card.filter-visible,
.spotlight-cards-wrapper .spotlight-card.filter-visible,
.spotlight-section .spotlight-card.filter-visible,
.spotlight-cards-wrapper .spotlight-cards .spotlight-card.filter-visible {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
  display: flex !important; /* Ensure visible cards are displayed */
  visibility: visible !important;
}

/* Mobile Responsiveness for Filter */
@media (max-width: 768px) {
  .spotlight-filter-container {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }
  
  .filter-dropdown-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }
  
  .filter-dropdown {
    min-width: auto;
    width: 100%;
    /* Mobile-specific enhancements */
    -webkit-tap-highlight-color: rgba(77, 171, 255, 0.1);
    /* Force GPU layer for better performance */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  
  .filter-selected {
    padding: 0.875rem 1.25rem;
    /* Better mobile touch response */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(77, 171, 255, 0.1);
  }
  
  .filter-option {
    padding: 0.75rem 1.25rem;
  }
  
  .active-filter-count {
    align-self: stretch;
    text-align: center;
  }
  
  /* Enhanced mobile animation performance */
  .filter-options {
    /* Use transform3d for better mobile performance */
    transform: translate3d(0, 10px, 0);
    /* Optimized timing for mobile responsiveness */
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    /* Better mobile scrolling */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: auto;
    /* Enhanced mobile hardware acceleration */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Mobile-specific touch optimizations - allow vertical scrolling and refresh */
    touch-action: pan-y pinch-zoom;
    /* Force compositing layer for smooth animation */
    will-change: transform, opacity, max-height;
  }
  
  .filter-dropdown.open .filter-options {
    transform: translate3d(0, 0, 0);
    /* Optimized max-height for mobile */
    max-height: 280px;
  }
}

/* ===== VIEW ALL SPOTLIGHTS BUTTON ===== */
.view-all-spotlights-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #4dabff;
  text-decoration: none;
  border: 2px solid #4dabff;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  margin-top: 1rem;
  letter-spacing: 0.3px;
}

.view-all-spotlights-btn:hover {
  background: #4dabff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(77, 171, 255, 0.3);
}

.view-all-spotlights-btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.view-all-spotlights-btn:hover i {
  transform: translateX(3px);
}

/* Update create spotlight wrapper */
.create-spotlight-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile adjustments for view all button */
@media (max-width: 768px) {
  .view-all-spotlights-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .view-all-spotlights-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.8rem;
  }
}

/* ===== SPOTLIGHT PAGE STYLES ===== */
.spotlight-page {
  min-height: 100vh;
  padding: 2rem 0;
  position: relative;
  background: #f8fafc;
}

.spotlight-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 100;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.spotlight-grid .spotlight-card {
  flex: none;
  width: 100%;
  position: relative;
}

.spotlight-card-page {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.spotlight-card-page:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.spotlight-card-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4dabff, #ff6b6b, #4ecdc4);
  border-radius: 1.5rem 1.5rem 0 0;
}

.spotlight-like-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-left: 0.5rem;
  position: relative;
}

.spotlight-like-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.spotlight-like-btn i {
  font-size: 1.125rem;
  color: #64748b;
  transition: all 0.3s ease;
}

.spotlight-like-btn.liked i {
  color: #ff6b6b;
  transform: scale(1.2);
}

.spotlight-like-btn .like-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff6b6b;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
}

.loading-spinner i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.empty-spotlight-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
}

.empty-spotlight-icon i {
  font-size: 4rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.empty-spotlight-state h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.empty-spotlight-state p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.spotlight-card.floating {
  animation: float 3s ease-in-out infinite;
}

.spotlight-card:nth-child(2n).floating {
  animation-delay: 0.5s;
}

/* Confession Box Coming Soon Styling */
.confession-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  min-height: 300px;
}

.confession-icon {
  margin-bottom: 1.5rem;
}

.confession-icon i {
  font-size: 4rem;
  color: #6b46c1;
  opacity: 0.8;
  text-shadow: 0 2px 8px rgba(107, 70, 193, 0.3);
}

.confession-coming-soon h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1f2937;
  background: linear-gradient(135deg, #6b46c1, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.confession-coming-soon > p {
  font-size: 1.25rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.confession-description p {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* Add some subtle animation */
.confession-icon i {
  animation: mysteryPulse 3s ease-in-out infinite;
}

@keyframes mysteryPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.spotlight-card:nth-child(3n).floating {
  animation-delay: 1s;
}

/* Responsive Design for Spotlight Page */
@media (max-width: 768px) {
  .spotlight-page-container {
    padding: 0 1rem;
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .spotlight-card-page {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .spotlight-grid {
    gap: 1rem;
  }

  .spotlight-card-page {
    padding: 1.25rem;
  }
}

/* ===================================
   HERO SECTION STYLES
   =================================== */

.hero-section {
  background: linear-gradient(135deg, 
    #4dd0cb 0%, 
    #e396b8 25%, 
    #ffd89b 50%, 
    #f79071 75%, 
    #ff6b6b 100%);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: grid;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: max(500px, 100vh);
  padding: calc(4rem + 40px) 2rem 4rem 2rem;
  place-items: start center;
  position: relative;
  overflow: hidden;
}

.hero-container {
  width: min(1200px, 100%);
  position: relative;
  z-index: 2;
}

.hero-wrapper {
  display: grid;
  place-items: center;
  gap: 3rem;
}

.hero-header {
  display: grid;
  place-items: center;
  gap: 2rem;
  text-align: center;
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: white;
  margin: 0;
  text-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hero-hgroup {
  display: grid;
  place-items: center;
  gap: 1rem;
  text-align: center;
  max-width: 600px;
}

.hero-headline {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: white;
  margin: 0;
  line-height: 1.2;
  text-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.15);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hero-subheading {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.6;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.1);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

.hero-cta-group {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 400px;
}

@media (width >= 560px) {
  .hero-cta-group {
    grid-auto-flow: column;
    grid-template-columns: 1fr 1fr;
  }
}

.hero-cards {
  display: grid;
  padding: 0;
  list-style: none;
  gap: 2rem;
  width: 100%;
  margin: 0;
}

@media (width >= 480px) {
  .hero-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (width >= 768px) {
  .hero-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.hero-card-wrap {
  background: rgba(255, 255, 255, 0.25);
  background-image: linear-gradient(170deg,
    rgba(255, 255, 255, 0.4) 18.95%,
    rgba(255, 255, 255, 0.15) 99.73%);
  display: grid;
  height: 100%;
  border-radius: 20px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: start;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-card-wrap:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(25px);
}

.hero-figure {
  display: grid;
  gap: 1rem;
  grid-template-rows: min-content 1fr;
  height: 100%;
}

.hero-visual {
  border-radius: 16px;
  height: 175px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Different gradient for each card */
.hero-card:nth-child(1) .hero-visual {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-card:nth-child(2) .hero-visual {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hero-card:nth-child(3) .hero-visual {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.hero-card:nth-child(4) .hero-visual {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-card-wrap:hover .hero-img {
  transform: scale(1.05);
}

.hero-figcaption {
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  line-height: 1.4;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Hero Button Styles */
.hero-btn {
  --state-layer-opacity: 0%;
  --state-layer-bg: rgba(255, 255, 255, calc(var(--state-layer-opacity) / 100));
  
  background-color: transparent;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  min-height: 48px;
  text-decoration: none;
  text-align: center;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  padding: 0;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn:hover {
  --state-layer-opacity: 20%;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-btn:active {
  --state-layer-opacity: 12%;
  transform: translateY(-1px);
}

.hero-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 
    0 6px 20px rgba(102, 126, 234, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-btn.primary:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  box-shadow: 
    0 10px 30px rgba(102, 126, 234, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.2);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.hero-btn.secondary {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.45);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero-state-layer {
  border-radius: inherit;
  padding: 0.75rem 2rem;
  width: 100%;
  display: inline-grid;
  place-items: center;
  background-color: var(--state-layer-bg);
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 700;
  text-shadow: inherit;
  -webkit-font-smoothing: antialiased;
}

/* Mobile Responsiveness */
@media (max-width: 1440px) {
  .hero-section {
    background-position: top 20% center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: calc(2.5rem + 60px) 1.5rem 2.5rem 1.5rem;
    min-height: max(350px, 70vh);
  }
  
  .hero-wrapper {
    gap: 2rem;
  }
  
  .hero-header {
    gap: 1.2rem;
  }
  
  .hero-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .hero-card-wrap {
    padding: 0.8rem;
    border-radius: 16px;
  }
  
  .hero-visual {
    height: 120px;
    border-radius: 12px;
  }
  
  .hero-figcaption {
    font-size: 0.85rem;
  }
  
  .hero-title {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: calc(2rem + 60px) 1rem 2rem 1rem;
    min-height: max(300px, 60vh);
  }
  
  .hero-wrapper {
    gap: 1.5rem;
  }
  
  .hero-header {
    gap: 1rem;
  }
  
  .hero-cards {
    gap: 1.2rem;
  }
  
  .hero-card-wrap {
    padding: 0.7rem;
    border-radius: 14px;
  }
  
  .hero-visual {
    height: 100px;
    border-radius: 10px;
  }
  
  .hero-figcaption {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  .hero-cta-group {
    gap: 0.75rem;
  }
  
  .hero-logo {
    display: flex;
  }
  
  .hero-title {
    display: none;
  }
  
  .hero-headline {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
  
  .hero-subheading {
    font-size: clamp(0.9rem, 3vw, 1rem);
  }
}

/* ===== MODERN FOOTER STYLES ===== */
/* Ensure no gaps between content and footer */
#footer-container {
  margin: 0;
  padding: 0;
}

.modern-footer {
  background-color: #1c1c1c;
  color: #f2f2f2;
  padding: 2.5rem 0 1.5rem 0;
  margin-top: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== DESKTOP FOOTER LAYOUT ===== */
.footer-desktop {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  align-items: center; /* Center align all columns */
  margin-bottom: 2rem; /* Space for bottom copyright */
}

.footer-mobile {
  display: none;
}

/* Left Column - Email aligned with navigation */
.footer-contact {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.footer-email {
  color: #f2f2f2;
  text-decoration: none;
  font-size: 0.95rem; /* Match nav links size */
  font-weight: 500; /* Match nav links weight */
  transition: all 0.3s ease;
  padding: 0.25rem 0;
  line-height: 1.4; /* Match nav links line height */
}

.footer-email:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Center Column - Navigation only */
.footer-navigation {
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center; /* Ensure vertical alignment */
}

.footer-link {
  color: #f2f2f2;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.25rem 0;
  position: relative;
  line-height: 1.4; /* Consistent line height */
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Copyright at very bottom center - outside the grid */
.footer-copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 1rem;
}

.footer-copyright-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.85rem;
  color: #f2f2f2;
  font-weight: 400;
  opacity: 0.9;
}

.footer-love-text {
  font-size: 0.85rem !important;
  color: #f2f2f2 !important;
  font-weight: 400 !important;
  opacity: 0.9 !important;
}

/* Right Column - Social */
.footer-social {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-social-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: #f2f2f2;
  text-align: center;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.footer-social-link {
  color: #f2f2f2;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-social-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ===== MOBILE FOOTER LAYOUT ===== */
@media (max-width: 768px) {
  .footer-desktop {
    display: none;
  }
  
  .footer-mobile {
    display: block;
    text-align: center;
  }
  
  .modern-footer {
    padding: 2rem 0 1.5rem 0;
  }
  
  /* Mobile Navigation */
  .footer-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .footer-mobile-link {
    color: #f2f2f2;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 4px;
  }
  
  .footer-mobile-link:hover,
  .footer-mobile-link:active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  /* Mobile Social Icons */
  .footer-mobile-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .footer-mobile-social-link {
    color: #f2f2f2;
    font-size: 1.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    text-decoration: none;
  }
  
  .footer-mobile-social-link:hover,
  .footer-mobile-social-link:active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
  }
  
  /* Mobile Contact */
  .footer-mobile-contact {
    margin-bottom: 1rem; /* Reduced margin for separator */
  }
  
  .footer-mobile-email {
    color: #f2f2f2;
    text-decoration: none;
    font-size: 0.9rem; /* Slightly smaller font */
    padding: 0.4rem 0.8rem; /* Reduced padding */
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
  }
  
  .footer-mobile-email:hover,
  .footer-mobile-email:active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  /* Mobile footer copyright layout */
  .footer-copyright-content {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .footer-love-text {
    order: -1; /* Places "Made with ❤️" above the copyright line */
  }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
  .footer-desktop {
    grid-template-columns: 1fr 3fr 1fr;
    gap: 1.5rem;
  }
  
  .footer-nav {
    gap: 1.5rem;
  }
  
  .footer-social {
    text-align: center;
    align-items: center;
  }
  
  .footer-social-icons {
    justify-content: center;
  }
}

/* ===== RESPONSIVE FILTER DROPDOWN STYLES ===== */

/* Mobile and tablet optimizations */
@media (max-width: 768px) {
  .filter-dropdown.open .filter-options {
    max-height: 280px; /* Reduced height for mobile */
    margin-top: 0.3rem;
    border-radius: 12px;
    /* Ensure dropdown doesn't overflow viewport */
    max-width: calc(100vw - 2rem);
  }
  
  .filter-option {
    padding: 1rem 1.25rem; /* Slightly larger touch targets */
    font-size: 0.95rem;
  }
  
  .filter-option i {
    margin-right: 0.625rem;
    font-size: 0.85rem;
  }
  
  .option-count {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
    min-width: 20px;
  }
  
  /* Enhanced scrollbar for mobile */
  .filter-dropdown.open .filter-options::-webkit-scrollbar {
    width: 8px; /* Slightly wider for easier touch interaction */
  }
  
  .filter-dropdown.open .filter-options::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.6);
    border-radius: 4px;
  }
}

/* Small mobile screens */
@media (max-width: 480px) {
  .filter-dropdown.open .filter-options {
    max-height: 240px; /* Further reduced for small screens */
    margin-top: 0.25rem;
    border-radius: 10px;
  }
  
  .filter-option {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
  
  .filter-option i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
  }
  
  .option-count {
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
    min-width: 18px;
  }
}

/* Ensure dropdown doesn't interfere with page layout */
.filter-dropdown {
  position: relative;
  isolation: isolate; /* Create new stacking context */
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .filter-dropdown.open .filter-options::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.7);
  }
}
