:root {
    --primary-color: #11a191;
    --text-color: #333;
    --background-color: #fff;
    --secondary-background: #F8FAFC;
}

/* Laptop-specific: adjust third feature card image height */
@media screen and (min-width: 1024px) and (max-width: 1680px) {
    /* Default for laptop range: reduce by 10px from typical 280px -> 270px */
    .features-grid.desktop-only img[src$="newsletter_logo.jpeg"] {
        height: 270px;
        object-fit: cover;
        width: 100%;
        display: block;
    }
}

/* Narrow laptop widths where default was 320px: reduce to 310px */
@media screen and (min-width: 1367px) and (max-width: 1440px) {
    .features-grid.desktop-only img[src$="newsletter_logo.jpeg"] {
        height: 310px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden; /* Prevent horizontal scroll on root */
    overflow-y: scroll; /* Always show scrollbar to prevent layout shift when modals open */
    width: 100%;
}

/* Grey out scrollbar when popup/modal is open */
body.popup-open::-webkit-scrollbar-thumb,
html:has(body.popup-open)::-webkit-scrollbar-thumb {
    background-color: #d0d0d0 !important;
}

body.popup-open::-webkit-scrollbar-track,
html:has(body.popup-open)::-webkit-scrollbar-track {
    background-color: #f0f0f0 !important;
}

/* Firefox scrollbar styling when popup is open */
html:has(body.popup-open) {
    scrollbar-color: #d0d0d0 #f0f0f0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal spill on small screens */
    width: 100%;
    position: relative;
}

/* Header Styles */
header {
    background-color: var(--background-color);
    padding: 0.75rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 50000;
}

nav {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 70px; /* Fixed height for consistency */
}

/* Mobile header/nav full-width */
@media screen and (max-width: 768px) {
    header {
        width: 100%;
    }
    nav {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Keep the middle nav (Ask AI) fixed in the center regardless of right-side width */
.nav-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
}

.nav-left .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.nav-left .logo:hover {
    opacity: 0.9;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    background-color: transparent;
    padding: 0px;
    border: 0px solid var(--primary-color);
}

.logo span {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
}

.nav-middle .search-input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
}

.nav-right {
    display: flex;
    gap: 3.5rem;
    align-items: center;
}

/* Notification Icon Styles */
.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    position: relative;
}

/* Slightly shift the bell icon 10px left in the header */
header .notification-icon {
    transform: translateX(-50px);
}

/* Desktop/Tablet: shift bell 20px to the right compared to current */
@media screen and (min-width: 769px) {
    header .notification-icon {
        transform: translateX(10px);
    }
}

.notification-icon:hover {
    background-color: rgba(17, 161, 145, 0.1);
}

.notification-icon svg {
    width: 24px;
    height: 24px;
}

/* Disabled notification icon shown when logged out */
.notification-icon.disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.notification-icon.disabled:hover {
    background-color: transparent;
    opacity: 0.6;
}

/* Tooltip for disabled notification icon */
.notification-icon .nav-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background-color: #333;
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

.notification-icon:hover .nav-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

/* Notification Wrapper */
.notification-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 100000;
}

/* Messaging Icon Wrapper */
.messaging-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 100000;
    margin-left: -30px; /* Reduce gap between notification and messaging icons */
}

/* Messaging Icon Styles */
.messaging-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    position: relative;
}

/* Shift messaging icon in header to align with bell */
header .messaging-icon {
    transform: translateX(10px);
}

/* Desktop/Tablet alignment for messaging icon */
@media screen and (min-width: 769px) {
    header .messaging-icon {
        transform: translateX(10px);
    }
}

.messaging-icon:hover {
    background-color: rgba(17, 161, 145, 0.1);
}

.messaging-icon svg {
    width: 24px;
    height: 24px;
}

/* Disabled messaging icon shown when logged out */
.messaging-icon.disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

/* Navigation Profile Avatar */
.nav-profile-avatar-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 100000;
    margin-left: -20px; /* Reduce gap to match other icons */
}

.nav-profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #11a191;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(17, 161, 145, 0.2);
}

.nav-profile-avatar:hover {
    transform: scale(1.08);
    border-color: #0e8a7c;
    box-shadow: 0 4px 12px rgba(17, 161, 145, 0.35);
}

/* Shift profile avatar in header to align with other icons */
header .nav-profile-avatar-wrapper {
    transform: translateX(10px);
}

/* Desktop/Tablet alignment for profile avatar */
@media screen and (min-width: 769px) {
    header .nav-profile-avatar-wrapper {
        transform: translateX(10px);
    }
}

/* Profile Dropdown Menu */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 200px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100001;
    overflow: hidden;
    padding: 8px 0;
}

.profile-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow pointer for profile dropdown */
.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 12px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.profile-dropdown-item:hover {
    background-color: rgba(17, 161, 145, 0.08);
    color: #11a191;
}

.profile-dropdown-item svg {
    flex-shrink: 0;
    color: #666;
    transition: color 0.2s ease;
}

.profile-dropdown-item:hover svg {
    color: #11a191;
}

.profile-dropdown-item.disabled {
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

.profile-dropdown-item.disabled svg {
    color: #ccc;
}

.profile-dropdown-item.disabled:hover {
    background-color: transparent;
}

.coming-soon-badge {
    font-size: 10px;
    background: linear-gradient(135deg, #11a191 0%, #0d8577 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

.profile-dropdown-item.logout {
    color: #e74c3c;
}

.profile-dropdown-item.logout svg {
    color: #e74c3c;
}

.profile-dropdown-item.logout:hover {
    background-color: rgba(231, 76, 60, 0.08);
    color: #c0392b;
}

.profile-dropdown-item.logout:hover svg {
    color: #c0392b;
}

/* Mobile responsive adjustments for profile dropdown */
@media screen and (max-width: 768px) {
    .profile-dropdown {
        position: fixed;
        top: 60px;
        right: 10px;
        width: 180px;
    }
    
    .profile-dropdown::before {
        right: 20px;
    }
}

.messaging-icon.disabled:hover {
    background-color: transparent;
    opacity: 0.6;
}

/* Tooltip for messaging icon */
.messaging-icon .nav-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background-color: #333;
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

.messaging-icon:hover .nav-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

/* Notification Badge (red dot with count) */
.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff4757 0%, #e84118 100%);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.4);
    pointer-events: none;
    z-index: 10;
}

.notification-badge.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Notification Dropdown */
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100001;
    overflow: hidden;
}

.notifications-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow pointer for dropdown */
.notifications-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 16px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);
}

.notifications-list {
    max-height: 460px;
    overflow-y: auto;
}

/* Scrollbar styling for notifications */
.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Empty notifications state */
.notifications-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    color: #999;
}

.notifications-empty svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.notifications-empty p {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    margin: 0;
}

/* Loading notifications state */
.notifications-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    color: #999;
}

.notifications-loading p {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    margin: 12px 0 0;
}

.notification-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f0f0f0;
    border-top-color: #50b4a4;
    border-radius: 50%;
    animation: notification-spin 0.8s linear infinite;
}

@keyframes notification-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notifications title bar */
.notifications-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.notifications-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.notifications-unread-count {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #11a191 0%, #0d8577 100%);
    padding: 3px 10px;
    border-radius: 12px;
}

/* Notifications header */
.notifications-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.notifications-count {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.mark-all-read {
    background: none;
    border: none;
    color: #11a191;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mark-all-read:hover {
    background-color: rgba(17, 161, 145, 0.1);
}

.remove-all-notifications {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.remove-all-notifications:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

/* Notification items container */
.notifications-items {
    padding: 8px 0;
}

/* Notification item wrapper with delete button */
.notification-item-wrapper {
    display: flex;
    align-items: stretch;
    position: relative;
}

.notification-item-wrapper:hover .notification-delete-btn {
    opacity: 1;
}

.notification-delete-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    color: #999;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.notification-delete-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: translateY(-50%) scale(1.1);
}

/* Individual notification item */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    padding-right: 45px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    position: relative;
    cursor: pointer;
    flex: 1;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: rgba(17, 161, 145, 0.04);
}

