/* Disabled button style for modal actions */
#confirmScheduleBtn:disabled,
#testNotificationBtn:disabled {
    background: #e0e0e0 !important;
    color: #aaa !important;
    border: 1px solid #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    box-shadow: none !important;
}
#confirmScheduleBtn:disabled:hover,
#testNotificationBtn:disabled:hover {
    background: #e0e0e0 !important;
    color: #aaa !important;
    border: 1px solid #ccc !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}
.close-manage-topics {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 40;
    transition: color 0.2s;
}
.close-manage-topics:hover {
    color: #0078d4;
}
.hamburger-btn {
    position: absolute;
    left: 18px;
    bottom: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 20;
    padding: 0;
}
.hamburger-icon {
    display: inline-block;
    width: 32px;
    height: 28px;
    position: relative;
}
.hamburger-icon span {
    display: block;
    height: 4px;
    width: 100%;
    background: #0078d4;
    margin: 5px 0;
    border-radius: 2px;
}
.manage-topics-panel {
    position: absolute;
    left: 0;
    bottom: 56px;
    width: 90%;
    max-width: 340px;
    background: #fff;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 18px 16px 16px 16px;
    z-index: 30;
}
.manage-topics-panel h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1em;
    color: #0078d4;
}
.test-notification-btn {
    position: absolute;
    right: 24px;
    bottom: 16px;
    margin: 0;
    z-index: 10;
}

/* More Options button for managing topics */
.more-options-btn {
    position: absolute;
    left: 30px;
    bottom: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 11px; /* Increased from previous 9px to 11px for another 2px total width increase */
    border-radius: 4px;
    color: #666;
    font-size: 18px;
    z-index: 10;
}

.more-options-btn:hover {
    background: #f0f0f0;
    color: #0078d4;
}

.more-options-icon {
    display: inline-block;
    font-weight: bold;
    letter-spacing: 2px;
}
#scheduleModal .modal-actions {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: 1.5em;
}
/* Modal styles for scheduling topic */
.modal {
    display: none;
    position: absolute;
    z-index: 1000;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    background-color: rgba(255,255,255,0.18); /* ultra transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #d1d5db; /* subtle gray border for separation */
    box-sizing: border-box;
}

/* Add a modal-content class for the inner modal box */
.modal-content {
    margin: 10% auto;
    padding: 28px 32px 28px 32px;
    border-radius: 12px;
    width: 95%;
    max-width: 480px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    background: #fff;
}
.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: #0078d4;
}
.modal label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
}
.modal input, .modal select {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
}
.scheduled-topics-list {
    margin: 12px 0;
    font-size: 0.95em;
    color: #555;
}
.schedule-status {
    margin-top: 10px;
    color: #0078d4;
    font-weight: 600;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ...existing styles... */

#confirmScheduleBtn, #testNotificationBtn {
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
}

/* Center the Confirm Schedule button and add proper spacing */
#confirmScheduleBtn {
    display: block;
    margin: 20px auto 10px auto;
    text-align: center;
}

/* Add spacing for Test Notification button to prevent overlap */
#testNotificationBtn {
    display: block;
    margin: 15px auto 0 auto;
    text-align: center;
}

/* Mobile-specific spacing to prevent button overlap */
@media (max-width: 768px) {
    #confirmScheduleBtn {
        margin: 20px auto 15px auto;
    }
    
    #testNotificationBtn {
        margin: 20px auto 0 auto;
    }
}
/* Stopwatch Animation Styles */
.stopwatch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.stopwatch-frame {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
}

/* 2-Minute Tutor Logo Background */
.logo-background {
    position: absolute;
    top: 43%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    background-image: url('2minT_logo Final.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
    border-radius: 50%;
    animation: logoPulse 3s ease-in-out infinite;
}

/* Progress Ring Styles */
.progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    z-index: 2;
}

.progress-ring-background {
    opacity: 0.2;
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
    stroke-dasharray: 389.56; /* 2 * π * 62 */
    stroke-dashoffset: 389.56;
    animation: progress 10s linear forwards;
    stroke-linecap: round;
    stroke: #00bfff !important; /* Bright blue color */
    filter: drop-shadow(0 0 2px #00bfff) drop-shadow(0 0 4px #377aab) !important; /* Much tighter glow */
}

/* AI Assistant positioned above logo */
.ai-assistant {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 140px;
    animation: float 2s ease-in-out infinite;
    z-index: 3;
}

.message-container {
    min-height: 24px;
    text-align: center;
}

.loading-message {
    display: inline-block;
    margin: 0;
    min-width: 45ch;
    animation: typing 3.5s steps(45, end);
    white-space: nowrap;
    overflow: hidden;
    color: #ffffff;
    font-style: italic;
    font-weight: 300;
    font-family: 'Courier New', 'Consolas', 'Monaco', 'Lucida Console', monospace;
    letter-spacing: 0.5px;
}

@keyframes progress {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes logoPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.25;
    }
}

@keyframes aiGlow {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(55, 122, 171, 0.8),
            0 0 15px rgba(55, 122, 171, 0.6),
            0 0 25px rgba(55, 122, 171, 0.4),
            0 0 35px rgba(55, 122, 171, 0.3),
            0 0 50px rgba(55, 122, 171, 0.2);
    }
    50% {
        box-shadow: 
            0 0 8px rgba(55, 122, 171, 1),
            0 0 20px rgba(55, 122, 171, 0.8),
            0 0 35px rgba(55, 122, 171, 0.6),
            0 0 50px rgba(55, 122, 171, 0.4),
            0 0 70px rgba(55, 122, 171, 0.3);
    }
}

/* Search Container Styles */
.search-container {
    margin: 15px auto;
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.topic-search {
    width: 100%;
    max-width: 350px;
    padding: 8px 12px;
    border: 2px solid #377aab;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
    background: #6294bc;
    color: #484848;
    text-align: center;
}

/* Style the placeholder text */
.topic-search::placeholder,
#topicSearch::placeholder {
    font-style: italic;
    font-weight: 50 !important;
    color: rgba(63, 63, 63, 0.8) !important;
}

/* For better browser compatibility */
.topic-search::-webkit-input-placeholder,
#topicSearch::-webkit-input-placeholder {
    font-style: italic;
    font-weight: 50 !important;
    color: rgba(63, 63, 63, 0.8) !important;
}

.topic-search::-moz-placeholder,
#topicSearch::-moz-placeholder {
    font-style: italic;
    font-weight: 50 !important;
    color: rgba(169, 169, 169, 0.8) !important;
    opacity: 1;
}

/* Style the text input when user types */
.topic-search:focus {
    color: #2b2b2b;
    background: white;
}

.topic-search:focus {
    border-color: #1f689b;
    box-shadow: 0 0 0 2px rgba(31, 104, 155, 0.2);
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;  /* Increased to accommodate single line text */
    margin: 0 auto;
    isolation: isolate;
    z-index: 1000;
}

