/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F9F7FF;
    min-height: 100vh;
    color: #333;
    overflow: hidden; /* Prevent body scrolling */
}

/* Main Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    height:79px;
    padding: 12px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    /* padding: 6px 40px 16px 0; */
    /* max-width: 1200px; */
    /* margin: 0 auto; */
}

.header-logo {
    display: flex;
    align-items: center;
    padding-left: 16px;
}

.header-logo .logo {
    width: 32px;
    height: 32px;
}

.logo-text {
    color: #303030;
    width:94px;
    height:13px;
    top:24;
    left:64;
}

.header-actions {
    display: flex;
    align-items: center;
}

.auth-buttons {
    display: flex;
    align-items: center;
    border: 1px solid #A7A7A7;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    height: 55px;
    width: 176px;
    gap: 8px;
    padding: 6px;
}

.signup-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sign-in-btn {
    background: #ffffff;
    color: #51596C;
    border: none;
    /* border-right: 1px solid #E5E5E5; */
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    height:38px;
    width:77px;
    font-style: semibold;
    font-family: "Inter", sans-serif;
    line-height: 100%;
    letter-spacing: 0;
}

.sign-in-btn:hover {
    background: #F9F7FF;
    color: #CB009F;
}

.sign-up-btn {
    background: #5932EA;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    font-style: semibold;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    height:40px;
    width:77px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sign-up-btn:hover {
    background: #4317E8;
    color: #FFFFFF;
}

.integrate-btn {
    background: #5932EA;
    color: #ffffff;
    border: 1px solid #8B5CF6;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 38px;
    font-family: "Inter", sans-serif;
    line-height: 100%;
    letter-spacing: 0;
    white-space: nowrap;
}

.integrate-btn:hover {
    background: #4317E8;
    border-color: #4317E8;
    color: #ffffff;
}

.create-dsp-btn {
    background: #CB009F;
    color: #ffffff;
    border: 1px solid #CB009F;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 38px;
    font-family: "Inter", sans-serif;
    line-height: 100%;
    letter-spacing: 0;
    white-space: nowrap;
}

.create-dsp-btn:hover {
    background: #AC0086;
    border-color: #B8008A;
    color: #ffffff;
}

/* Mobile Add Account Button */
.mobile-signup-option {
    display: flex;
    align-items: center;
}

.add-account-btn {
    background: #5932EA;
    color: #ffffff;
    border: 1px solid #5932EA;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    font-style: semibold;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 38px;
    width:146px;
    font-family: "Inter", sans-serif;
    line-height: 100%;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.user-icon {
    width: 17px;
    height: 20px;
    filter: brightness(0) invert(1); /* Makes the icon white */
}

/* Playlist Component */
.playlist-component {
    display: none; /* Hidden by default, shown on mobile/tablet */
    position: fixed;
    bottom: 11px;
    left: 11px;
    right: 11px;
    background: #ffffff;
    border-top: 1px solid #E5E5E5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

/* Hide playlist component on desktop screens */
@media (min-width: 1025px) {
    .playlist-component {
        display: none !important;
    }
}

.playlist-component:hover {
    background: #F9F7FF;
}

.playlist-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.playlist-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    width: 80%;
}

.playlist-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 32px;
    background: #F3F4F6;
    border-radius: 8px;
    position: relative;
}

.playlist-vector-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.playlist-text {
    flex: 1;
    min-width: 0;
}

.playlist-label {
    font-size: 12px;
    color: #364153;
    margin-bottom: 4px;
    line-height: 100%;
    letter-spacing: 0;
    font-weight: 500;
    font-family: "Inter", sans-serif;
    font-style: normal;
}

.playlist-count {
    color: #CB009F;
    background: #F9F7FF;
    border-radius: 3px;
    padding: 4px 6px 4px 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
    font-family: "Inter", sans-serif;
    font-style: normal;
}

.playlist-title {
    font-size: 14px;
    color: #CB009F;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 130%;
    letter-spacing: 0;
    font-family: "Inter", sans-serif;
    width: 90%;
}

.playlist-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #364153;
    transition: transform 0.3s ease;
}