.notification-item.unread:hover {
    background-color: rgba(17, 161, 145, 0.08);
}

/* Notification avatar and type icon */
.notification-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.notification-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification-type-icon {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #11a191 0%, #0d8577 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(17, 161, 145, 0.4);
}

.notification-type-icon svg {
    width: 12px;
    height: 12px;
    stroke: white;
}

/* Notification content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-size: 14px;
    line-height: 1.45;
    color: #333;
    margin: 0 0 4px 0;
    word-wrap: break-word;
}

.notification-item.unread .notification-message {
    font-weight: 600;
}

.notification-time {
    font-size: 12px;
    color: #888;
}

.notification-meta {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.team-invite-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.team-invite-btn {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.1;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.team-invite-btn.join {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
    box-shadow: 0 1px 4px rgba(46, 125, 50, 0.35);
}

.team-invite-btn.join:hover {
    background: #256628;
    border-color: #256628;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(46, 125, 50, 0.35);
}

.team-invite-btn.decline {
    background: #fff;
    border-color: #c62828;
    color: #c62828;
}

.team-invite-btn.decline:hover {
    background: #ffebee;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(198, 40, 40, 0.25);
}

.team-invite-btn:active {
    transform: translateY(0) scale(0.96);
}

.team-invite-btn.click-animate {
    animation: teamInviteBtnClickPulse 0.22s ease-out;
}

@keyframes teamInviteBtnClickPulse {
    0% {
        transform: translateY(0) scale(1);
    }
    45% {
        transform: translateY(1px) scale(0.9);
    }
    100% {
        transform: translateY(0) scale(1.02);
    }
}

.team-invite-status-note {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 0;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.team-invite-status-note.accepted {
    color: #2e7d32;
}

.team-invite-status-note.declined {
    color: #c62828;
}

/* Unread indicator dot */
.notification-dot {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #11a191 0%, #0d8577 100%);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(17, 161, 145, 0.4);
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
    .notifications-dropdown {
        position: fixed;
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100vh - 100px);
        z-index: 100001;
    }
    
    .notifications-dropdown::before {
        right: 50px;
    }
    
    .notification-avatar {
        width: 38px;
        height: 38px;
    }
    
    .notification-item {
        padding: 12px 16px;
        padding-right: 40px;
        gap: 12px;
    }
    
    .notification-message {
        font-size: 13px;
    }
    
    .notification-delete-btn {
        opacity: 0.7;
        width: 24px;
        height: 24px;
        right: 6px;
    }
    
    .notifications-title-bar {
        padding: 14px 16px 10px;
    }
    
    .notifications-title {
        font-size: 15px;
    }
}

/* Desktop/Tablet: shift wrapper instead of icon */
@media screen and (min-width: 769px) {
    header .notification-wrapper {
        transform: translateX(10px);
    }
    
    header .notification-icon {
        transform: none;
    }
}

@media screen and (max-width: 768px) {
    header .notification-wrapper {
        transform: translateX(-50px);
    }
    
    header .notification-icon {
        transform: none;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
}

.button.primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

/* Animated Login Button */
.login-button-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(17, 161, 145, 0.3);
    border: none;
    cursor: pointer;
}

.login-button-animated::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.5s ease;
}

.login-button-animated:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(17, 161, 145, 0.4);
    background-color: #0e8a7c;
}

.login-button-animated:hover::before {
    left: 100%;
}

.login-button-animated:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(17, 161, 145, 0.3);
    transition: all 0.1s ease;
}

/* Pulse animation for subtle attention */
@keyframes loginButtonPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(17, 161, 145, 0.3);
    }
    50% {
        box-shadow: 0 4px 15px rgba(17, 161, 145, 0.45);
    }
}

.login-button-animated {
    animation: loginButtonPulse 2.5s ease-in-out infinite;
}

.login-button-animated:hover {
    animation: none;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section {
    flex: 1;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 750px;
    margin-bottom: 10rem;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 3.0rem;
    color: var(--text-color);
}

/* Hide mobile line break on desktop */
.mobile-break {
    display: none;
}

.subtitle {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.description {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    width: 100%;
    position: relative;
}

.conference-search {
    flex: 1;
    padding: 1rem 1.5rem;
    padding: 0.75rem 1em;
    border: 1px solid #a9a8a8;
    border-radius: 15px !important;
    font-size: 1rem;
}

/* Add styles for placeholder text */
.conference-search::placeholder {
    color: #c0c4cb;  /* A lighter grey color */
    opacity: 1;  /* Ensures consistent opacity across browsers */
}

.search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
}

.contact-info {
    margin-top: 3.5rem;
    color: #666;
    font-size: 1.2rem;
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    /* margin-bottom: 3.0rem; */
}

.hero-image {
    flex: 1;
    max-width: 47%;
    display: flex;
    align-items: center;
    margin-bottom: 7rem;
    margin-left: 2rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

/* Features Section */
.features-section {
    flex: 1;
    padding: 1rem 0;
    text-align: center;
}

.features-title {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-top: calc(1.5rem + 5px); /* Default adjusted: 10px down for large monitors */
    margin-bottom: 3.5rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 0 auto;
    max-width: 1400px;
    width: 90%;
    padding: 0 2rem;
}

/* Desktop-only feature cards positioning (default: 30px down for large monitors) */
.features-grid.desktop-only {
    margin-top: -20px !important; /* Adjusted: moved up by 20px on large monitors */
}

.feature-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background-color: #f5f5f5;
    margin: 0;
}

.feature-card h3 {
    font-size: 1.7rem;
    margin: 1.5rem 1.5rem;
    padding: 0;
}

.feature-card p {
    font-size: 1.2rem;
    margin: 0 1.5rem 2rem;
    padding: 0;
    flex: 1;
    line-height: 1.5;
}

/* Mobile Swiper Adjustments */
.swiper-slide .feature-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background-color: #f5f5f5;
    margin: 0;
}

.swiper-slide .feature-card h3 {
    margin: 1.5rem 1.5rem;
    padding: 0;
}

.swiper-slide .feature-card p {
    margin: 0 1.5rem 2rem;
    padding: 0;
}

.search-cta {
    margin-top: 4rem;
}

.search-cta .button.primary {
    font-size: 1.5rem;
    padding: 1rem 2.5rem;
    border-radius: 20px;
}

/* Features Content */
.features-content {
    min-height: 100vh;
    background-color: var(--background-color);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
}