.search-wrapper p {
    font-size: 0.85rem;  /* Reduced font size */
    white-space: nowrap;  /* Keep text in single line */
    overflow: hidden;
    text-overflow: ellipsis;  /* Show ellipsis if text overflows */
    margin: 8px 0;  /* Adjusted margin */
}

/* Ensure topic container stays below search suggestions */
.topic-selection-container {
    position: relative;
    z-index: 1;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    width: 95%;  /* Increased from 90% */
    max-width: 400px;  /* Increased from 330px */
    background-color: #ffffff;
    border: 1px solid #1f689b;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 300px;
    overflow-y: auto;
    z-index: 99999;
    display: none;
}

.search-suggestion-item {
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #eee;
    background-color: #ffffff;
    font-size: 13px;
    color: #1f689b !important;
}

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

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

.search-suggestion-item .suggestion-icon {
    min-width: 20px;  /* Reduced from 24px */
    font-size: 14px;  /* Added to make icons slightly smaller */
}

.search-suggestion-item .suggestion-name {
    flex-grow: 1;
    color: #1f689b !important;
    font-weight: 500;
}

.suggestion-category {
    font-size: 11px;
    color: #1f689b !important;
    margin-left: auto;
    padding-left: 8px;
    opacity: 0.8;
}

/* Force background and text colors for suggestion items */
.search-suggestion-item,
.search-suggestion-item *,
.search-suggestions * {
    background-color: #ffffff;
    color: #1f689b !important;
}

/* Ensure hover state is visible */
.search-suggestion-item:hover {
    background-color: #f0f5f9 !important;
}

/* Ensure search container is above other elements */
.search-container {
    position: relative;
    z-index: 9999;
}

/* Topic icon styles */
.topic-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Accessibility - Hide content visually but keep it available for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #323130;
    background: linear-gradient(180deg, #015088 0%, #5799c9 40%, #2d6c9b 100%); /* New gradient with custom colors */
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* General heading styles for visibility */
h2 {
    color: #f3a326;
    font-weight: 600;
}

.article-title {
    font-size: 1.5em;
    color: #0078d4;
    margin-bottom: 20px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h3 {
    font-size: 1.1em;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.reading-time {
    font-size: 0.8em;
    color: #f3a326;
    margin-left: auto;
    font-weight: normal;
}

.content-metadata {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    color: #f3a326;
    font-size: 0.9em;
}

.content-metadata i {
    margin-right: 5px;
}

.publish-date, .reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(243, 163, 38, 0.1);
    border-radius: 4px;
}

.topic-focus i, .related-tech i {
    color: #f3a326;
}

.formatted-content, .enhanced-content {
    font-size: 0.85rem;  /* Standardized font size */
    line-height: 1.7;
    color: #f0f0f0;
}

.formatted-content p, .enhanced-content p {
    font-size: 0.85rem;  /* Ensure paragraphs maintain the same size */
    line-height: 1.7;
    color: #f0f0f0;
}

.formatted-list, .key-points-list, .highlights-list {
    list-style: none;
    padding: 0;
    font-size: 0.85rem;  /* Standardized font size */
}

.formatted-list li, .key-points-list li, .highlights-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #f0f0f0;
}

.formatted-list li:before, .key-points-list li:before, .highlights-list li:before {
    position: absolute;
    left: 0;
    color: #f3a326;
}

.key-points-list li:before {
    content: '•';
    font-size: 1.2em;
}

.highlights-list li:before {
    content: '★';
    font-size: 1em;
}

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

.content-body .summary-section h4 {
    font-size: 1.0rem !important;
    font-weight: 600 !important;
    margin: 15px 0 10px 0 !important;
    padding-bottom: 5px !important;
}

.summary-section p {
    line-height: 1.7;
    font-size: 0.90rem !important;
}

.key-points-section, .key-highlights-section {
    border-left: 3px solid #f3a326;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;  /* Keep this below the news container */
}

.key-points-section h4, .key-highlights-section h4 {
    font-size: 1.0rem !important;
    font-weight: 600;
    margin: 15px 0 10px 0;
    padding-bottom: 5px;
}

.key-points-section ul li, .key-highlights-section ul li {
    font-size: 0.90rem !important;
    line-height: 1.6;
}

.takeaway-section h4 {
    font-size: 1.0rem !important;
    font-weight: 600;
    margin: 15px 0 10px 0;
    padding-bottom: 5px;
}

.takeaway-section p, .takeaway-section ul li {
    font-size: 0.90rem !important;
    line-height: 1.6;
}

.formatted-list li:before {
    content: '•';
    color: #f3a326;
    font-size: 1.2em;
    position: absolute;
    left: 8px;
}

.content-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-section {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Remove focus outline from content section */
.content-section:focus {
    outline: none !important;
    border: none !important;
}

/* Content section specific styles */
#contentTitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #106ebe;
}

/* Meta information styles */
#contentSection div div:first-child,
#contentTech,
#contentDate,
.content-meta {
    font-size: 0.80em;
    color: #B5B5B5;
}

.content-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(243, 163, 38, 0.2);
    border: 1px solid #f3a326;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(243, 163, 38, 0.3);
}

/* Paragraph text visibility */
p {
    color: #ffffff !important;
    line-height: 1.6;
}

/* Ensure text is visible in various contexts */
.hero-content p,
.selection-card p,
.features p,
.latest-news p,
.news-item p,
.content-display p,
div p,
section p {
    color: #ffffff !important;
}

/* Also ensure spans and other text elements are visible - but not in topic selection */
span:not(.subtopic-item span):not(.category-title span):not(.selected-topic-display span), 
div:not(.subtopic-item):not(.category-title), 
li:not(.subtopic-item li) {
    color: #ffffff;
}

