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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
    background-attachment: fixed;
    color: #2c3e50;
    height: 100vh;
    overflow: hidden;
}

.ebook-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.ebook-header {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(20, 184, 166, 0.1);
    z-index: 10;
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
    position: sticky;
    top: 0;
}

.header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-row-top {
    justify-content: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
    margin-bottom: 12px;
}

.header-row-bottom {
    justify-content: space-between;
}

.header-btn {
    padding: 11px 22px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.35);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

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

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

.header-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.5);
}

.header-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.view-toggle-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.view-toggle-btn {
    padding: 8px 16px;
    background: white;
    color: #495057;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-toggle-btn:hover {
    border-color: #14b8a6;
    color: #14b8a6;
}

.view-toggle-btn.active {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border-color: #14b8a6;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

.download-btn {
    text-decoration: none;
    display: inline-block;
}

.search-container {
    flex: 1;
    max-width: 400px;
}

.search-container input {
    width: 100%;
    padding: 10px 18px;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.page-info {
    font-size: 1rem;
    font-weight: 600;
    color: #14b8a6;
    white-space: nowrap;
}

.main-content {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
}

.book-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    position: relative;
    overflow: hidden;
}

.page-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.98));
    border: 2px solid rgba(20, 184, 166, 0.2);
    color: #14b8a6;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.page-nav:hover:not(:disabled) {
    transform: scale(1.15);
    box-shadow: 0 10px 40px rgba(20, 184, 166, 0.5);
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white;
    border-color: transparent;
}

.page-nav:active:not(:disabled) {
    transform: scale(1.05);
}

.page-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    filter: grayscale(1);
}

.page-nav.prev-page {
    margin-right: 15px;
}

.page-nav.next-page {
    margin-left: 15px;
}

.book-pages {
    position: relative;
    width: 100%;
    max-width: 1200px;
    perspective: 1500px;
    height: 75vh;
    max-height: 700px;
    display: flex;
    align-items: center;
}

.page {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(100%) rotateY(-20deg);
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.25), 0 5px 20px rgba(20, 184, 166, 0.15);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(20, 184, 166, 0.1);
}

.page.active {
    opacity: 1;
    transform: translateY(-50%) translateX(0) rotateY(0);
    z-index: 2;
}

.page.slide-out-left {
    opacity: 0;
    transform: translateY(-50%) translateX(-100%) rotateY(20deg);
}

.page.slide-out-right {
    opacity: 0;
    transform: translateY(-50%) translateX(100%) rotateY(-20deg);
}