/* Footer Styles */
footer {
    margin-top: 0;
    width: 100%;
    background-color: #E6F7F5;
    padding: 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand span {
    color: var(--text-color);
    font-size: 1.5rem;
}

.footer-brand .copyright {
    color: #666;
    font-size: 0.8em;
    padding-left: 0.2rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 4.5rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.2rem 0;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Footer Social Icons */
.footer-social-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: 0.8rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-social-link svg {
    display: block;
}

/* Swiper Styles */
.swiper-container {
    width: 100%;
    padding: 20px 10px;
    display: none;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100% !important;
}

.swiper-slide .feature-card {
    width: 100%;
    height: auto;
    min-height: 420px;
    margin: 0;
    box-sizing: border-box;
    transform: none;
}

.swiper-slide .feature-card img {
    width: 100%;
    height: 250px;
    padding: 1.5rem 0;  /* Only vertical padding */
    margin: 0;
}

/* Apply the same specific style for swiper */
.swiper-slide .feature-card img[alt*="analytics"],
.swiper-slide .feature-card img[alt*="Magnifying glass"] {
    object-fit: contain;
    width: calc(100% + 3rem);
}

/* Specific style for the category search image (second card) */
.swiper-slide .feature-card img[alt*="category"],
.swiper-slide .feature-card img[alt*="Laptop showing category"] {
    object-fit: contain;
    transform: scale(0.85);  /* Zoom out the image */
    background-color: #f5f5f5;
}

.swiper-slide .feature-card h3 {
    margin: 1.5rem 1.5rem;
    padding: 0;
}

.swiper-slide .feature-card p {
    margin: 0 1.5rem 2rem;
    padding: 0;
}

.swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    opacity: 0.5;
    margin: 0 5px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Mobile hamburger menu styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.mobile-menu-toggle span {
    display: block;
    width: auto;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    position: absolute;
    left: 6px;   /* inset for visual padding */
    right: 6px;
}

/* Position each hamburger bar consistently */
.mobile-menu-toggle span:nth-child(1) { top: 7px; }
.mobile-menu-toggle span:nth-child(2) { top: 14px; }
.mobile-menu-toggle span:nth-child(3) { top: 21px; }

.mobile-menu-toggle.active span:nth-child(1) {
    top: 14px;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    top: 14px;
    transform: rotate(-45deg);
}

/* Make the active "X" smaller */
.mobile-menu-toggle.active {
    transform: translateY(-50%) scale(0.82);
}

.mobile-menu-toggle.active span {
    height: 2px;
}

.mobile-dropdown-menu {
    display: none;
    position: fixed;
    top: 70px;
    right: 1rem;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    min-width: 200px;
    z-index: 99999;
    overflow: visible;
    pointer-events: auto;
}

.mobile-dropdown-menu.show {
    display: block;
    pointer-events: auto;
}

.mobile-menu-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 100000;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-item:hover {
    background-color: var(--primary-color);
    color: white;
}

.mobile-menu-item:active {
    background-color: #0d8a7a;
}

.mobile-menu-item.disabled {
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

.mobile-menu-item.disabled:hover {
    background-color: transparent;
    color: #999;
}

.mobile-menu-item.logout {
    color: #e74c3c;
}

.mobile-menu-item.logout:hover {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

.mobile-coming-soon {
    font-size: 10px;
    background: linear-gradient(135deg, #11a191 0%, #0d8577 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* Header Mobile Styles */
    header {
        padding: 0.5rem 1rem;
    }

    nav {
        height: 60px;
    }

    .nav-left .logo img {
        height: 40px;
        width: auto;
    }

    .nav-left .logo span {
        display: none; /* Hide brand text on mobile, keep logo clickable */
    }

    .nav-middle {
        display: none; /* Hide search on mobile */
    }

    .nav-right {
        gap: 0;
        justify-content: flex-end;
        opacity: 1 !important; /* Override inline opacity for mobile */
    }

    /* Hide desktop navigation links on mobile */
    .nav-right .desktop-nav-link {
        display: none !important;
    }
    
    .nav-right a.nav-link,
    .nav-right a.button.primary:not(.login-button-animated) {
        display: none !important;
    }
    
    /* Show login button on mobile but styled for mobile */
    .nav-right a.login-button-animated {
        display: inline-block !important;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important; /* remove temporary background */
        border: none !important; /* remove temporary border */
    }

    /* Footer Mobile Styles */
    footer {
        padding: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        gap: 0.3rem;
    }

    .footer-brand span {
        font-size: 1.1rem;
    }

    .footer-brand .copyright {
        font-size: 0.7rem;
        padding-left: 0;
        margin-top: 0.2rem;
    }

    .footer-social-icons {
        margin-left: 0;
        margin-top: 0.5rem;
        gap: 0.8rem;
    }

    .footer-social-link svg {
        width: 16px;
        height: 16px;
    }

    .footer-links {
        gap: 1.5rem;
        font-size: 0.8rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Remove large gap - make content sequential on mobile */
    .landing-section {
        min-height: auto !important; /* Don't force full viewport height */
    }
    
    .landing-section main {
        padding-bottom: 2rem; /* Add small padding at bottom */
    }
    
    /* Hide scroll indicator on mobile only */
    .scroll-indicator {
        display: none !important;
    }

    .hero-section {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        margin-top: 0.5rem;
        min-height: auto;
        padding: 1rem 2rem;
    }

    .hero-image {
        margin: 0 auto 2rem;
        max-width: 85%;
    }

    .features-content {
        min-height: auto;
        padding-top: 0.5rem;
    }

    .features-section {
        padding: 1.5rem 0;
    }

    .features-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .description {
        font-size: 0.8rem;
    }

    .contact-info {
        margin-top: 2.5rem;
        color: #666;
        font-size: 0.9rem;
    }

    .email-link {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 300;
    }

    .search-cta .button.primary {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }

    .footer-links {
        gap: 2rem;
        font-size: 0.9rem;
    }
}

/* Desktop/Tablet Styles */
@media screen and (min-width: 769px) {
    .swiper-container {
        display: none;
    }

    .features-grid {
        display: grid;
    }

    .mobile-only {
        display: none;
    }
    
    /* Ensure scroll indicator is visible on desktop */
    .scroll-indicator {
        display: block !important;
    }
}

/* Responsive Styles */
@media screen and (min-width: 1400px) {
    main {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Landing Section */
.landing-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-section main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 1rem; /* Small padding at top */
    position: relative; /* Required for absolute positioning of scroll indicator */
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: block; /* Ensure visible on desktop by default */
    opacity: 1; /* Explicitly set opacity to 1 */
    pointer-events: auto; /* Enable interactions */
}

.scroll-indicator .circle {
    width: 85px;
    height: 85px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(17, 161, 145, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-indicator .circle svg {
    width: 52px;
    height: 52px;
    stroke-width: 3.5px;
}

.scroll-indicator:hover .circle {
    transform: translateY(5px);
    box-shadow: 0 6px 16px rgba(17, 161, 145, 0.5);
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mobile adjustments for scroll indicator */
@media screen and (max-width: 768px) {
    .scroll-indicator {
        bottom: 2rem;
    }

    .scroll-indicator .circle {
        width: 55px;
        height: 55px;
    }

    .scroll-indicator .circle svg {
        width: 28px;
        height: 28px;
    }
}

/* Features Content */
.features-content {
    min-height: 100vh;
    background-color: var(--background-color);
    padding-top: 2rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    /* Use fixed pixel height instead of viewport units to prevent jumping */
    .landing-section {
        min-height: 100vh;
        height: auto;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }

    .scroll-indicator .circle {
        width: 40px;
        height: 40px;
    }

    .features-content {
        min-height: auto;
        padding-top: 0; /* No padding for tightest flow */
        /* Lock position to prevent shifts during scroll */
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    .features-section {
        padding: 0 0 2rem 0; /* Add bottom padding for space before footer */
        /* Lock position to prevent shifts */
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    /* Lock features title in place but not swiper (to allow smooth swiping) */
    .features-title {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* Laptop/Smaller Desktop Screens */
@media screen and (max-width: 1366px) {
    /* Hero Section Adjustments */
    h1 {
        font-size: 3.8rem;
        margin-bottom: 2.5rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .description {
        font-size: 1.2rem;
    }

    .hero-content {
        margin-bottom: 8rem;
    }

    .hero-image {
        margin-bottom: 6rem;
    }

    /* Features Section Adjustments */
    .features-grid {
        gap: 2rem;
        width: 95%;
        padding: 0 1.5rem;
    }

    .feature-card img {
        height: 280px;
    }

    .feature-card h3 {
        font-size: 1.5rem;
        margin: 1.2rem 1.2rem;
    }

    .feature-card p {
        font-size: 1.1rem;
        margin: 0 1.2rem 1.5rem;
    }

    .features-title {
        font-size: 2.4rem;
        margin-bottom: 2.5rem;
    }

    .search-cta {
        margin-top: 3rem;
    }

    .search-cta .button.primary {
        font-size: 1.3rem;
        padding: 0.9rem 2.2rem;
    }
}

/* Smaller Laptop Screens */
@media screen and (max-width: 1024px) {
    .hero-section {
        gap: 1.5rem;
    }

    h1 {
        font-size: 3.2rem;
        margin-bottom: 2rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .hero-content {
        margin-bottom: 6rem;
        max-width: 600px;
    }

    .hero-image {
        margin-bottom: 4rem;
    }

    .features-grid {
        gap: 1.5rem;
    }

    .feature-card img {
        height: 250px;
    }

    .feature-card h3 {
        font-size: 1.4rem;
        margin: 1rem 1rem;
    }

    .feature-card p {
        font-size: 1rem;
        margin: 0 1rem 1.2rem;
    }

    .features-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .footer-links {
        gap: 3rem;
    }

    .footer-brand span {
        font-size: 1.3rem;
    }
}

/* Update existing mobile styles to ensure smooth transition */
@media screen and (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: 1rem;
    }

    .hero-content {
        margin-bottom: 3rem;
        text-align: center;
    }

    .hero-image {
        margin-bottom: 2rem;
        margin-left: 0;
        max-width: 85%;
    }

    h1 {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .description {
        font-size: 1.1rem;
    }

    .features-title {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .search-cta .button.primary {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }

    .footer-links {
        gap: 2rem;
        font-size: 0.9rem;
    }
}

/* Large Desktop to Small Desktop (1920px to 1440px) */
@media screen and (max-width: 1920px) {
    .hero-content {
        max-width: 700px;
    }

    .hero-image {
        max-width: 45%;
    }
}

/* Standard Desktop (1440px to 1280px) */
@media screen and (max-width: 1440px) {
    h1 {
        font-size: 4rem;
    }

    .subtitle {
        font-size: 1.6rem;
    }

    .hero-content {
        max-width: 650px;
        margin-bottom: 9rem;
    }

    .hero-image {
        max-width: 43%;
        margin-bottom: 7rem;
    }

    .features-grid {
        width: 95%;
        gap: 2.5rem;
    }

    .feature-card img {
        height: 320px;
    }
}

/* Small Desktop/Large Laptop (1280px to 1024px) */
@media screen and (max-width: 1280px) {
    .hero-section {
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 3.5rem;
        margin-bottom: 2.5rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .description {
        font-size: 1.2rem;
    }

    .hero-content {
        max-width: 600px;
        margin-bottom: 8rem;
    }

    .hero-image {
        max-width: 45%;
        margin-bottom: 6rem;
        margin-left: 1.5rem;
    }

    .hero-image img {
        max-height: 55vh;
    }

    .features-grid {
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .feature-card img {
        height: 280px;
    }

    .feature-card h3 {
        font-size: 1.6rem;
        margin: 1.2rem 1.2rem;
    }

    .features-title {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }
}

/* Laptop (1024px to 768px) */
@media screen and (max-width: 1024px) {
    .hero-section {
        gap: 1rem;
        padding: 0 1rem;
    }

    h1 {
        font-size: 3.2rem;
        margin-bottom: 2rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .description {
        font-size: 1.1rem;
    }

    .hero-content {
        max-width: 520px;
        margin-bottom: 6rem;
    }

    .hero-image {
        max-width: 42%;
        margin-bottom: 4rem;
        margin-left: 1rem;
    }

    .hero-image img {
        max-height: 50vh;
    }

    .features-grid {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .feature-card img {
        height: 250px;
    }

    .feature-card h3 {
        font-size: 1.4rem;
        margin: 1rem 1rem;
    }

    .feature-card p {
        font-size: 1rem;
        margin: 0 1rem 1.2rem;
    }

    .features-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .search-cta {
        margin-top: 3rem;
    }

    .search-cta .button.primary {
        font-size: 1.3rem;
        padding: 0.9rem 2rem;
    }

    .footer-links {
        gap: 3rem;
    }

    .footer-brand span {
        font-size: 1.3rem;
    }
}

/* Tablet and Mobile (below 768px) */
@media screen and (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: 1rem 1.25rem; /* Slightly more horizontal padding for balance */
        gap: 2rem;
    }

    .hero-content {
        margin-bottom: 0; /* No gap */
        text-align: center;
        max-width: 100%;
        padding: 0; /* Remove any inherited padding */
    }

    .hero-image {
        margin: 0 auto 2rem;
        max-width: 85%;
    }

    .search-box {
        display: flex;
        gap: 1rem;
        margin-bottom: 2.5rem;
        width: 100%;
    }
    
    .conference-search {
        flex: 1;
        padding: 1rem 1.5rem;
        padding: 0.75rem 1rem;
        border: 1px solid #a9a8a8;
        border-radius: 4px;
        font-size: 0.65rem;
    }
    
    /* Add styles for placeholder text */
    .conference-search::placeholder {
        color: #c0c4cb;  /* A lighter grey color */
        opacity: 1;  /* Ensures consistent opacity across browsers */
    }
    
    .search-button {
        background-color: var(--primary-color);
        color: white;
        border: none;
        padding: 0.55rem 1rem;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 700;
        font-size: 0.8rem;
    }

    .hero-image img {
        max-height: 45vh;
    }

    h1 {
        font-size: 2rem; /* Smaller font size on mobile */
        line-height: 1.2; /* Tighter line height for two lines */
    }
    
    /* Show line break only on mobile */
    .mobile-break {
        display: inline;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .description {
        font-size: 0.8rem;
    }

    .contact-info {
        margin-top: 2.5rem;
        color: #666;
        font-size: 0.9rem;
    }

    .email-link {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 300;
    }

    .features-title {
        font-size: 1.6rem;
        padding: 0 1rem;
    }

    .search-cta .button.primary {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }

    .footer-links {
        gap: 2rem;
        font-size: 0.9rem;
    }
}

/* Laptop-specific styles (13-17 inch laptops: 1024px-1680px) */
@media screen and (min-width: 1024px) and (max-width: 1680px) {
    /* Reset features title to original position for laptops */
    .features-title {
        margin-top: calc(1.5rem - 25px);
    }
    
    /* Move feature cards up by 20px on laptops */
    .features-grid.desktop-only {
        margin-top: 10px;
        transform: translateY(0px);
    }
    
    /* Hero title adjustments for laptops */
    .hero-section .hero-content h1 {
        margin-top: 20px;
        transform: translateY(20px);
    }
    
    /* Reduce hero image size on laptops */
    .hero-section .hero-image img[src$="index_conference_image.png"] {
        width: calc(100% - 25px);
        max-height: calc(70vh - 25px);
    }
    
    /* Nudge search bar down on laptops */
    .hero-section .search-box {
        margin-top: 10px;
        transform: translateY(10px);
    }
    
    /* Make first two feature card images fill container on laptops */
    .features-grid.desktop-only img[src$="category_search_updated.png"],
    .features-grid.desktop-only img[src$="people_feature_card_wide.png"] {
        height: 270px;
        object-fit: cover;
        width: 100%;
        display: block;
    }
    
    /* Adjust feature card descriptions on laptops */
    .features-grid.desktop-only .feature-card p {
        transform: translateY(-10px);
        font-size: 1.05rem;
        margin-bottom: calc(2rem - 15px);
    }

    /* Raise scroll indicator by 10px on laptops */
    .scroll-indicator {
        bottom: calc(2.5rem + 30px);
    }

    /* Slightly reduce contact info text size on laptops */
    .contact-info {
        font-size: 1.1rem;
    }
}

/* Sign Up Page Styles */
.signup-container {
    min-height: calc(100vh - 180px); /* Account for header and footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.signup-content {
    display: flex;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.signup-form {
    flex: 1;
    padding: 3rem;
    max-width: 500px;
}

.signup-form h1 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.signup-description {
    font-size: 1.21rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
    text-align: justify;
    max-width: 400px;
}

.signup-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input {
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.signup-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
    width: 100%;
}

.signup-button:hover {
    background-color: #0e9682;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #666;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-link {
    text-align: center;
    margin-top: 0.5rem;
    color: #666;
}

.forgot-password-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-link a:hover {
    text-decoration: underline;
}

.terms-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1.5rem;
    line-height: 1.5;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.signup-image {
    flex: 1;
    background-color: #f8f9fa;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    text-align: center;
}

.signup-image .large-logo {
    width: 500px;
    height: 350px;
    margin-bottom: 2rem;
}

.signup-image h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    line-height: 1.4;
    max-width: 350px;
    margin-top: 1rem;
}

/* Responsive Styles for Sign Up Page */
@media screen and (max-width: 1024px) {
    .signup-content {
        max-width: 900px;
    }

    .signup-form {
        padding: 2.5rem;
    }

    .signup-image {
        padding: 2.5rem;
    }

    .signup-image .large-logo {
        width: 180px;
        height: 180px;
    }

    .signup-image h2 {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 768px) {
    .signup-content {
        flex-direction: column;
        max-width: 500px;
    }

    .signup-form {
        max-width: 100%;
        padding: 1rem;
    }

    .signup-form h1 {
        font-size: 2.4rem;
    }

    .signup-description {
        font-size: 1rem;
        margin-bottom: 1.8rem;
        max-width: 340px;
    }

    .signup-image {
        display: none;  /* Hide the signup image section on mobile */
    }
}

/* Password Requirements Styles */
.password-group {
    position: relative;
}

.password-requirements {
    position: absolute;
    left: -280px;
    top: 0;
    width: 250px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: none;
    z-index: 100;
}

.password-requirements::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid white;
    filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.1));
}

.password-requirements.visible {
    display: block;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc3545;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement.valid {
    color: #28a745;
}

.requirement-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* Mobile adjustments for password requirements */
@media screen and (max-width: 1024px) {
    .password-requirements {
        left: auto;
        right: 0;
        top: 100%;
        margin-top: 0.5rem;
    }

    .password-requirements::after {
        right: auto;
        left: 20px;
        top: -10px;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: none;
        border-bottom: 10px solid white;
    }
}

/* Input with check mark styles */
.input-with-check {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-check input {
    width: 100%;
}

.check-mark {
    position: absolute;
    right: 12px;
    color: #28a745;
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.input-with-check.valid .check-mark {
    opacity: 1;
    transform: scale(1);
}

/* Update existing input styles to accommodate check mark */
.form-group input {
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.input-with-check.valid input {
    border-color: #28a745;
}

/* Mobile Styles for Features and Swiper */
@media screen and (max-width: 768px) {
    /* Prevent horizontal scroll on mobile */
    html, body {
        max-width: 100vw;
        overflow-x: hidden !important;
    }
    
    .landing-section,
    .features-content,
    main {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .desktop-only {
        display: none;
    }

    /* Features title positioning on mobile */
    .features-title {
        margin-top: 0 !important; /* No top margin */
        margin-bottom: 0.25rem !important; /* Very minimal bottom margin */
        font-size: 1.2rem;
    }

    .swiper-container {
        display: block;
        padding: 10px 20px;
        margin: 0 auto;
        margin-top: 0 !important;
        width: 100%;
        max-width: 400px;
        overflow: hidden;
        position: relative;
        --swiper-navigation-size: 45px;
    }

    .swiper-wrapper {
        display: flex;
    }

    .swiper-slide .feature-card {
        width: calc(100% - 70px);
        height: 360px;
        min-height: 360px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .swiper-slide .feature-card img {
        width: 100%;
        height: 55%; /* balance image vs text within fixed card height */
        padding: 0;
        object-fit: cover; /* fill container without letterboxing */
        display: block;
        background-color: #f5f5f5;
        /* Prevent image from disappearing during swipe */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    /* Ensure Conference Navigator image fills the container on mobile */
    .swiper-slide .feature-card img[alt*="Laptop showing category"],
    .swiper-slide .feature-card img[alt*="category"] {
        object-fit: cover !important;
        transform: none !important;
        width: 100% !important;
        height: 55% !important;
        padding: 0 !important;
        background-color: #f5f5f5;
    }

    .swiper-slide .feature-card h3 {
        font-size: 1.3rem;
        margin: 0.8rem 1rem;
    }

    .swiper-slide .feature-card p {
        font-size: 0.9rem;
        margin: 0 1rem 1.2rem;
        line-height: 1.4;
    }

    .swiper-pagination {
        position: relative;
        margin-top: 15px;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: var(--primary-color);
        opacity: 0.3;
        margin: 0 5px;
    }

    .swiper-pagination-bullet-active {
        opacity: 1;
    }

    /* Swiper navigation arrows for mobile - refined minimal design */
    .swiper-button-prev,
    .swiper-button-next {
        width: 32px !important;
        height: 38px !important;
        background: #E7F7F5;
        border-radius: 50%;
        color: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .swiper-button-prev:after,
    .swiper-button-next:after {
        content: none !important;
        display: none !important;
        background-image: none !important; /* remove default blue arrows */
    }

    .swiper-button-prev {
        left: -2px;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311a191' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M14 6 L8 12 L14 18'/></svg>");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 50% 50%;
    }

    .swiper-button-next {
        right: -2px;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311a191' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M10 6 L16 12 L10 18'/></svg>");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 50% 50%;
    }

    .swiper-button-prev:hover,
    .swiper-button-next:hover {
        background-color: #11a191;
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
        border-color: rgba(17, 161, 145, 0.35);
    }

    .swiper-button-prev:hover {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M14 6 L8 12 L14 18'/></svg>");
    }

    .swiper-button-next:hover {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M10 6 L16 12 L10 18'/></svg>");
    }

    .swiper-button-prev:active,
    .swiper-button-next:active {
        transform: translateY(-50%) scale(0.98);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
        filter: brightness(0.98);
        background-color: #E7F7F5;
    }

    .swiper-button-prev:active {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311a191' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M14 6 L8 12 L14 18'/></svg>");
    }

    .swiper-button-next:active {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311a191' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M10 6 L16 12 L10 18'/></svg>");
    }

    .swiper-button-disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
        border-color: rgba(0, 0, 0, 0.06);
    }

    .swiper-button-disabled:hover {
        transform: translateY(-50%);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }
}

/* Enhanced Search Suggestions Styles */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-suggestion {
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion:hover {
    background-color: #f5f5f5;
}

.suggestion-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.suggestion-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.suggestion-details span {
    display: flex;
    align-items: center;
}

.suggestion-details span svg {
    flex-shrink: 0;
}

/* TBA (To Be Announced) styling for search suggestions */
.tba-text {
    color: #999 !important;
    font-style: italic;
}

.suggestion-category {
    margin: 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.category-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag {
    background-color: #f0f0f0;
    color: #666;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.suggestion-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Mobile Styles for Enhanced Search Suggestions */
@media screen and (max-width: 768px) {
    .search-suggestions {
        max-height: 350px;
    }

    .search-suggestion {
        padding: 0.8rem;
        text-align: left;
    }

    .suggestion-name {
        font-size: 1rem;
        text-align: left;
    }

    .suggestion-details {
        flex-direction: column;
        gap: 0.2rem;
        font-size: 0.8rem;
    }

    .suggestion-details span {
        display: flex;
        align-items: center;
    }

    .suggestion-details span svg {
        width: 12px !important;
        height: 12px !important;
    }

    .suggestion-category {
        margin: 0.4rem 0;
        gap: 0.4rem;
    }

    .category-tag {
        font-size: 0.75rem;
    }

    .tag {
        font-size: 0.75rem;
    }

    .suggestion-description {
        font-size: 0.8rem;
        margin-top: 0.4rem;
    }
}

/* Location Search Page Styles */
.location-search-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.location-search-container h1 {
    font-size: 3rem;
    color: var(--text-color);
    /* margin-top: 1rem; */
    margin-bottom: 1rem;
    text-align: center;
}

.location-description {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.map-container {
    position: relative;
    margin-bottom: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

#world-map {
    width: 100%;
    height: 500px;
}

.map-legend {
    position: absolute;
    bottom: 2rem;
    right: 3rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.available {
    background-color: var(--primary-color);
}

.legend-color.unavailable {
    background-color: #e9ecef;
}

.conference-list {
    margin-top: 3rem;
}

.conference-list h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

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

.conference-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.2s ease;
}

.conference-item:hover {
    transform: translateY(-5px);
}

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

.conference-header h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0;
    flex: 1;
    margin-right: 1rem;
}

.conference-date {
    color: var(--primary-color);
    font-weight: 500;
    white-space: nowrap;
}

.conference-location {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.conference-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.conference-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Mobile Styles for Location Search */
@media screen and (max-width: 768px) {
    .location-search-container {
        padding: 1rem;
    }

    .location-search-container h1 {
        font-size: 2rem;
    }

    .location-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .map-container {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    #world-map {
        height: 300px;
    }

    .map-legend {
        bottom: 1rem;
        right: 1rem;
        padding: 0.5rem;
    }

    .legend-color {
        width: 16px;
        height: 16px;
    }

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

    .conference-item {
        padding: 1rem;
    }

    .conference-header h3 {
        font-size: 1.1rem;
    }
}

/* Profile Completion Page Styles */
.profile-completion-container {
    min-height: calc(100vh - 180px);
    padding: 4rem;
    background-color: #ffffff;
}

.profile-completion-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 3rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-header h1 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    /* font-family: 'Playfair Display', serif; */
    font-weight: 600;
}

.profile-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.profile-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.profile-image-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
    padding: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.profile-image-container:hover .image-overlay {
    opacity: 1;
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.upload-label {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-label svg {
    width: 32px;
    height: 32px;
}

.upload-hint {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.form-sections {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-section {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
}

.section-title {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.character-count {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.input-with-icon {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-with-icon:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.input-icon {
    padding: 0.8rem 1rem;
    background-color: #f8f9fa;
    color: #666;
    border-right: 2px solid #e0e0e0;
    font-size: 0.9rem;
    white-space: nowrap;
}

.input-with-icon input {
    border: none;
    border-radius: 0;
    flex: 1;
}

.input-with-icon input:focus {
    border: none;
    box-shadow: none;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

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

.complete-profile-button {
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.complete-profile-button:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-1px);
}

.skip-button {
    padding: 0.8rem 2rem;
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skip-button:hover {
    background-color: #f8f9fa;
    border-color: #d0d0d0;
}

@media (max-width: 768px) {
    .profile-completion-container {
        padding: 1rem;
        min-height: calc(100vh - 120px);
    }

    .profile-completion-content {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .profile-header {
        margin-bottom: 2rem;
    }

    .profile-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .profile-description {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .profile-image-section {
        margin-bottom: 2rem;
    }

    .profile-image-container {
        width: 120px;
        height: 120px;
    }

    .upload-label svg {
        width: 24px;
        height: 24px;
    }

    .form-sections {
        gap: 1.5rem;
    }

    .form-section {
        padding: 1.2rem;
        border-radius: 8px;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

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

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    .input-with-icon {
        flex-direction: column;
        border: none;
    }

    .input-icon {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
        padding: 0.5rem;
        text-align: left;
        background-color: #f0f0f0;
    }

    .input-with-icon input {
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        width: 100%;
    }

    .character-count {
        font-size: 0.8rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 2rem;
    }

    .complete-profile-button,
    .skip-button {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    textarea {
        min-height: 100px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 60000; /* Higher than header (50000) to cover it */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Smooth fade out - delay visibility until animation completes */
    transition: opacity 0.4s ease-out, visibility 0s linear 0.4s !important;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* Smooth fade in - no visibility delay when opening */
    transition: opacity 0.4s ease-out, visibility 0s linear 0s !important;
}

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: scale(0.95) translateY(30px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease-out !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: justify;
    hyphens: auto;
}

/* Account Not Found popup specific sizing: reduce width by 10px on both sides */
.user-not-found-modal {
    max-width: 590px;
    width: calc(90% - 10px);
}

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

.modal-content img {
    width: 150px;
    height: auto;
    margin: 0 auto 1.5rem auto;
    display: block;
}

.modal-content h2 {
    color: var(--text-color);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: center;
}

.modal-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-content p:last-child {
    margin-bottom: 0;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #666;
    font-size: 1.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--text-color);
}

@media screen and (max-width: 768px) {
    .modal-content {
        padding: 2rem;
        width: 95%;
    }

    /* Maintain the 10px-per-side reduction on small screens */
    .user-not-found-modal {
        width: calc(95% - 10px);
        margin-left: 5px;
    }

    .modal-content img {
        width: 100px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

	/* About Us modal: reduce overall size on mobile */
	#aboutUsModal .modal-content {
		width: calc(95% - 10px); /* decrease width by 10px */
		padding-top: calc(2rem - 10px); /* reduce height by 10px from top */
		padding-bottom: calc(2rem - 10px); /* reduce height by 10px from bottom */
	}

	/* First paragraph starts with "At ConFoyage..." */
	#aboutUsModal .modal-content p:first-of-type {
		font-size: 0.8rem; /* decrease by 0.1rem from default 1rem */
	}

	/* Remaining paragraphs within About Us modal */
	#aboutUsModal .modal-content p:not(:first-of-type) {
		font-size: 0.8rem;
	}
}

/* Login Modal Styles */
.login-modal {
    max-width: 400px !important;
    padding: 2rem !important;
    text-align: center !important;
}

/* Slightly reduce the height of the full login modal from the bottom */
#loginModal .login-modal {
    padding-bottom: calc(2rem - 25px) !important;
}

/* Slightly reduce the height of the email-first Sign In modal from the bottom */
#emailFirstModal .login-modal {
    padding-bottom: calc(2rem - 15px) !important;
}

/* Email-first modal (Sign In) adjustments */
#emailFirstModal .login-footer {
    display: none;
}

#emailFirstModal .login-header h2 {
    text-transform: capitalize;
    font-size: 1.5rem;
}

/* Email Input Wrapper */
.email-input-wrapper {
    position: relative;
    display: block;
}

/* Email Suggestions Dropdown */
.email-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    -webkit-overflow-scrolling: touch;
}

.email-suggestions-dropdown.show {
    display: block;
}

.email-suggestion-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    transition: background-color 0.2s ease;
    min-height: 44px;
}

.email-suggestion-item:last-child {
    border-bottom: none;
}

.email-suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-email {
    flex: 1;
    text-align: left;
    cursor: pointer;
    color: var(--text-color);
    font-size: 0.95rem;
}

.remove-email-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
    color: #999;
    transition: color 0.2s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.remove-email-btn:hover {
    color: #dc2626;
    background-color: #fee2e2;
}

.remove-email-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .email-suggestion-item {
        padding: 1rem;
        min-height: 48px;
    }
    
    .remove-email-btn {
        width: 32px;
        height: 32px;
        margin-left: 0.75rem;
    }
}

.login-header {
    margin-bottom: 2rem;
    position: relative;
}

.login-logo {
    width: 80px !important;
    height: auto;
    margin: 0 auto 1rem auto;
    display: block;
}

.login-header h2 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Nudge the login modal title slightly left without affecting layout */
.login-modal .login-header h2 {
    position: relative;
    z-index: 1;
    transform: translateX(-15px);
}

/* Back button in login header */
.login-header .login-back-button {
    position: relative;
    float: left;
    margin: -12px 0 0 0;
    transform: translateY(15px);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 6px;
    z-index: 10;
}

.login-header .login-back-button:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Tooltip for back button */
.login-back-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10001;
}

.login-back-tooltip::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #1f2937;
}

.login-header .login-back-button:hover .login-back-tooltip {
    opacity: 1;
}

/* Make locked email input visually non-editable */
.login-modal input[readonly] {
    background-color: #f9fafb;
    color: #6b7280;
}

.login-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.login-form {
    margin-bottom: 1.5rem;
}

.login-form .form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Login modal: hide the Email label only within the modal */
.login-modal .login-form .form-group label {
    display: none;
}

.login-form .form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.login-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.magic-link-description {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    color: #0369a1;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.login-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.5rem;
}

.login-button:hover {
    background-color: #1d4ed8;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e7eb;
}

.divider span {
    background-color: white;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Login modal: remove divider and tighten spacing */
.login-modal .divider {
    display: none;
}

.login-modal .login-form {
    margin-bottom: 0.75rem;
}

/* Hide footer only in the full login modal (Choose Sign-In Method) */
#loginModal .login-footer {
    display: none;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: white;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-button:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* Disabled state for social buttons */
.social-button.disabled,
.social-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f5f5f5 !important;
    color: #999 !important;
    border-color: #e5e5e5 !important;
}

.social-button.disabled svg,
.social-button:disabled svg {
    opacity: 0.5;
}

/* Auth in progress state - slightly different from fully disabled */
.social-button.auth-in-progress {
    opacity: 0.5;
    cursor: wait;
    pointer-events: none;
}

.social-button svg {
    width: 20px;
    height: 20px;
}

.google-button {
    color: #374151;
}

.google-button:hover {
    background-color: #f8f9fa;
}



.linkedin-button {
    color: #0077b5;
}

.linkedin-button:hover {
    background-color: #f0f8ff;
}

/* Tooltip for disabled Google button */
.social-button.google-button {
    position: relative;
}

/* Override styles for disabled Google button to allow hover for tooltip and solid tooltip */
.social-button.google-button.disabled,
.social-button.google-button:disabled {
    pointer-events: auto;
    cursor: not-allowed;
    opacity: 1;
    background-color: #f0f0f0 !important;
    color: #aaaaaa !important;
    border-color: #e0e0e0 !important;
}

.social-button.google-button.disabled svg,
.social-button.google-button:disabled svg {
    opacity: 0.4;
}

.google-button-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    visibility: hidden;
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.google-button-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #000000 transparent transparent transparent;
}

.social-button.google-button.disabled:hover .google-button-tooltip,
.social-button.google-button:disabled:hover .google-button-tooltip {
    visibility: visible !important;
}

.login-footer {
    text-align: center;
}

.login-footer p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.signup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.signup-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .login-modal {
        padding: 1.5rem !important;
        width: 95% !important;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .social-button {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}

/* Contact Page Styles */
.contact-page {
    /* background-color: var(--secondary-background); */
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    /* padding: 4rem 2rem; */
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background-color: var(--background-color);
    padding: 3rem;
    border-radius: 12px;
    position: relative;
    margin-bottom: 20px !important;
}

.contact-info-section {
    padding-right: 2rem;
    text-align: justify;
    hyphens: auto;
    display: flex;
    flex-direction: column;
}

.contact-info-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.contact-info-section p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 1rem;
    margin-bottom: 0cap;
}

/* Desktop-only adjustment: move email/location up by 10px */
@media screen and (min-width: 769px) {
    .contact-page .contact-details {
        margin-top: calc(1rem - 20px);
    }
}

#contact-map {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

/* Desktop-only: reduce map dimensions by 20px each */
@media screen and (min-width: 769px) {
    #contact-map {
        height: 240px !important; /* 300px - 20px */
        width: calc(100% - 70px);
        margin-top: 10px !important; /* move up by 10px */
    }
}

/* Desktop-only: move only the location row up by 10px */
@media screen and (min-width: 769px) {
    .contact-page .contact-details .contact-item:nth-of-type(2) {
        margin-top: -10px;
    }
}

/* Desktop-only: reduce gaps between contact form fields by 10px */
@media screen and (min-width: 769px) {
    .contact-page .contact-form {
        gap: calc(4.3rem - 38px);
    }
}

/* Desktop-only: bring the Send Message button down by 10px */
@media screen and (min-width: 769px) {
    .contact-page .contact-form button {
        bottom: -35px;
    }
}

/* Desktop-only: add space between button and footer */
@media screen and (min-width: 769px) {
    .contact-page .contact-container {
        margin-bottom: 30px !important;
    }
}

/* Desktop-only: move main content up by 20px */
@media screen and (min-width: 769px) {
    .contact-page .contact-container {
        margin-top: -50px;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item img {
    width: 24px;
    height: 24px;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 4.3rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form label {
    font-weight: 500;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    position: absolute;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    min-width: 200px;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px !important;
}

.contact-form button:hover {
    background-color: #0e9682;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 768px) {
    .contact-page {
        padding: 2rem 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        padding-bottom: 4rem;
        margin-top: -20px;
    }

    .contact-info-section {
        padding-right: 0;
    }

    .contact-info-section h1 {
        font-size: 2rem;
    }

    .contact-info-section p {
        font-size: 1rem;
    }

    .contact-form {
        gap: calc(4.3rem - 30px);
    }

    .contact-page .contact-details .contact-item:nth-of-type(1) {
        margin-top: -25px;
    }

    .contact-page .contact-details .contact-item:nth-of-type(2) {
        margin-top: -15px;
    }

    .contact-form button {
        position: absolute;
        left: 50%;
        bottom: -20px;
        transform: translateX(-50%);
        width: calc(100% - 4rem);
        min-width: unset;
    }

    #contact-map {
        height: 250px !important;
        margin-top: calc(1.5rem - 20px) !important;
    }
}

/* Review Action Buttons */
.review-actions {
    display: flex;
    justify-content: center;
    gap: 1.7rem;
    margin: 3rem auto;
    max-width: 600px;
    padding: 0 1rem;
}

.review-actions button {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.submit-review {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.submit-review:hover {
    background-color: #0e9682;
    transform: translateY(-2px);
}

.discard-review {
    background-color: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.discard-review:hover {
    background-color: #f8f9fa;
    border-color: #666;
    color: #333;
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .review-actions {
        flex-direction: column;
        gap: 1rem;
        margin: 2rem auto;
    }

    .review-actions button {
        width: 100%;
        padding: 0.8rem;
        font-size: 1rem;
    }
}

/* Warning Modal Styles */
.warning-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 60000; /* Higher than header (50000) to cover it */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.warning-modal {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.warning-modal-overlay.active .warning-modal {
    transform: translateY(0);
}

.warning-modal h3 {
    color: #dc3545;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.warning-modal p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.warning-modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.warning-modal-actions button {
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.warning-modal-actions .confirm-discard {
    background-color: #dc3545;
    color: white;
    border: none;
}

.warning-modal-actions .confirm-discard:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.warning-modal-actions .cancel-discard {
    background-color: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.warning-modal-actions .cancel-discard:hover {
    background-color: #f8f9fa;
    border-color: #666;
    color: #333;
    transform: translateY(-1px);
}

@media screen and (max-width: 768px) {
    .warning-modal {
        padding: 1.5rem;
        width: 95%;
    }

    .warning-modal h3 {
        font-size: 1.3rem;
    }

    .warning-modal p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .warning-modal-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .warning-modal-actions button {
        width: 100%;
        padding: 0.7rem;
    }
}

/* Category Search Page Styles */
.category-search-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-header h1 {
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.category-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.category-filters {
    margin-bottom: 3rem;
}

.category-filters .search-box {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.category-search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    outline: none;
}

.category-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
    outline: none;
}

.popular-categories {
    text-align: center;
}

.popular-categories h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.category-tag {
    padding: 0.6rem 1.2rem;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.category-tag:hover {
    background-color: #e8e8e8;
    transform: translateY(-2px);
}

.category-tag.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.results-header h2 {
    font-size: 2rem;
    color: var(--text-color);
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-color);
    background-color: white;
    cursor: pointer;
}

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

.conference-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.conference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.conference-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.conference-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.conference-content {
    padding: 1.5rem;
}

.conference-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.3;
}

.conference-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.conference-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.conference-categories .tag {
    background-color: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #555;
}

.conference-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

.load-more button {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .category-search-container {
        padding: 1rem;
    }

    .category-header h1 {
        font-size: 2.5rem;
    }

    .category-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

    .category-tags {
        padding: 0 1rem;
    }

    .category-tag {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .conference-card {
        margin: 0 1rem;
    }
}

/* Category Dropdown Styles */
.dropdown-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.dropdown-wrapper {
    flex: 1;
    max-width: 300px;
}

.category-dropdown {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.category-dropdown:hover {
    border-color: #007bff;
}

.category-dropdown:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.category-dropdown option {
    padding: 8px;
}

.like-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.2s ease;
    font-size: 0.9em;
    color: #666;
}

.like-button:hover {
    background-color: #f0f0f0;
}

.like-button.liked {
    color: #009688; /* Changed from #e91e63 to match the site's theme color */
}

.like-button.liked .like-icon {
    color: #009688; /* Changed from #e91e63 to match the site's theme color */
    transform: scale(1.1); /* Add a slight scale effect when liked */
}

/* User Not Found Popup Styles */
.user-not-found-modal {
    max-width: 450px !important;
    padding: 2rem !important;
    text-align: center !important;
}

.user-not-found-modal h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.user-not-found-modal p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.user-not-found-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.signup-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.signup-btn:hover {
    background-color: #0f8a7c;
    transform: translateY(-1px);
}

.maybe-later-btn {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.maybe-later-btn:hover {
    background-color: #f8f9fa;
    border-color: #d0d0d0;
}

/* Phone screen styles for Account Not Found popup */
@media (max-width: 768px) {
    .user-not-found-actions {
        flex-direction: row !important;
        gap: 10px !important;
        width: 100%;
        justify-content: center !important;
    }
    
    .user-not-found-actions .maybe-later-btn {
        flex: 0 0 auto !important;
        width: calc(50% - 50px) !important; /* Reduce width by 30px from both sides (60px total) */
        margin-left: -150px !important; /* Move Discard button to the left by 40px */
        margin-right: 0 !important;
        padding: 12px 25px !important;
        font-size: 0.95rem;
    }
    
    .user-not-found-actions .signup-btn {
        flex: 1 !important;
        margin-left: 150px !important; /* Move Sign Up button to the right by 30px */
        padding: 12px 30px !important;
        font-size: 0.95rem;
    }
}

/* Mobile optimization: shift hero section 5px left */
@media screen and (max-width: 768px) {
    .hero-section {
        margin-left: -14px;
        margin-right: 5px;
    }
    
    /* Hide hero image on mobile */
    .hero-image {
        display: none !important;
    }
    
    /* Ensure h1 and other text elements are properly centered */
    .hero-content h1,
    .hero-content .subtitle,
    .hero-content .description,
    .hero-content .contact-info {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ========== My Conferences Modal Styles ========== */
.my-conferences-modal-overlay {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 60000;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
    transition: background 0.4s ease-out, backdrop-filter 0.4s ease-out, visibility 0s linear 0.4s;
}

.my-conferences-modal-overlay.show {
    visibility: visible;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    transition: background 0.4s ease-out, backdrop-filter 0.4s ease-out, visibility 0s linear 0s;
}

.my-conferences-modal {
    width: 720px;
    max-width: 95vw;
    background: #ffffff;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

.my-conferences-modal-overlay.show .my-conferences-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.my-conferences-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.my-conferences-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.my-conferences-modal-close {
    background: #f5f5f5;
    color: #666;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-conferences-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.my-conferences-modal-body {
    overflow-y: auto;
    padding: 8px 0;
    max-height: 440px; /* Height for ~6 conference items (72px each + padding) */
}

.my-conferences-list-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    gap: 14px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.2s ease, opacity 0.3s ease;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(10px);
    animation: myConferencesListItemIn 0.4s ease forwards;
}

.my-conferences-list-item:nth-child(1) { animation-delay: 0.05s; }
.my-conferences-list-item:nth-child(2) { animation-delay: 0.1s; }
.my-conferences-list-item:nth-child(3) { animation-delay: 0.15s; }
.my-conferences-list-item:nth-child(4) { animation-delay: 0.2s; }
.my-conferences-list-item:nth-child(5) { animation-delay: 0.25s; }
.my-conferences-list-item:nth-child(6) { animation-delay: 0.3s; }
.my-conferences-list-item:nth-child(7) { animation-delay: 0.35s; }
.my-conferences-list-item:nth-child(8) { animation-delay: 0.4s; }
.my-conferences-list-item:nth-child(9) { animation-delay: 0.45s; }
.my-conferences-list-item:nth-child(10) { animation-delay: 0.5s; }
.my-conferences-list-item:nth-child(n+11) { animation-delay: 0.55s; }

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

.my-conferences-list-item:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

.my-conferences-list-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    border: 2px solid #f0f0f0;
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease;
    background-color: #f8f9fa;
    padding: 4px;
}

.my-conferences-list-item:hover .my-conferences-list-logo {
    border-color: #3eb3a5;
    transform: scale(1.05);
}

.my-conferences-list-info {
    flex: 1;
    min-width: 0;
}

.my-conferences-list-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-conferences-list-date {
    font-size: 0.8rem;
    color: #666;
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-conferences-list-empty {
    padding: 40px 24px;
    text-align: center;
    color: #888;
    opacity: 0;
    transform: scale(0.95);
    animation: myConferencesEmptyIn 0.5s ease 0.1s forwards;
}

@keyframes myConferencesEmptyIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.my-conferences-list-empty svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.my-conferences-list-loading {
    padding: 40px 24px;
    text-align: center;
    color: #888;
    opacity: 0;
    animation: myConferencesFadeIn 0.3s ease forwards;
}

@keyframes myConferencesFadeIn {
    to { opacity: 1; }
}

.my-conferences-list-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f0f0f0;
    border-top-color: #3eb3a5;
    border-radius: 50%;
    animation: myConferencesSpin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes myConferencesSpin {
    to { transform: rotate(360deg); }
}

/* Mobile styles for My Conferences modal */
@media screen and (max-width: 480px) {
    .my-conferences-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
        transform: translateY(100%);
    }

    .my-conferences-modal-overlay.show .my-conferences-modal {
        transform: translateY(0);
    }
    
    .my-conferences-modal-body {
        max-height: 440px; /* Same fixed height on mobile */
    }
}