/* Animated Background Elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle 150px at 15% 15%, rgba(243, 163, 38, 0.08) 0%, transparent 65%),
        radial-gradient(circle 120px at 85% 20%, rgba(243, 163, 38, 0.06) 0%, transparent 70%),
        radial-gradient(circle 100px at 30% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 60%),
        radial-gradient(circle 80px at 70% 80%, rgba(243, 163, 38, 0.05) 0%, transparent 65%),
        radial-gradient(circle 60px at 50% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    animation: backgroundFloat 25s ease-in-out infinite;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(26, 74, 138, 0.08) 42%, rgba(15, 52, 97, 0.12) 50%, rgba(26, 74, 138, 0.08) 58%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(35, 91, 163, 0.10) 42%, rgba(26, 74, 138, 0.14) 50%, rgba(35, 91, 163, 0.10) 58%, transparent 60%),
        linear-gradient(135deg, transparent 35%, rgba(15, 52, 97, 0.06) 45%, transparent 55%);
    animation: backgroundMove 30s linear infinite;
    z-index: -1;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(-30px) translateX(15px) rotate(90deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-10px) translateX(-20px) rotate(180deg);
        opacity: 0.9;
    }
    75% {
        transform: translateY(20px) translateX(10px) rotate(270deg);
        opacity: 0.8;
    }
}

@keyframes backgroundMove {
    0% {
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateX(25px) translateY(-15px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-15px) translateY(30px) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translateX(20px) translateY(10px) rotate(270deg);
        opacity: 0.9;
    }
    100% {
        transform: translateX(0px) translateY(0px) rotate(360deg);
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    padding: 2rem 0;
    text-align: center;
    color: white;
}

.logo-section .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -5px;
    text-align: center;
    width: 100%;
}

.logo i {
    font-size: 2.5rem;
    color: #ffd700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    box-sizing: border-box;
}

.logo-image {
    width: 75px;
    height: 75px;
    margin-right: 15px;
    object-fit: contain;
    vertical-align: middle;
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    color: white !important;
}

.tagline {
    font-size: 0.95rem;
    font-weight: 500;
    font-style: italic;
    opacity: 0.9;
    max-width: 600px;
    margin: -5px auto 0 auto;
    color: #bde2ff !important;
    text-align: center;
    display: block;
    width: 100%;
    transform: translateX(30px);
}

/* Hero Section */
.hero {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0.3rem 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-content h2 {
    font-size: 1.3rem;
    color: white !important;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-content p {
    font-size: 0.9rem;
    color: #bde2ff !important;
    max-width: 100%;
    margin: 0 auto 0.3rem auto;
    line-height: 1.4;
}

.hero-content .sub-text {
    font-size: 0.75rem;
    color: #605e5c;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 0;
}

.hero-content .coming-soon {
    font-size: 0.85rem;
    color: #00c0ff !important;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

/* Info Symbol Tooltip */
.info-symbol {
    cursor: pointer;
    position: relative;
    margin-left: 3px;
}

.info-symbol:hover {
    opacity: 0.8;
}

.info-symbol::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 220, 220, 0.4);
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    width: 520px;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    margin-top: 8px;
    backdrop-filter: blur(8px);
}

.info-symbol::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: rgba(220, 220, 220, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99998;
    margin-top: 3px;
}

.info-symbol:hover::after,
.info-symbol:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Info Icon and Tooltip */
.info-icon {
    color: #0078d4;
    cursor: pointer;
    margin-left: 5px;
    position: relative;
    font-size: 0.8rem;
}

.info-icon:hover {
    color: #106ebe;
}

.info-icon[data-tooltip]:hover::after {
    content: "more info.: " attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 220, 220, 0.4);
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-style: italic;
    text-transform: lowercase;
    opacity: 1;
    visibility: visible;
    z-index: 99999;
    max-width: 280px;
    min-width: 200px;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    margin-top: 8px;
    backdrop-filter: blur(8px);
}

.info-icon[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: rgba(220, 220, 220, 0.4);
    opacity: 1;
    visibility: visible;
    z-index: 99998;
    margin-top: 3px;
}

/* Latest News Section */
.latest-news {
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}
    /* Auth Overlay Styles */
    .auth-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }
    .auth-form {
        background: #fff;
        padding: 32px 24px;
        border-radius: 8px;
        box-shadow: 0 2px 16px rgba(0,0,0,0.18);
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 280px;
    }
    .auth-form h3 {
        margin-bottom: 16px;
        font-size: 1.2rem;
    }
    .auth-form input {
        margin-bottom: 12px;
        padding: 8px 12px;
        width: 100%;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 4px;
    }
    .auth-form button {
        padding: 8px 20px;
        font-size: 1rem;
        background: #0078d4;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }
    .auth-form button:hover {
        background: #005fa3;
    }

.news-container {
    /* Container for news section content */
    position: relative;
    z-index: 2;  /* Ensure it's above the background elements */
}

.news-header {
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 0;
}

.news-header h3 {
    color: white !important;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.news-header h3 i {
    color: #0078d4;
    font-size: 1.6rem;
}

.news-header p {
    color: #605e5c;
    font-size: 1rem;
    margin: 0;
}

.news-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.news-loading {
    text-align: center;
    padding: 1.5rem;
    color: #0078d4;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.news-loading i {
    font-size: 1rem;
}

.news-error {
    text-align: center;
    padding: 1.5rem;
    color: #d83b01;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.news-items {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 200px;
    padding: 0 45px; /* Space for navigation arrows */
}

.news-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    gap: 1rem;
}

.news-item {
    flex: 0 0 calc(33.333% - 0.67rem); /* Show 3 items at once */
    background: transparent;
    border-radius: 10px;
    padding: 1rem;
    border-left: 3px solid #0078d4;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    opacity: 0.85;
    transform: scale(0.95);
}

/* Middle (focused) item styling */
.news-item.focused {
    opacity: 1;
    transform: scale(1);
    background: transparent;
    border-left: 3px solid #015088;
    box-shadow: 0 3px 12px rgba(1, 80, 136, 0.25);
}

.news-item:hover {
    background: rgba(1, 80, 136, 0.15);
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 80, 136, 0.2);
}