.playlist-component.open .playlist-toggle {
    transform: rotate(180deg);
}

/* a{
    color: rgb(51,119,242);
    cursor: pointer;
} */

.menu-text-container{
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 40px;
}

.menu-text-description{
    font-size: 10px;
    font-weight: 400;
    color: #364153;
    line-height: 16px;
}

/* Hidden by default; shown on mobile/tablet */
.menu-toggle {
    display: none;
}

.container {
    display: flex;
    height: 100vh; /* Use viewport height instead of min-height */
    background: #F9F7FF;
    overflow: hidden; /* Prevent container scrolling */
    margin-top: 79px; /* Account for fixed header height */
}

/* Side Menu Styles */
.side-menu {
    width: 450px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 2px 10px 0px #0000001A;
    border-top-left-radius: 12px;
    gap: 5px;
    border: 1px solid #E5E5E5;
    overflow: hidden; /* Prevent side menu from scrolling the whole page */
    /* margin-top: 30px;  */

}

/* Side Menu Header (Mobile/Tablet Only) */
.side-menu-header {
    display: none; /* Hidden by default, shown on mobile/tablet */
    padding: 16px 20px 12px 20px;
    background: #ffffff;
    /* border-bottom: 1px solid #E5E5E5; */
    position: sticky;
    top: 0;
    z-index: 1001;
    flex-shrink: 0;
}

.side-menu-title {
    font-size: 16px;
    font-weight: 600;
    color: #101828;
    margin: 0;
    line-height: 1.2;
    padding-right: 40px; /* Space for close button */
    font-family: "Inter", sans-serif;
}

.side-menu-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-menu-close-btn:hover {
    background: #F3F4F6;
}

.side-menu-close-btn .close-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Show header on mobile/tablet only */
@media (max-width: 1024px) {
    .side-menu-header {
        display: block;
    }
}

/* Search Container */
/* --- Search Bar Redesign (Figma) --- */
.search-container {
    padding: 12px;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1000;
    flex-shrink: 0; /* Prevent search container from shrinking */
}

.search-box {
    display: flex;
    align-items: center;
    width: 100%;
    height: 40px;
    background: #fff;
    border: 0.5px solid #A7A7A7;
    border-radius: 8px;
    padding: 0 16px;
    gap: 16px;
    position: relative;
}

.search-input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #8D929C;
    font-size: 13px;
}

.search-content{
    width: 100%;
}

.search-user-icon {
    color: #8d8d8d;
    font-size: 18px;
    flex-shrink: 0;
}