.page-content {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 35px 45px 25px 45px;
    scroll-behavior: smooth;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid transparent;
    background: linear-gradient(to right, #14b8a6, #0d9488) bottom / 100% 3px no-repeat;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.2), transparent);
}

.company-header-content {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
}

.company-logo-container {
    background: white;
    padding: 15px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(20, 184, 166, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    max-width: 180px;
    transition: all 0.3s ease;
}

.company-logo-container:hover {
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-2px);
}

.company-logo {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.company-name {
    font-size: 2.8rem;
    color: #2c3e50;
    font-weight: 800;
    flex: 1;
    line-height: 1.2;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.page-num-badge {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    box-shadow: 0 5px 20px rgba(20, 184, 166, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.contact-sections {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.1);
    transition: all 0.3s ease;
}

.contact-section:hover {
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.15);
    transform: translateY(-2px);
}

.section-title {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: 1.8rem;
}

.support-contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.support-card {
    background: white;
    border-radius: 15px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(20, 184, 166, 0.08);
    transition: all 0.3s ease;
}

.support-card:hover {
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.12);
    transform: translateX(5px);
    border-color: rgba(20, 184, 166, 0.2);
}

.support-label {
    font-weight: 700;
    color: #14b8a6;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.support-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 5px 0;
}

.icon {
    font-size: 1.3rem;
}

.contact-value {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.phone-link:hover,
.email-link:hover {
    color: #14b8a6;
    text-decoration: underline;
}

.contact-badge {
    background: #e9ecef;
    padding: 5px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #6c757d;
}

.reps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.rep-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(20, 184, 166, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rep-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 35px rgba(20, 184, 166, 0.25);
    border-color: rgba(20, 184, 166, 0.3);
}

.rep-region {
    color: #14b8a6;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
}

.rep-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.no-data {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
    font-size: 1.3rem;
}

.page-progress {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(20, 184, 166, 0.1);
}

.progress-bar {
    height: 8px;
    background: linear-gradient(to right, rgba(20, 184, 166, 0.15), rgba(13, 148, 136, 0.15));
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #14b8a6 0%, #0d9488 50%, #14b8a6 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.toc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toc-overlay.active {
    display: flex;
    opacity: 1;
}

.toc-content {
    background: white;
    border-radius: 18px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 25px;
    border-bottom: 2px solid #f0f0f0;
}

.toc-header h2 {
    font-size: 1.6rem;
    color: #14b8a6;
}

.close-toc {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #6c757d;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-toc:hover {
    background: #f0f0f0;
    color: #2c3e50;
}

.toc-search {
    padding: 18px 25px;
    border-bottom: 2px solid #f0f0f0;
}

.toc-search input {
    width: 100%;
    padding: 10px 18px;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.toc-search input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.toc-list {
    overflow-y: auto;
    padding: 8px;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.toc-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.toc-item.active {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
}

.toc-number {
    background: #e9ecef;
    color: #14b8a6;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.toc-item.active .toc-number {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.toc-name {
    flex: 1;
    font-weight: 600;
}

/* Tablet Breakpoint */
@media (max-width: 992px) {
    .ebook-header {
        gap: 12px;
        padding: 14px 20px;
    }
    
    .header-btn {
        padding: 9px 18px;
        font-size: 0.9rem;
    }
    
    .search-container {
        flex: 1 1 auto;
        min-width: 200px;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .ebook-header {
        flex-wrap: wrap;
        padding: 12px 15px;
        gap: 8px;
    }
    
    .header-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        min-height: 44px;
    }
    
    .view-toggle-buttons {
        order: 2;
        flex-basis: 100%;
        justify-content: center;
        gap: 6px;
    }
    
    .view-toggle-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
        flex: 1;
        min-height: 44px;
    }
    
    .search-container {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }
    
    .search-container input {
        min-height: 44px;
    }
    
    .page-info {
        font-size: 0.85rem;
        order: 4;
    }
    
    .download-btn {
        order: 5;
    }
    
    .main-content {
        flex: 1;
        display: flex;
        overflow: hidden;
        position: relative;
    }
    
    .book-wrapper {
        padding: 10px;
    }
    
    .page-nav {
        width: 48px;
        height: 48px;
        min-height: 48px;
    }
    
    .page-nav svg {
        width: 32px;
        height: 32px;
    }
    
    .page-nav.prev-page {
        margin-right: 8px;
    }
    
    .page-nav.next-page {
        margin-left: 8px;
    }
    
    .page-content {
        padding: 25px 20px;
    }
    
    .company-name {
        font-size: 2rem;
    }
    
    .page-num-badge {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .reps-grid {
        grid-template-columns: 1fr;
    }
    
    .toc-content {
        width: 95%;
        max-height: 85vh;
    }
}

/* Small Mobile Breakpoint */
@media (max-width: 480px) {
    .ebook-header {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .header-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .view-toggle-btn {
        font-size: 0.7rem;
        padding: 8px 10px;
    }
    
    .page-content {
        padding: 20px 15px;
    }
    
    .company-name {
        font-size: 1.6rem;
    }
    
    .contact-value {
        font-size: 1rem;
    }
    
    .mobile-news-fab {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
        bottom: 70px;
        right: 15px;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0d9488 0%, #14b8a6 100%);
}

/* News Sidebar Styles */
.news-sidebar {
    width: 350px;
    min-width: 350px;
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
}

/* Desktop-only collapse behavior */
@media (min-width: 969px) {
    .news-sidebar.collapsed {
        width: 0;
        min-width: 0;
    }
}

.news-header {
    padding: 20px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.toggle-news {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-news:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.news-sidebar.collapsed .toggle-news svg {
    transform: rotate(180deg);
}

.news-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
}

.news-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top-color: #14b8a6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.news-error {
    padding: 20px;
    text-align: center;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 8px;
    margin: 10px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.25);
    border-color: rgba(20, 184, 166, 0.3);
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-image {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
}

.news-body {
    padding: 15px;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-summary {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    font-size: 0.75rem;
    color: #8898aa;
}

.news-source {
    font-weight: 600;
    color: #14b8a6;
}

.news-date {
    font-style: italic;
}

/* Scrollbar Styling for News Sidebar */
.news-content::-webkit-scrollbar {
    width: 6px;
}

.news-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.news-content::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 3px;
}

.news-content::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Mobile News Toggle FAB */
.mobile-news-fab {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4);
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.mobile-news-fab:active {
    transform: scale(0.95);
}

.mobile-news-fab.active {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
}

/* Responsive News Sidebar */
@media (max-width: 1200px) {
    .news-sidebar {
        width: 300px;
        min-width: 300px;
    }
}

@media (max-width: 968px) {
    .main-content {
        flex-direction: column;
    }
    
    .news-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        min-width: 100% !important;
        max-height: 70vh;
        border-top: 3px solid #14b8a6;
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
        z-index: 40;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .news-sidebar.expanded {
        transform: translateY(0);
    }
    
    .news-sidebar.collapsed {
        transform: translateY(calc(100% - 60px));
    }
    
    .mobile-news-fab {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .news-header {
        cursor: pointer;
        user-select: none;
    }
    
    .news-header h2 {
        font-size: 1rem;
    }
    
    .news-card {
        margin-bottom: 12px;
    }
    
    .news-image {
        height: 140px;
    }
}

/* Broker Portal Button Styles */
.broker-portal-section {
    margin: 15px 0 20px 0;
    padding: 0 15px;
}

.broker-portal-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    font-size: 1.05rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.broker-portal-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(20, 184, 166, 0.5);
}

.broker-portal-btn:active {
    transform: translateY(-1px) scale(0.99);
}

/* Carrier News Section */
.carrier-news-section {
    margin-top: 30px;
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
    border: 2px solid rgba(20, 184, 166, 0.15);
}

.carrier-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .carrier-news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-search-card {
        padding: 18px;
    }
    
    .news-search-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    
    .news-search-content h4 {
        font-size: 1rem;
    }
    
    .news-search-content p {
        font-size: 0.85rem;
    }
}

.news-search-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 2px solid rgba(20, 184, 166, 0.1);
}

.news-search-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(20, 184, 166, 0.25);
    border-color: rgba(20, 184, 166, 0.4);
}

.news-search-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.news-search-content {
    flex: 1;
}

.news-search-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
}

.news-search-content p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.news-search-arrow {
    font-size: 1.5rem;
    color: #14b8a6;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.news-search-card:hover .news-search-arrow {
    transform: translateX(8px);
}

.portal-icon {
    font-size: 1.3rem;
    margin-right: 12px;
}

.portal-text {
    flex: 1;
    text-align: left;
}

.portal-arrow {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.broker-portal-btn:hover .portal-arrow {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .broker-portal-btn {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
    
    .portal-icon {
        font-size: 1.1rem;
    }
}

/* LIS Modal/Overlay Styles */
.lis-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lis-overlay.active {
    display: flex;
}

.lis-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.lis-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lis-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

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

.close-lis:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lis-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.lis-intro {
    background: #f0fdfa;
    border-left: 4px solid #14b8a6;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.lis-intro p {
    margin: 0;
    color: #2c3e50;
    line-height: 1.6;
}

.lis-section {
    margin-bottom: 30px;
}

.lis-section h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.method-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.method-card:hover {
    background: white;
    border-color: #14b8a6;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
    transform: translateY(-2px);
}

.method-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.method-details {
    flex: 1;
}

.method-details h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.contact-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #14b8a6;
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.contact-number:hover {
    color: #0d9488;
}

.apply-link {
    display: inline-block;
    color: #14b8a6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.apply-link:hover {
    background: rgba(20, 184, 166, 0.2);
    transform: translateX(3px);
}

.contact-note {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 3px 0;
}

.contact-hours {
    font-size: 0.85rem;
    color: #495057;
    font-weight: 500;
}

.income-limits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.limit-card {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.limit-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.limit-amount {
    font-size: 1.8rem;
    font-weight: 700;
}

.limits-note {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 10px;
}

.lis-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lis-benefits li {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    color: #2c3e50;
    line-height: 1.6;
}

.lis-benefits li:last-child {
    border-bottom: none;
}

.lis-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
    text-align: center;
}

.lis-link-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
    transition: all 0.3s ease;
}

.lis-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

/* Responsive LIS Modal */
@media (max-width: 768px) {
    .lis-content {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .lis-header h2 {
        font-size: 1.2rem;
    }
    
    .lis-body {
        padding: 20px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .method-card {
        padding: 15px;
    }
    
    .contact-number {
        font-size: 1.1rem;
    }
    
    .limit-amount {
        font-size: 1.5rem;
    }
}

/* Creator Badge Footer */
.creator-badge {
    position: fixed;
    bottom: 10px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    transition: all 0.3s ease;
}

.creator-badge:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.creator-badge span {
    font-weight: 500;
}

.creator-badge a {
    color: #14b8a6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.creator-badge a:hover {
    color: #0d9488;
}

@media (max-width: 768px) {
    .creator-badge {
        bottom: 8px;
        right: 8px;
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}