.news-item.focused:hover {
    background: rgba(1, 80, 136, 0.2);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 80, 136, 0.4);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 120, 212, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.carousel-nav:hover {
    background: rgba(0, 120, 212, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-nav.prev {
    left: 5px;
}

.carousel-nav.next {
    right: 5px;
}

.carousel-nav:disabled {
    background: rgba(128, 128, 128, 0.5);
    cursor: not-allowed;
    transform: translateY(-50%);
    box-shadow: none;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(1, 80, 136, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #015088;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(1, 80, 136, 0.6);
}

.news-item-source {
    font-size: 0.75rem;
    color: #0078d4;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-item-source i {
    font-size: 0.7rem;
}

.news-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-date {
    font-size: 0.8rem;
    color: #444444;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-item-date i {
    font-size: 0.75rem;
}

/* News title and date styling - actual classes used by JavaScript */
.news-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff !important;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a {
    color: #ffffff !important;
    text-decoration: none;
}

.news-title a:hover {
    color: #f3a326 !important;
}

.news-date {
    font-size: 0.8rem;
    color: #B5B5B5 !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* News item content styling for generated carousel items */
.news-meta {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-tech-badge {
    background: transparent;
    color: #B5B5B5 !important;
    border: 2px solid #B5B5B5;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-date {
    font-size: 0.75rem;
    color: #B5B5B5;
    font-weight: 500;
}

.news-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.8rem 0;
    line-height: 1.3;
}

.news-title a {
    color: #323130;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a:hover {
    color: #0078d4;
    text-decoration: underline;
}

.news-description {
    font-size: 0.85rem;
    color: #cdcdd1 !important;
    line-height: 1.4;
    margin: 0;
    flex: 1; /* This makes the description expand to fill remaining space */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .news-items {
        height: 200px;
        padding: 0 35px; /* Adjust padding for smaller arrows */
    }
    
    .news-item {
        flex: 0 0 100%; /* Show 1 item on mobile */
        opacity: 1 !important;
        transform: scale(1) !important;
    }
    
    .news-item.focused {
        opacity: 1;
        transform: scale(1);
    }
    
    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }
    
    .news-item {
        padding: 0.8rem;
        margin-right: 0.5rem;
    }
    
    .news-content {
        padding: 0.8rem;
    }
    
    .news-header h3 {
        font-size: 1.3rem;
    }
}

/* Technology Selection */
.tech-selection {
    margin: 3rem 0;
}

.selection-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    isolation: isolate;
    z-index: 0;  /* Base level stacking context */
}

.selection-card > :not(.search-container):not(.search-wrapper) {
    position: relative;
    z-index: 1;
}

.selection-card h3 {
    font-size: 1.2rem;
    color: white !important;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.selection-card h3 i {
    color: white !important;
}

.selection-card > p {
    font-size: 0.85rem;
    color: #bde2ff !important;
    margin-bottom: 1rem;
}

.dropdown-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.tech-dropdown {
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #0078d4;
    border-radius: 10px;
    background: white;
    color: #323130;
    min-width: 250px;
    outline: none;
    transition: all 0.3s ease;
}

.tech-dropdown:focus {
    border-color: #106ebe;
    box-shadow: 0 0 0 3px rgba(16, 110, 190, 0.1);
}

/* Topic Selection Styles */
.topic-selection-container {
    margin: 0.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    overflow: visible;
    position: relative;
}

.topic-selection-container::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 5%;
    width: 320px;
    height: 320px;
    background-image: url('2minT_logo Final.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.10;
    z-index: 0;
    pointer-events: none;
}

.topic-category {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    overflow: visible;
    position: relative;
    z-index: 1;
}

.category-title {
    font-size: 0.9rem;
    color: white !important;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    padding-bottom: 6px;
    border-bottom: 1px solid #e1dfdd;
    text-align: center;
    justify-content: center;
}

.category-icon {
    font-size: 0.9rem;
}

.subtopics-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    overflow: visible;
}

.subtopic-item {
    background: white;
    border: 1px solid #e1dfdd;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    position: relative;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.2;
    color: #323130 !important; /* Ensure dark text on white background */
}

.subtopic-item:hover {
    border-color: #0078d4;
    background: #e8f4fd;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.15);
}

.subtopic-item.selected {
    background: linear-gradient(135deg, #0078d4, #106ebe);
    color: white !important;
    border-color: #005a9e;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

.subtopic-item.selected:hover {
    background: linear-gradient(135deg, #106ebe, #005a9e);
}

.subtopic-item.disabled {
    background: #f8f8f8;
    border-color: #d1d1d1;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    position: relative; /* Add this to enable tooltips */
}

.subtopic-item.disabled:hover {
    background: #f8f8f8;
    border-color: #d1d1d1;
    transform: none;
    box-shadow: none;
}

/* Tooltip styles for disabled buttons */
.subtopic-item.disabled::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    background: rgba(220, 220, 220, 0.4);
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    max-width: 200px;
    min-width: 150px;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    margin-left: 12px;
    backdrop-filter: blur(8px);
}

.subtopic-item.disabled::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(220, 220, 220, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99998;
    margin-left: 7px;
}

.subtopic-item.disabled:hover::after,
.subtopic-item.disabled:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Specific tooltip styles for certain sub-topics - show on top */
.subtopic-item[data-topic="dynamics-crm"]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 220, 220, 0.4);
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    max-width: 200px;
    min-width: 150px;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.subtopic-item[data-topic="dynamics-crm"]::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: rgba(220, 220, 220, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99998;
}

.subtopic-item[data-topic="dynamics-crm"]:hover::after,
.subtopic-item[data-topic="dynamics-crm"]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Specific tooltip styles for certain sub-topics - show at bottom */
.subtopic-item[data-topic="m365apps-office"]::after,
.subtopic-item[data-topic="viva-platform"]::after,
.subtopic-item[data-topic="windows-os"]::after,
.subtopic-item[data-topic="dynamics-erp"]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 220, 220, 0.4);
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    max-width: 200px;
    min-width: 150px;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    margin-top: 8px;
    backdrop-filter: blur(8px);
}

.subtopic-item[data-topic="m365apps-office"]::before,
.subtopic-item[data-topic="viva-platform"]::before,
.subtopic-item[data-topic="windows-os"]::before,
.subtopic-item[data-topic="dynamics-erp"]::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: rgba(220, 220, 220, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99998;
    margin-top: 3px;
}

.subtopic-item[data-topic="m365apps-office"]:hover::after,
.subtopic-item[data-topic="m365apps-office"]:hover::before,
.subtopic-item[data-topic="viva-platform"]:hover::after,
.subtopic-item[data-topic="viva-platform"]:hover::before,
.subtopic-item[data-topic="windows-os"]:hover::after,
.subtopic-item[data-topic="windows-os"]:hover::before,
.subtopic-item[data-topic="dynamics-erp"]:hover::after,
.subtopic-item[data-topic="dynamics-erp"]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Right-positioned tooltip for others-misc */
.subtopic-item[data-topic="others-misc"]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    background: rgba(220, 220, 220, 0.4);
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    max-width: 200px;
    min-width: 150px;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    margin-left: 8px;
}