.search-text {
    color: #8d8d8d;
    font-size: 18px;
    font-weight: 400;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-icon {
    color: #8d8d8d;
    font-size: 18px;
    margin-left: auto;
    flex-shrink: 0;
}

.help-icon {
    color: #8d8d8d;
    font-size: 16px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Menu Navigation */
.menu-nav {
    flex: 1;
    overflow-y: auto; /* Enable scrolling only for the menu navigation */
    overflow-x: hidden;
    max-height: calc(100vh - 150px);
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    position: relative;
    min-height: 36px;
}

.menu-item:hover {
    background-color: #F9F7FF;
}

.menu-item.active {
    background-color: #F9F7FF;
}

.menu-number {
    color: #364153;
    font-size: 14px;
    font-weight: 500;
    margin-right: 11px;
    min-width: 13px;
}

.menu-text {
    color: #364153;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.duration {
    color: #364153;
    font-size: 12px;
    font-weight: 400;
    margin-left: auto;
}

.expand-icon {
    color: #363636;
    font-size: 12px;
    margin-left: auto;
}

/* Sub Menu */
.sub-menu {
    margin-left: 20px;
    border-left: 1px solid #cdcdcd;
    padding-left: 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
}

.play-pause-indicator{
    display: inline-block;
    width: 10px;
    height: 12px;
    background-image: url('../images/play-outline.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin-right: 8px;
}

/* .menu-item .play-pause-indicator{
    display: none;
} */

.menu-item.sub-item .play-pause-indicator{
    display: inline-block;
}

.menu-item.active .play-pause-indicator{
    display: inline-block;
    background-image: url('../images/play-fill.svg');
}

.menu-item.sub-item.active .play-pause-indicator{
    background-image: url('../images/play-fill.svg');
}

/* Playing state for videos */
.menu-item.playing .play-pause-indicator{
    background-image: url('../images/pause-fill.svg') !important;
}

.menu-item.playing .menu-text,
.menu-item.playing .duration,
.menu-item.playing .menu-number{
    color: #CB009F !important;
}

.menu-item.sub-item.active .menu-text,
.menu-item.sub-item.active .duration,
.menu-item.active .duration,
.menu-item.active .menu-text,
.menu-item.active .menu-number{
    color: #CB009F;
}

.menu-item.active .menu-text-description{
    color: #9E4B8C;
}

.sub-item {
    padding: 12px 16px;
    /* background-color: #f9f8ff; */
    border-radius: 4px;
    position: relative;
}

.sub-item.featured {
    background-color: #f9f8ff;
}

.feature-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 12px;
    background-color: #cb009f;
    border: 1px solid #cb009f;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    margin-left: -6px;
}

.sub-item.featured .feature-indicator {
    background-color: #cb009f;
    border-color: #cb009f;
}

.sub-item:not(.featured) .feature-indicator {
    background-color: transparent;
    border-color: #363636;
}

.sub-item .menu-text {
    color: #cb009f;
    font-weight: 400;
}

.sub-item.featured .menu-text {
    color: #cb009f;
}

.sub-item:not(.featured) .menu-text {
    color: #363636;
}

.sub-item .duration {
    color: #cb009f;
}

.sub-item.featured .duration {
    color: #cb009f;
}

.sub-item:not(.featured) .duration {
    color: #363636;
}

.time-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 8px;
}

.time-info i {
    color: #363636;
    font-size: 14px;
}

.time-info span {
    color: #363636;
    font-size: 8px;
    font-weight: 400;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto; /* Enable scrolling only for the main content */
    overflow-x: hidden;
    scroll-behavior: smooth; /* Smooth scrolling */
}

.content-header {
    padding: 20px 40px 0px 40px;
    background: #F9F7FF;
    position: fixed;
    width: calc(100vw - 471px);
    z-index: 100; /* Ensure header is above other elements */
    top: 65px; /* Position below main header */
}

.content-master-section{
    padding-left: 14px;
    padding-bottom: 40px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.content-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    color: #718096;
    font-size: 0.9rem;
}

.breadcrumb i {
    margin: 0 8px;
    font-size: 0.7rem;
}

/* Content Body */
.content-body {
    padding: 0px 24px 24px 15px;
    background: #F9F7FF;
    min-height: 100vh;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

.logo-video-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0; /* Removed gap since we no longer have a logo */
    /* z-index: 1000; */
    background: #F9F7FF;
    padding-top:12px;
    padding-right:12px;
    will-change: transform;
    width: calc(100% - 490px);
    contain: layout paint style;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

/* Only fix the active section's wrapper */
.content-section.active > .logo-video-wrapper {
    position: fixed;
    top: 65px;
    transform: translateX(10px);
    z-index: 15; /* Higher z-index to stay above content */
}


.logo-video-wrapper.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.logo-video-wrapper-spacer {
    width: 100%;
    height: 750px; /* Fixed height for desktop */
    transition: height 300ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
}

/* Set fixed height for tablet and mobile screens */
@media (max-width: 1024px) {
    .logo-video-wrapper-spacer {
        height: 520px !important;
        transition: none;
    }
}

@media (max-width: 768px) {
    .logo-video-wrapper-spacer {
        height: 370px !important;
        transition: none;
    }
  
}

/* Hide Hector logo since YouTube will have its own branding */
.content-section .logo {
    display: none !important;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #101828;
    margin-bottom: 5px;
}

/* .content-section p {
    font-size: 14px;
    line-height: 1.7;
    color: #364153;
    margin-bottom: 30px;
} */

.content-section-divider{
    background: #EAEAEA;
    margin: 15px 0px;
    width: 100%;
    height: 1px;
}

.content-section-spacer{
    height: 15px;
}

.sub-header{
    font-size: 14px;
    font-weight: 500;
    color: #101828;
    margin-bottom: 7px;
}

.description{
    font-size: 14px;
    font-weight: 400;
    color: #364153;
}

.content-section-link{
    font-size: 14px;
    font-weight: 400;
    color: #364153;
    display: flex;
    align-items: center;
    gap: 5px;
}

.content-section-list{
    font-size: 14px;
    font-weight: 400;
    color: #364153;
    margin-left: 25px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.feature-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.5;
    margin: 0;
}

/* Course Info */
.course-info {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-size: 0.9rem;
}

.info-item i {
    color: #667eea;
}

/* Video Placeholder */
.video-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin: 30px 0;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.video-placeholder i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.video-placeholder span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Inline Video Player - Increased height and removed blank space */
.video-container {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #F9F7FF;
    flex: 1;
    transition: height 300ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
    transform: translateZ(0);
    padding: 0; /* Remove padding to eliminate blank space */
}

/* Responsive heights with CSS variables - Increased heights */
:root {
    --video-height: clamp(400px, 76vh, 900px); /* Increased from 240px/55vh/800px */
    --video-height-collapsed: clamp(200px, 35vh, 400px); /* Increased from 120px/22vh/200px */
}

.video-container.scrolled {
    height: var(--video-height-collapsed);
}

.video-container.scrolled iframe {
    height: var(--video-height-collapsed);
}

.video-container, iframe{
    width: 100%;
    height: var(--video-height);
    border-radius: 16px;
    transition: height 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.video-container.scrolled, .video-container.scrolled iframe {
    height: var(--video-height-collapsed);
}

.video-inline {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    background: #000;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

@media (max-width: 1024px) {
    /* Hide desktop signup options on tablet and mobile */
    .signup-options {
        display: none !important;
    }
    
    /* Show playlist component on tablet and mobile */
    .playlist-component {
        display: block;
    }
    
    /* .header-content {
        padding: 6px 20px 12px 0;
    } */
    
    .header-logo {
        padding-left: 12px;
    }
    
    .header-logo .logo {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    /* .auth-buttons {
        border-radius: 5px;
        height: 38px;
    } */
    
    /* .sign-in-btn, .sign-up-btn {
        padding: 6px 12px;
        font-size: 13px;
        height: 30px;
    } */
    
    .integrate-btn, .create-dsp-btn {
        padding: 6px 12px;
        font-size: 13px;
        height: 30px;
    }
    
    /* .add-account-btn {
        padding: 6px 10px;
        font-size: 14px;
        height: 30px;
    } */
    
    .user-icon {
        width: 14px;
        height: 14px;
    }
    
    .container {
        margin-top: 57px; /* Adjust for smaller header on tablet */
    }
    
    .content-header {
        top: 57px; /* Adjust for smaller header on tablet */
    }
    
    /* Menu toggle removed - using playlist component instead */
    .side-menu {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0; /* Extend to bottom when playlist is hidden */
        height: auto;
        max-height: 70vh; /* Increased height to show more content */
        z-index: 998;
        width: 100vw;
        margin-top: 0;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .side-menu.open {
        transform: translateY(0);
    }
    
    /* Hide playlist when side menu is open */
    .side-menu.open ~ .playlist-component {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding-bottom: 120px; /* Account for playlist component */
        padding-bottom: calc(120px + env(safe-area-inset-bottom));
    }

    .content-header {
        padding: 20px 20px 20px 20px;
        position: fixed;
        width: 100%;
        top: 0px;
    }

    .menu-toggle {
        position: absolute;
        right: 20px;
        top: 20px;
        background: #ffffff;
        color: #364153;
        border: 1px solid #E5E5E5;
        border-radius: 8px;
        padding: 8px 10px;
        font-size: 16px;
        line-height: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0px 2px 6px rgba(0,0,0,0.06);
    }

    .logo-video-wrapper {
        width: 100%; /* Full width for tablet to ensure even spacing */
    }

    .logo-video-wrapper {
        top: 57px !important;
    }
    
    .content-section.active > .logo-video-wrapper {
        top: 57px !important; /* Ensure consistent positioning below header */
        z-index: 15 !important; /* Higher z-index to stay above content */
    }

    .side-menu {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100vw;
        height: auto;
        max-height: 60vh;
        overflow-y: auto;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        transform: translateY(100%);
    }

    .content-section .logo {
        display: none;
    }

    .content-master-section {
        padding-left: 0px;
        padding-bottom: 40px; /* Ensure bottom content is readable on mobile */
        margin-top: 15px; /* Add top margin for mobile */
    }

    .content-header {
        padding: 20px 20px 20px 20px;
        position: fixed;
        width: 100%;
        top: 0px;
    }

    .menu-toggle:active {
        transform: translateY(1px);
    }

    .content-body {
        padding: 0px 15px 20px 15px; /* Equal padding on left and right for tablet */
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .video-container {
        background: #F9F7FF;
    }
    
   
    
    .video-container, iframe{
        height: 500px; /* Increased from 390px */
        border-radius: 16px;
        /* transition: height 0.3s ease; */
    }
    
   

    .content-section.active > .logo-video-wrapper {
        gap: 15px;
        margin-bottom: 15px;
        position: fixed;
        top: 57px; /* Position below main header on tablet */
        z-index: 5; /* Higher z-index to ensure visibility */
        background: #F9F7FF;
        padding-right:25px;
        /* width: 100%; */
    }

    .content-section .logo {
        /* width: 70px; */
        height: 21px;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    /* .header-content {
        padding: 10px 16px 10px 0;
    } */
    
    .header-logo {
        padding-left: 10px;
    }
    
    .header-logo .logo {
        width: 24px;
        height: 24px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    /* .auth-buttons {
        border-radius: 4px;
        height: 35px;
    } */
    
    /* .sign-in-btn, .sign-up-btn {
        padding: 5px 10px;
        font-size: 11px;
        height: 25px;
        border-radius: 3px;
    } */
    
    .integrate-btn, .create-dsp-btn {
        padding: 5px 10px;
        font-size: 12px;
        height: 30px;
    }
    
    /* .add-account-btn {
        padding: 5px 8px;
        font-size: 12px;
        height: 30px;
    } */
    
    .user-icon {
        width: 12px;
        height: 12px;
    }
    
    .container {
        margin-top: 0px; /* Adjust for smaller header on mobile */
    }
    
    .content-header {
        top: 49px; /* Adjust for smaller header on mobile */
    }
    
    .content-section .logo {
        display: none;
    }
    .logo-video-wrapper{
        top: 49px !important;
    }
    
    .content-section.active > .logo-video-wrapper {
        top: 80px !important; /* Ensure consistent positioning below header */
        z-index: 15 !important; /* Higher z-index to stay above content */
    }
    .content-master-section{
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 40px; /* Ensure bottom content is readable on mobile */
        margin-top: 15px; /* Add top margin for mobile */
    }
    /* Menu toggle removed - using playlist component instead */
    .side-menu {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0; /* Extend to bottom when playlist is hidden */
        width: 100vw;
        height: auto;
        max-height: 70vh; /* Increased height to show more content */
        margin-top: 0;
        overflow-y: auto;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
    }

    .side-menu.open {
        transform: translateY(0);
    }
    
    /* Hide playlist when side menu is open */
    .side-menu.open ~ .playlist-component {
        display: none;
    }

    .main-content {
        padding-bottom: 120px; /* Account for playlist component */
        padding-bottom: calc(120px + env(safe-area-inset-bottom));
    }
    
    .search-box {
        width: 100%;
    }

    .content-header h1 {
        font-size: 2rem;
    }

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

    .course-info {
        flex-direction: column;
        gap: 15px;
    }

    .menu-toggle:active {
        transform: translateY(1px);
    }

    .video-container {
        background: #F9F7FF;
    }

    .logo-video-wrapper {
        width: 100%; /* Full width for mobile to make video fit complete screen */
    }
    
    
    
    .video-container, iframe{
        height: 288px; 
        border-radius: 0; 
    }
    
   

    .content-section.active > .logo-video-wrapper {
        gap: 15px;
        margin-bottom: 15px;
        position: fixed;
        top: 49px; /* Position below main header on mobile */
        z-index: 5; /* Higher z-index to ensure visibility */
        background: #F9F7FF;
        padding: 0; 
    }

    .content-section .logo {
        /* width: 70px; */
        height: 21px;
        flex-shrink: 0;
    }
}

/* Search Results Highlighting */
.menu-item.highlight {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

.menu-item.highlight i {
    color: #ffc107;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Scrollbar Styling */
.menu-nav::-webkit-scrollbar {
    width: 6px;
}

.menu-nav::-webkit-scrollbar-track {
    background: transparent;
}

.menu-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.menu-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Main content scrollbar styling */
.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Focus States for Accessibility */
.menu-item:focus,
.feature-card:focus,
.video-placeholder:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }

    .side-menu {
        background: rgb(255, 255, 255);
        color: rgb(0, 0, 0);
    }

    /* .main-content {
        background: rgba(255, 255, 255, 0.95);
        color: rgb(0, 0, 0);
    } */

    /* .content-header {
        background: rgba(255, 255, 255, 0.95);
        color: rgb(0, 0, 0);
    } */

    .feature-card {
        background: #2d3748;
        border-color: #4a5568;
        color: white;
    }

    .course-info {
        background: #2d3748;
        border-color: #4a5568;
    }
}

/* Add Account Modal Styles (Mobile/Tablet Only) */
.add-account-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.add-account-modal.show {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0.5); */
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 24px 24px 0px 0px;
    padding: 56px 24px 32px 24px;
    margin: auto auto 0 auto;
    width: 100%;
    height: var(--modal-height, 338px);
    /* max-width: 100%; */
    max-height: 60vh;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15); */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tablet-specific modal width adjustment */
@media (min-width: 768px) and (max-width: 1024px) {
    .add-account-modal {
        --modal-width: 500px;
        --modal-height: 360px;
    }
    
}

.add-account-modal.show .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: #F3F4F6;
}

.close-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    font-style: semibold;
    color: #111828;
    font-family: "Inter", sans-serif;
    margin: 0;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    display: flex;
    align-items: center;
    /* padding-right: 40px;  */
}

.modal-description {
    font-size: 12px;
    font-weight: 400;
    color: #51596C;
    line-height: 140%;
    letter-spacing: 0;
    font-family: "Inter", sans-serif;
    font-style: regular;
    margin: 0;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.modal-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-style: semibold;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 100%;
    letter-spacing: 0;
    /* height: 14px;
    width:147px */
}

.modal-btn-primary {
    background: #5932EA;
    color: #FFFFFF;
}

.modal-btn-primary:hover {
    background: #4317E8;
    transform: translateY(-1px);
}

.modal-btn-secondary {
    background: #CB009F;
    color: #FFFFFF;
}

.modal-btn-secondary:hover {
    background: #AC0086;
    transform: translateY(-1px);
}

/* Hide modal on desktop screens */
@media (min-width: 1025px) {
    .add-account-modal {
        display: none !important;
    }
}

/* Responsive video container scrolled states */
@media (max-width: 1024px) {
    :root {
        --video-height: clamp(400px, 60vh, 500px); /* Increased heights */
        --video-height-collapsed: clamp(200px, 30vh, 250px); /* Increased heights */
    }
    
    /* Override desktop transform on tablet for better positioning */
    .content-section.active > .logo-video-wrapper {
        transform: translateX(0) !important;
    }
}

@media (max-width: 768px) {
    :root {
        --video-height: clamp(350px, 55vh, 500px); /* Increased heights */
        --video-height-collapsed: clamp(175px, 25vh, 250px); /* Increased heights */
    }
    
    /* Override desktop transform on mobile for better positioning */
    .content-section.active > .logo-video-wrapper {
        transform: translateX(0) !important;
    }
    
    /* Remove left padding on mobile for full-width video */
    .content-body {
        padding-left: 0px;
    }
}