.subtopic-item[data-topic="others-misc"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(220, 220, 220, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99998;
    margin-left: 3px;
}

.subtopic-item[data-topic="others-misc"]:hover::after,
.subtopic-item[data-topic="others-misc"]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Specific tooltip styles for Microsoft 365 and Azure sub-topics - show on left */
.subtopic-item[data-topic="m365-communication"]::after,
.subtopic-item[data-topic="m365-copilot"]::after,
.subtopic-item[data-topic="m365-content"]::after,
.subtopic-item[data-topic="m365-productivity"]::after,
.subtopic-item[data-topic="m365-data"]::after,
.subtopic-item[data-topic="m365-security"]::after,
.subtopic-item[data-topic="m365-cloud"]::after,
.subtopic-item[data-topic="azure-analytics"]::after,
.subtopic-item[data-topic="azure-compute"]::after,
.subtopic-item[data-topic="azure-networking"]::after,
.subtopic-item[data-topic="azure-identity"]::after,
.subtopic-item[data-topic="azure-integration"]::after,
.subtopic-item[data-topic="azure-paas"]::after,
.subtopic-item[data-topic="azure-specialized"]::after {
    content: attr(data-tooltip);
    position: absolute !important;
    top: 50% !important;
    right: 100% !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    background: rgba(220, 220, 220, 0.4);
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    max-width: 200px;
    min-width: 150px;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    margin-right: 12px !important;
    margin-left: 0 !important;
    backdrop-filter: blur(8px);
}

/* No right-positioned tooltip arrows currently */

/* Arrow for left-positioned tooltips */
.subtopic-item[data-topic="m365-communication"]::before,
.subtopic-item[data-topic="m365-copilot"]::before,
.subtopic-item[data-topic="m365-content"]::before,
.subtopic-item[data-topic="m365-productivity"]::before,
.subtopic-item[data-topic="m365-data"]::before,
.subtopic-item[data-topic="m365-security"]::before,
.subtopic-item[data-topic="m365-cloud"]::before,
.subtopic-item[data-topic="azure-analytics"]::before,
.subtopic-item[data-topic="azure-compute"]::before,
.subtopic-item[data-topic="azure-networking"]::before,
.subtopic-item[data-topic="azure-identity"]::before,
.subtopic-item[data-topic="azure-integration"]::before,
.subtopic-item[data-topic="azure-paas"]::before,
.subtopic-item[data-topic="azure-specialized"]::before {
    content: '';
    position: absolute !important;
    top: 50% !important;
    right: 100% !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    border: 5px solid transparent;
    border-left-color: rgba(220, 220, 220, 0.4) !important;
    border-right-color: transparent !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99998;
    margin-right: 7px !important;
    margin-left: 0 !important;
}

.subtopic-item[data-topic="azure-compute"]:hover::after,
.subtopic-item[data-topic="azure-compute"]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Hover states for left-positioned tooltips */
.subtopic-item[data-topic="m365-communication"]:hover::after,
.subtopic-item[data-topic="m365-communication"]:hover::before,
.subtopic-item[data-topic="m365-copilot"]:hover::after,
.subtopic-item[data-topic="m365-copilot"]:hover::before,
.subtopic-item[data-topic="m365-content"]:hover::after,
.subtopic-item[data-topic="m365-content"]:hover::before,
.subtopic-item[data-topic="m365-productivity"]:hover::after,
.subtopic-item[data-topic="m365-productivity"]:hover::before,
.subtopic-item[data-topic="m365-data"]:hover::after,
.subtopic-item[data-topic="m365-data"]:hover::before,
.subtopic-item[data-topic="m365-security"]:hover::after,
.subtopic-item[data-topic="m365-security"]:hover::before,
.subtopic-item[data-topic="m365-cloud"]:hover::after,
.subtopic-item[data-topic="m365-cloud"]:hover::before,
.subtopic-item[data-topic="azure-analytics"]:hover::after,
.subtopic-item[data-topic="azure-analytics"]:hover::before,
.subtopic-item[data-topic="azure-compute"]:hover::after,
.subtopic-item[data-topic="azure-compute"]:hover::before,
.subtopic-item[data-topic="azure-networking"]:hover::after,
.subtopic-item[data-topic="azure-networking"]:hover::before,
.subtopic-item[data-topic="azure-identity"]:hover::after,
.subtopic-item[data-topic="azure-identity"]:hover::before,
.subtopic-item[data-topic="azure-integration"]:hover::after,
.subtopic-item[data-topic="azure-integration"]:hover::before,
.subtopic-item[data-topic="azure-paas"]:hover::after,
.subtopic-item[data-topic="azure-paas"]:hover::before,
.subtopic-item[data-topic="azure-specialized"]:hover::after,
.subtopic-item[data-topic="azure-specialized"]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Tooltip Styles */
.subtopic-item::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    background: rgba(220, 220, 220, 0.4);
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    max-width: 200px;
    min-width: 150px;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    margin-left: 12px;
    backdrop-filter: blur(8px);
}

.subtopic-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(220, 220, 220, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99998;
    margin-left: 7px;
}

.subtopic-item:hover::after,
.subtopic-item:hover::before {
    opacity: 1;
    visibility: visible;
}

.subtopic-item {
    background: white;
    border: 1px solid #e1dfdd;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    position: relative;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.2;
    z-index: 1;
}

.subtopic-item:hover::after,
.subtopic-item:hover::before {
    opacity: 1;
    visibility: visible;
}

.action-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1dfdd;
}

.selected-topic-display {
    background: #f3f2f1;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    color: #323130 !important; /* Ensure dark text */
    min-height: 10px;
    min-width: 120px;
    text-align: center;
    border: 1px solid #e1dfdd;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.selected-topic-display.has-selection {
    background: linear-gradient(135deg, #e8f4fd, #f0f8ff);
    border-color: #0078d4;
    color: #106ebe !important; /* Ensure blue text is visible */
}

.generate-btn {
    padding: 10px 22px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #0078d4, #106ebe);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    position: relative;
}

.generate-btn:hover {
    background: linear-gradient(135deg, #106ebe, #005a9e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 110, 190, 0.3);
}

.generate-btn:focus,
.generate-btn:active {
    outline: none !important;
    border: none !important;
    box-shadow: 0 0 0 2px rgba(16, 110, 190, 0.3) !important;
}

.generate-btn:disabled {
    background: #c8c6c4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.buttons-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.curious-btn {
    padding: 10px 22px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #015088, #2d6c9b);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    position: relative;
}

.curious-btn:hover {
    background: linear-gradient(135deg, #2d6c9b, #5799c9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 108, 155, 0.3);
}

/* Custom tooltips for action container buttons */
.curious-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    background: rgba(220, 220, 220, 0.4);
    color: #4a4a4a;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-style: italic;
    font-weight: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    white-space: nowrap;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    margin-left: 8px;
    backdrop-filter: blur(8px);
}

.curious-btn::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: rgba(220, 220, 220, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99998;
    margin-top: 3px;
}

.curious-btn:hover::after,
.curious-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 3rem 0;
}

/* Remove focus outline from loading section */
.loading-section:focus {
    outline: none !important;
    border: none !important;
}

.loading-spinner {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 3rem;
    display: inline-block;
    min-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.loading-spinner .ai-assistant {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 90px;
    animation: float 2s ease-in-out infinite;
    z-index: 2;
}

.assistant-head {
    width: 30px;
    height: 30px;
    background: #2f5f7f;
    border: 1px solid rgba(221, 226, 231, 0.8);
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
}

.assistant-eyes {
    position: absolute;
    top: 10px;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.assistant-eyes::before,
.assistant-eyes::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: blink 3s infinite;
}

.assistant-antenna {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 10px;
    background: #2f5f7f;
    border-radius: 2px;
}

.assistant-body {
    width: 45px;
    height: 30px;
    background: #2f5f7f;
    border: 1px solid rgba(221, 226, 231, 0.8);
    border-radius: 8px;
    position: relative;
    overflow: visible;
    margin: 3px auto 0;
}

.scanning-light {
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    animation: scan 2s linear infinite;
}

.magic-book {
    position: absolute;
    width: 35px;
    height: 22px;
    left: 5px;
    top: 4px;
}

/* Simple Open Book Design */
.open-book {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Book Spine */
.book-spine {
    position: absolute;
    width: 2px;
    height: 100%;
    background: #2c5282;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* Left Page */
.page-left {
    position: absolute;
    width: 48%;
    height: 90%;
    left: 1%;
    top: 5%;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 2px 0 0 2px;
    transform-origin: right center;
    animation: pageFlutterLeft 3s ease-in-out infinite;
    z-index: 2;
}

/* Right Page */
.page-right {
    position: absolute;
    width: 48%;
    height: 90%;
    right: 1%;
    top: 5%;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 0 2px 2px 0;
    transform-origin: left center;
    animation: pageFlutterRight 3s ease-in-out infinite;
    z-index: 2;
}

/* Animated Turning Page */
.page-turning {
    position: absolute;
    width: 48%;
    height: 90%;
    right: 1%;
    top: 5%;
    background: #ffffff;
    border: 2px solid #7bb3f0;
    border-radius: 0 2px 2px 0;
    transform-origin: left center;
    animation: pageTurn 2.5s ease-in-out infinite;
    z-index: 4;
    box-shadow: 0 4px 12px rgba(123, 179, 240, 0.25);
}

/* Page Lines */
.page-left::before,
.page-right::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    right: 10%;
    height: 60%;
    background: repeating-linear-gradient(
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.1) 3px,
        rgba(0, 0, 0, 0.1) 4px
    );
}

@keyframes pageFlutterLeft {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(-15deg);
    }
}

@keyframes pageFlutterRight {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(15deg);
    }
}

@keyframes pageTurn {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
        z-index: 4;
        box-shadow: 0 4px 12px rgba(123, 179, 240, 0.25);
    }
    25% {
        transform: rotateY(-45deg);
        opacity: 1;
        z-index: 4;
        box-shadow: 2px 6px 16px rgba(123, 179, 240, 0.3);
    }
    50% {
        transform: rotateY(-90deg);
        opacity: 0.9;
        z-index: 4;
        box-shadow: 4px 8px 20px rgba(123, 179, 240, 0.35);
    }
    75% {
        transform: rotateY(-135deg);
        opacity: 0.8;
        z-index: 1;
        box-shadow: 2px 6px 16px rgba(123, 179, 240, 0.25);
    }
    100% {
        transform: rotateY(-180deg);
        opacity: 0.7;
        z-index: 1;
        box-shadow: 0 2px 8px rgba(123, 179, 240, 0.15);
    }
}

.page-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 0px,
        rgba(27, 61, 84, 0.15) 2px,
        transparent 3px,
        rgba(27, 61, 84, 0.15) 14px,
        transparent 15px);
    background-size: 100% 16px;
}

.page-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    animation: glowPulse 2s infinite;
    border-left: 1px solid rgba(27, 61, 84, 0.2);
}

.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkles::before,
.sparkles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: sparkle 2s infinite;
}

.sparkles::before {
    top: 20%;
    left: 60%;
    animation-delay: 0.3s;
}

.sparkles::after {
    top: 60%;
    left: 80%;
    animation-delay: 0.7s;
}

@keyframes turnPage {
    0% {
        transform: rotateY(0deg) skewY(0deg);
        filter: brightness(1);
        z-index: 5;
    }
    25% {
        transform: rotateY(-45deg) skewY(3deg);
        filter: brightness(0.95);
        z-index: 5;
    }
    50% {
        transform: rotateY(-90deg) skewY(2deg);
        filter: brightness(0.8);
        z-index: 5;
        box-shadow: -3px 0 8px rgba(0, 0, 0, 0.2);
    }
    75% {
        transform: rotateY(-135deg) skewY(-2deg);
        filter: brightness(0.7);
        z-index: 2;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: rotateY(-180deg) skewY(0deg);
        filter: brightness(0.6);
        z-index: 2;
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 0.8;
    }
}

@keyframes floatBook {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-2px) rotate(1deg);
    }
}

.loading-spinner p {
    font-size: 1.0rem;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

@keyframes process {
    0% { transform: translateX(0); }
    50% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

/* Content Section */
.content-section {
    margin: 3rem 0;
}

.content-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    position: relative;
    overflow: visible;
    color: #323130 !important; /* Override global white text with dark text */
    font-size: 0.9em; /* Added smaller font size */
}

/* Ensure all text within content card is dark */
.content-card p,
.content-card span,
.content-card div,
.content-card li,
.content-card strong,
.content-card b,
.content-card em,
.content-card i {
    color: #323130 !important;
    font-size: 0.97em; /* Added smaller font size */
}

/* Exception: Keep tech-badge with white text */
.content-card .tech-badge {
    color: white !important;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background-image: url('2minT_logo Final.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.10;
    z-index: 0;
    pointer-events: none;
}

.content-card > * {
    position: relative;
    z-index: 1;
}

.content-header {
    position: relative;
    margin-bottom: 0.1rem;
    padding-right: 100px;  /* Make space for read-time */
}

.content-header h3 {
    font-size: 1.8rem;
    color: #106ebe;
    font-weight: 600;
    margin-right: 20px;  /* Space between title and read-time */
    flex: 1;  /* Allow title to use available space */
    word-wrap: break-word;  /* Enable word wrapping */
}

.read-time {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #e8f4fd;
    padding: 5px 10px;
    border-radius: 20px;
    color: #0078d4;
    font-weight: 500;
    font-size: 0.8rem;
    position: absolute;
    top: 0;
    right: 0;
    white-space: nowrap;  /* Keep "2 min read" on one line */
}

.content-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tech-badge {
    background: linear-gradient(135deg, #0078d4, #106ebe);
    color: white !important; /* Ensure white text color */
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    /* Additional specificity for white text */
    text-shadow: none !important;
}

.date-badge {
    background: #f3f2f1;
    color: #605e5c;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.content-body {
    position: relative;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #323130 !important; /* Ensure dark text for readability */
    margin-bottom: 2rem;
    z-index: 1;
}

/* Ensure all content body text elements are dark */
.content-body p,
.content-body span,
.content-body div,
.content-body li,
.content-body strong,
.content-body b,
.content-body em,
.content-body i {
    color: #323130 !important;
}

.content-body h4 {
    color: #106ebe;
    margin: 0.2rem 0 1px 0;
    font-size: 1.3rem;
}

.content-body ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-body li {
    margin: 0.5rem 0;
}

/* Content section boxes (Topic Focus, Related Technologies) */
.content-body div[style*="border-left"],
.content-body .topic-section,
.content-body .focus-section {
    border-left: 1px solid #ccc !important;
    padding: 2px 8px !important;
    margin: 0.5rem 0;
    font-size: 0.85rem;
    background: rgba(0, 120, 212, 0.05);
    border-radius: 0 4px 4px 0;
}

.content-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn.primary {
    background: #f3f2f1;
    color: #0078d4;
    border: 2px solid #e1dfdd;
    font-size: 1.1em;
    font-weight: bold;
    /* Removed margin and display block to align with other buttons in flexbox */
}

.action-btn.primary:hover {
    background: #0078d4;
    color: white;
    border: 2px solid #0078d4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 110, 190, 0.3);
}

.action-btn.primary:focus,
.action-btn.primary:active {
    outline: none !important;
    border: 2px solid #e1dfdd !important;
    background: #f3f2f1 !important;
    color: #0078d4 !important;
    box-shadow: none !important;
}

/* References button sizing now handled by JavaScript for consistency */

.action-btn.secondary {
    background: #f3f2f1;
    color: #323130;
    border: 2px solid #e1dfdd;
}

.action-btn.secondary:hover {
    background: #edebe9;
    border-color: #c8c6c4;
    transform: translateY(-2px);
}

/* Golden border for Next Insight button - matching page title color */
#generateNew {
    background: #f3f2f1;
    color: #015088;
    border: 2px solid #2d6c9b;
    padding: 6px 14px;
    height: 36px;
}

#generateNew:hover {
    background: #2d6c9b;
    color: white;
    border: 2px solid #2d6c9b;
    transform: translateY(-2px);
}

/* Position "Add to My Tutor Topics" button at the far right */
#addToList {
    margin-left: auto;
}

/* Custom tooltips for action buttons to match curious button */
#generateNew::after,
#scheduleContent::after,
#addToList::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 220, 220, 0.4);
    color: #555555;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-style: italic;
    font-weight: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    white-space: nowrap;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    margin-top: 8px;
    backdrop-filter: blur(8px);
    max-width: none;
    overflow: visible;
}

#generateNew::before,
#scheduleContent::before,
#addToList::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: rgba(220, 220, 220, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99998;
    margin-top: 3px;
}

#generateNew:hover::after,
#generateNew:hover::before,
#scheduleContent:hover::after,
#scheduleContent:hover::before,
#addToList:hover::after,
#addToList:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Make sure these buttons have relative positioning for tooltips */
#generateNew,
#scheduleContent,
#addToList {
    position: relative;
}

/* Features Section */
.features {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    margin: 1.5rem 0 1rem 0;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.features h3 {
    text-align: center !important;
    font-size: 1.1rem;
    color: white !important;
    margin-bottom: 1rem;
    width: 100%;
    display: block;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}

.feature-card {
    text-align: center;
    padding: 0.8rem 0.4rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.002);
    border: 1px solid rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.feature-card i {
    font-size: 1.5rem;
    color: white !important;
    margin-bottom: 0.4rem;
}

.feature-card h4 {
    font-size: 0.9rem;
    color: white !important;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.feature-card p {
    color: #605e5c;
    line-height: 1.3;
    font-size: 0.7rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.1);
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
    border-radius: 20px 20px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}


.footer-content p {
    margin-left: 20px;
    margin-bottom: 0;
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-right: 20px;
}

.footer-icon {
    color: white;
    display: flex;
    align-items: center;
    font-size: 1rem;
    opacity: 0.85;
}

.footer-icon:nth-child(3) {
    margin-right: 10px;
}

/* Text background overlay for better readability */
.news-item-title,
.content-body p {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 4px 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Feature card paragraph text - no background */
.feature-card p {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 4px 0 !important;
    backdrop-filter: none !important;
    border: none !important;
}

.news-description {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 4px 0 !important;
    backdrop-filter: none !important;
    border: none !important;
    color: #B5B5B5 !important;
}

/* Override any possible white color inheritance for news descriptions */
.news-item .news-description,
.news-carousel .news-description,
#newsCarousel .news-description {
    color: #cdcdd1 !important;
}

/* Lite background for text sections */
.text-overlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    padding: 12px 16px;
    border-radius: 8px;
    margin: 8px 0;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced readability for content sections */
.content-card .content-body,
.news-item,
.feature-card {
    background: rgba(255, 255, 255, 0.005);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(3px);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 2.2rem;
    }
    
    /* Reduce logo-title spacing for better centering on mobile */
    .logo-image {
        margin-right: -6px !important;
    }
    
    /* Fix tagline alignment on mobile */
    .tagline {
        transform: none !important;
        text-align: center;
        margin: -5px auto 0 auto;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    /* Mobile info-symbol tooltip as wide overlay near bottom */
    .info-symbol::after {
        position: fixed !important;
        left: 50% !important;
        bottom: 12vh !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        max-width: 80vw !important;
        min-width: 280px !important;
        width: auto !important;
        white-space: normal !important;
        text-align: center !important;
        padding: 12px 16px !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        z-index: 99999 !important;
        background: rgba(220, 220, 220, 0.4) !important;
        backdrop-filter: blur(8px) !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.13) !important;
        border-radius: 8px !important;
        font-size: 0.8rem !important;
        pointer-events: none !important;
    }

    .info-symbol::before {
        display: none !important;
    }
    
    .dropdown-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tech-dropdown {
        min-width: auto;
    }
    
    .subtopics-grid {
        grid-template-columns: 1fr;
    }
    
    .topic-selection-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .subtopic-item::after {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90vw;
        z-index: 2000;
    }
    
    .subtopic-item::before {
        display: none;
    }
    
    /* Mobile tooltip overlay for generic info icons (not info-symbol) */
    .info-icon[data-tooltip]:hover::after {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin-top: 0 !important;
        max-width: 90vw !important;
        z-index: 2000 !important;
    }
    
    .info-icon[data-tooltip]:hover::before {
        display: none !important;
    }
    
    /* Override specific desktop positioning for all subtopic tooltips on mobile */
    .subtopic-item[data-topic="m365-communication"]::after,
    .subtopic-item[data-topic="m365-copilot"]::after,
    .subtopic-item[data-topic="m365-content"]::after,
    .subtopic-item[data-topic="m365-productivity"]::after,
    .subtopic-item[data-topic="m365-data"]::after,
    .subtopic-item[data-topic="m365-security"]::after,
    .subtopic-item[data-topic="m365-cloud"]::after,
    .subtopic-item[data-topic="azure-analytics"]::after,
    .subtopic-item[data-topic="azure-compute"]::after,
    .subtopic-item[data-topic="azure-networking"]::after,
    .subtopic-item[data-topic="azure-identity"]::after,
    .subtopic-item[data-topic="azure-integration"]::after,
    .subtopic-item[data-topic="azure-paas"]::after,
    .subtopic-item[data-topic="azure-specialized"]::after,
    .subtopic-item[data-topic="dynamics-crm"]::after,
    .subtopic-item[data-topic="dynamics-erp"]::after,
    .subtopic-item[data-topic="m365apps-office"]::after,
    .subtopic-item[data-topic="viva-platform"]::after,
    .subtopic-item[data-topic="windows-os"]::after,
    .subtopic-item[data-topic="others-misc"]::after,
    .subtopic-item.disabled::after {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        max-width: 85vw !important;
        min-width: 200px !important;
        white-space: normal !important;
        text-align: center !important;
        padding: 12px 16px !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        z-index: 99999 !important;
        pointer-events: none !important;
    }
    
    /* Hide tooltips on click/active state for subtopic buttons on mobile */
    .subtopic-item:active::after,
    .subtopic-item:focus::after,
    .subtopic-item.clicked-mobile::after,
    .subtopic-item.touch-active::after {
        display: none !important;
    }
    
    /* Ensure clicked mobile state persists briefly */
    .subtopic-item.clicked-mobile {
        pointer-events: auto !important;
    }
    
    .subtopic-item[data-topic="m365-communication"]::before,
    .subtopic-item[data-topic="m365-copilot"]::before,
    .subtopic-item[data-topic="m365-content"]::before,
    .subtopic-item[data-topic="m365-productivity"]::before,
    .subtopic-item[data-topic="m365-data"]::before,
    .subtopic-item[data-topic="m365-security"]::before,
    .subtopic-item[data-topic="m365-cloud"]::before,
    .subtopic-item[data-topic="azure-analytics"]::before,
    .subtopic-item[data-topic="azure-compute"]::before,
    .subtopic-item[data-topic="azure-networking"]::before,
    .subtopic-item[data-topic="azure-identity"]::before,
    .subtopic-item[data-topic="azure-integration"]::before,
    .subtopic-item[data-topic="azure-paas"]::before,
    .subtopic-item[data-topic="azure-specialized"]::before,
    .subtopic-item[data-topic="dynamics-crm"]::before,
    .subtopic-item[data-topic="dynamics-erp"]::before,
    .subtopic-item[data-topic="m365apps-office"]::before,
    .subtopic-item[data-topic="viva-platform"]::before,
    .subtopic-item[data-topic="windows-os"]::before,
    .subtopic-item[data-topic="others-misc"]::before,
    .subtopic-item.disabled::before {
        display: none !important;
    }
    
    /* Specific mobile tooltip overlay for disabled buttons */
    .subtopic-item.disabled::after {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        margin-left: 0 !important;
        max-width: 85vw !important;
        min-width: 200px !important;
        white-space: normal !important;
        text-align: center !important;
        padding: 12px 16px !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        z-index: 99999 !important;
        pointer-events: none !important;
    }
    
    /* Extra specific override for AWS and GCP Integration buttons */
    .subtopic-item.disabled[data-tooltip*="AWS"]::after,
    .subtopic-item.disabled[data-tooltip*="GCP"]::after {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        margin-left: 0 !important;
        max-width: 85vw !important;
        min-width: 200px !important;
        white-space: normal !important;
        text-align: center !important;
        padding: 12px 16px !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        z-index: 99999 !important;
        pointer-events: none !important;
    }
    
    .subtopic-item.disabled::before {
        display: none !important;
    }
    
    /* Mobile tooltip overlay for curious button - positioned below button */
    .curious-btn::after {
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        margin-top: 8px !important;
        max-width: 85vw !important;
        min-width: 200px !important;
        white-space: normal !important;
        text-align: center !important;
        padding: 12px 16px !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        z-index: 9999 !important;
    }
    
    .curious-btn::before {
        display: none !important;
    }
    
    /* Mobile tooltip overlay for content-action buttons */
    /* Force show tooltips on mobile without hover dependency */
    #generateNew[data-tooltip]::after,
    #scheduleContent[data-tooltip]::after,
    #addToList[data-tooltip]::after {
        content: attr(data-tooltip) !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        margin-top: 0 !important;
        max-width: 85vw !important;
        min-width: 200px !important;
        white-space: normal !important;
        text-align: center !important;
        padding: 12px 16px !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        z-index: 99999 !important;
        overflow: visible !important;
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
        background: rgba(220, 220, 220, 0.9) !important;
        color: #333 !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
        backdrop-filter: blur(10px) !important;
        font-size: 0.85rem !important;
        font-weight: 500 !important;
    }
    
    /* Show tooltips on hover/touch for mobile */
    #generateNew[data-tooltip]:hover::after,
    #scheduleContent[data-tooltip]:hover::after,
    #addToList[data-tooltip]:hover::after,
    #generateNew[data-tooltip]:focus::after,
    #scheduleContent[data-tooltip]:focus::after,
    #addToList[data-tooltip]:focus::after {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Hide tooltips on click/active/touch state for content-action buttons on mobile */
    #generateNew:active::after,
    #scheduleContent:active::after,
    #addToList:active::after,
    #generateNew.clicked-mobile::after,
    #scheduleContent.clicked-mobile::after,
    #addToList.clicked-mobile::after,
    #generateNew.touch-active::after,
    #scheduleContent.touch-active::after,
    #addToList.touch-active::after {
        opacity: 0 !important;
        visibility: hidden !important;
        display: none !important;
    }
    
    /* Force hide tooltips on focus state to prevent sticking */
    #generateNew:focus::after,
    #scheduleContent:focus::after,
    #addToList:focus::after {
        opacity: 0 !important;
        visibility: hidden !important;
        display: none !important;
    }
    
    /* Permanently hide tooltips after first click (matching desktop behavior) */
    #generateNew.tooltip-disabled::after,
    #scheduleContent.tooltip-disabled::after,
    #addToList.tooltip-disabled::after,
    #generateNew.tooltip-disabled:hover::after,
    #scheduleContent.tooltip-disabled:hover::after,
    #addToList.tooltip-disabled:hover::after,
    #generateNew.tooltip-disabled:focus::after,
    #scheduleContent.tooltip-disabled:focus::after,
    #addToList.tooltip-disabled:focus::after {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* Hide desktop triangle tooltips on mobile */
    #generateNew::before,
    #scheduleContent::before,
    #addToList::before {
        display: none !important;
    }
    
    .action-container {
        flex-direction: column;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content-actions {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    /* Center footer icons and text on mobile */
    .footer-content p {
        margin: 0;
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .footer-links {
        justify-content: center;
        margin: 0;
        gap: 30px;
    }
    
    .footer-icon {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Fix search-wrapper text wrapping on mobile */
    .search-wrapper p {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        word-wrap: break-word;
        line-height: 1.4;
        margin: 12px 8px;
        text-align: center;
    }
    
    /* Center action buttons on mobile */
    .buttons-container {
        justify-content: center;
        text-align: center;
    }
    
    /* Center loading spinner on mobile */
    .loading-section {
        padding: 2rem 15px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .loading-spinner {
        min-width: auto;
        width: 100%;
        max-width: 350px;
        padding: 2rem 1rem;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .features {
        padding: 1.5rem 1rem;
    }
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 2rem;
}

.loading-spinner i {
    font-size: 2rem;
    color: #0078d4;
    margin-bottom: 1rem;
}

/* Content Sections */
.content-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-section {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 1.5rem;
    z-index: 1;
}

.content-section h3 {
    color: #0078d4;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-content {
    line-height: 1.6;
}

/* Error Message */
.error-message {
    text-align: center;
    color: #d83b01;
    padding: 2rem;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
}