body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

#ccm-broadcast-interface header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
}

#ccm-broadcast-interface main {
    display: flex;
    flex-direction: row;
    padding: 20px;
    box-sizing: border-box;
}

.sidebar {
    width: 300px;
    border-right: 1px solid #ccc;
    padding-right: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.content {
    flex: 1;
    padding-left: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.section-header {
    border-top: 1px solid #dadada;
    background-color: #F0F1F6;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2b3b4d;
}

.section-content {
    display: none;
}

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

.live-item {
    justify-content: space-between;
    padding: 5px 0;
    cursor: pointer;
}

.live-item.active {
    background-color: #dfe6e9;
}

.live-item .status {
    color: #00ab00;
    cursor: pointer;
    font-size: 16px;
}

.live-player {
    width: 100%;
    max-width: 800px;
    position: relative;
}

live {
    width: 100%;
    max-height: 450px;
}

.controls {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
}

.controls button {
    padding: 10px 20px;
    font-size: 16px;
}

.progress-indicator {
    margin-top: 10px;
    font-size: 16px;
}

.broadcast-progress {
    width: 100%;
    background-color: #ddd;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #2ecc71;
    width: 0%;
    transition: width 0.3s;
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ccc;
        padding-right: 0;
        padding-bottom: 20px;
    }
    .content {
        padding-left: 0;
    }
    .live-player, .controls, .progress-indicator {
        max-width: 100%;
    }
}

.broadcast-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.broadcast-item {
    border: 1px solid #ccc;
    padding: 15px;
    width: calc(33.333% - 30px);
    box-sizing: border-box;
}

.broadcast-item h3 {
    margin-top: 0;
}

.broadcast-item .button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #2c3e50;
    color: #fff;
    text-decoration: none;
}

.broadcast-item .button:hover {
    background-color: #34495e;
}

.viewed-icon {
    color: green;
}

.not-viewed-icon {
    color: red;
}
.broadcast-container {
    display: flex;
    flex-direction: row-reverse; /* For RTL */
    direction: rtl; /* For RTL text */
}

.left-side {
    flex: 1;
    background-color: #ffffff;
    padding: 0px;
}

.right-side {
    display: block; /* Sidebar is visible by default on desktop */
    width: 350px;
    background-color: #fff;
    border-left: 1px solid #ccc;
}

.right-side.hidden {
    display: none;
}

.right-side.active {
    display: none;
}

@media (max-width: 768px) {
    .right-side {
        display: none;
    }
    .right-side.active {
        display: block;
        position: relative;
        top: 0;
        bottom: 0;
        right: 0;
        width: 80%;
        z-index: 1000;
        background-color: #fff;
        overflow-y: auto;
    }
    #live-container iframe {
        min-height: 40vh;
        width: 100%;
    }

}

.section-header {
    cursor: pointer;
    font-weight: bold;
}

.section-content {
    display: none;
}

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

.live-item {
    padding: 5px 10px 4px 10px;
    cursor: pointer;
}

.live-item.active {
    background-color: #2e3e50d1;
    color: white;
}

.status {
    margin-left: 10px;
}

@media (max-width: 768px) {
    #toggle-sidebar {
        display: inline-block;
    }
}

button {
    margin: 5px;
}
@media (min-width: 981px) {
    #sidebar {
        float: unset!important;
        width: 100%!important;
    }
}
#live-container div {
    position: unset!important;
    padding-top:unset!important;
}
#live-container iframe {
    min-height: 75vh;
    width: 80%;
}
@media (max-width: 768px) {
    #live-container iframe {
        min-height: 26vh;
        width: 100%;
    }

}
.broadcast-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    direction: rtl;
    width: 100%;
    align-content: center;
    background: #2e3e50f0;
    justify-content: space-between;
}


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

.broadcast-header-group + .broadcast-header-group {
    margin-left: 50px; /* Space between the two groups */
}

/* Optional: Add spacing between elements within each group */
.broadcast-header-group {
    gap: 10px; /* Space between items within the group */
}

/* Adjustments for mobile view */
@media (max-width: 768px) {
    .broadcast-header {
        flex-direction: column;
        align-items: flex-start; /* Align items to the right in RTL */
    }
    .broadcast-header-group {
        margin-bottom: 10px; /* Space between groups in mobile */
    }
    .broadcast-header-group + .broadcast-header-group {
        margin-left: 0; /* Remove left margin in mobile */
    }
}

.broadcast-header #toggle-sidebar {
    background: #243241;
    border: 0;
    border-radius: 100px;
    color: white;
    font-size: 14px;
    gap: 7px;
    padding: 6px 13px;
    padding-top: 6px;
    cursor: pointer;
    line-height: 19px;
    display: flex;
    align-items: baseline;
    justify-content: space-evenly;
}
/* Center the live controls */
#live-controls-container {
    text-align: center;
    margin-top: 20px;
}

/* Style the progress indicator */
#broadcast-progress {
    display: inline-block;
    font-size: 1.2em;
    margin-bottom: 10px;
}

/* Style the "Mark as Completed" button */
#mark-watched-btn {
   display: inline-block;
    padding: 4px 11px 2px 10px;
    background-color: #246a26ed;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s ease;
}

#mark-watched-btn:hover {
    background-color: #005177;
}

.broadcast-header #live-title {
    font-size: 19px;
    color: white;
    margin-right: 8px;
    padding: 0;
}
.broadcast-header #broadcast-progress {
    color: white;
    font-size: 14px;
}
.broadcast-header #mark-watched-btn {
    background: #2e3e50;
    border: 1px solid white;
    border-radius: 4px;
    color: white;
    padding: 4px 14px 1px 14px;
    cursor: pointer;
}
.footer-buttons {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-top: 1px solid rgba(var(--tutor-color-primary-rgb), 0.15);
    background-color: rgba(var(--tutor-color-primary-rgb), 0.1);
    background: #E4E7E9;
    border-top: 1px solid #d0d0d0;
    padding: 5px;
}
#live-container {
    text-align: center;
}
.footer-buttons #prev-btn {
    gap: 8px;
    background: #D2D5D9;
    border: 0px;
    border-radius: 4px;
    border: 1px solid #c8c8c8;
    padding: 0px 20px;
    cursor: pointer;
    display: flex;
    align-content: center;
    justify-content: space-between;
    align-items: baseline;
}
.footer-buttons #next-btn {
    gap: 8px;
    background: #D2D5D9;
    border: 0px;
    border-radius: 4px;
    border: 1px solid #c8c8c8;
    padding: 0px 20px;
    cursor: pointer;
    display: flex;
    align-content: center;
    justify-content: space-between;
    align-items: baseline;
}
@media (min-width: 981px) {
    .et_left_sidebar #sidebar {
        padding-right: 0px!important;
    }
} 
.right-side h1{
    padding: 10px;
}
.live-item {
     display: flex;
     justify-content: space-between;
     align-items: center;
     direction: rtl;
     margin-bottom: 10px;
     cursor: pointer;
     font-size: 15px;
}

.live-item-group {
    display: flex;
    align-items: center;
}

.live-item-group .youtube-icon-large {
    margin-left: 10px;
}

.live-title {
    font-size: 13px;
}

.status i {
    font-size: 18px;
}

.live-item.active {
    background-color: #3a495bc9; /* Highlight active live */
}

@media (max-width: 768px) {
    .live-item {
        flex-direction: row;
        align-items: baseline;
        display: flex;
    }
    .live-item-group, .live-item-status {
        margin-bottom: 5px;
    }
}
@media (max-width: 768px) {
    .right-side {
        display: none; /* Sidebar is hidden by default on mobile */
    }
    .right-side.active {
        display: block; /* Sidebar is shown when 'active' class is added */
    }
    .right-side h1 {
        font-size: 12px;
        line-height: 19px;
        padding: 7px;
    }
    .section-header span{
        font-size: 12px;
        line-height: 20px;
    }
    .live-item .live-title {
        font-size: 13px;
        line-height: 19px;
    }
    .mark-watched-btn {
        font-size: 13px;
        line-height: 19px;
        padding: 5px 5px;
    }
    .broadcast-header #broadcast-progress {
        font-size: 13px;
        line-height: 17px;
    }
    .broadcast-header #live-title {
        margin-right: 0px;
        padding: 0;
        font-size: 14px;
        line-height: 18px;
    }
}

/* broadcasts List Styles */
.broadcasts-list {
    display: flex;
    flex-wrap: wrap; /* Enable wrapping */
    gap: 20px;
    justify-content: flex-start; /* Align items to start */
}
@media (max-width: 768px) {
    .broadcast-header-group {
        margin-bottom: 0px;
    }
	.broadcasts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
}
.broadcast-item {
    padding: 20px;
    border: 1px solid #cccccc4a;
    border-radius: 8px;
    background-color: #ffffff;
    transition: box-shadow 0.3s ease;
    text-align: center;
}

.broadcast-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.broadcast-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.broadcast-title a {
    text-decoration: none;
    color: #333333;
}

.view-broadcast-button {
    background: #102935;
    color: white;
    font-size: 17px;
    padding: 12px 14px 8px 15px;
}
.broadcast-title a:hover {
    color: #0073aa;
}

.broadcast-progress {
    margin-top: 10px;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 25px;
    overflow: hidden;
    height: 25px;
    position: relative;
}

.progress {
    height: 100%;
    background-color: #4caf50;
    width: 0%;
    line-height: 25px;
    color: white;
    text-align: center;
    transition: width 0.5s ease-in-out;
    border-radius: 25px 0 0 25px;
}

/* "View broadcast" Button Styles */
.view-broadcast-button {
    display: inline-block;
    margin-top: 9px;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.view-broadcast-button:hover {
    background-color: #005177;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .broadcasts-list {
        gap: 15px;
    }

    .broadcast-item { 
        padding: 15px;
    }

    .broadcast-title {
        font-size: 1.3em;
    }

    .progress-bar {
        height: 20px;
    }

    .progress {
        line-height: 20px;
        font-size: 0.9em;
    }

    .view-broadcast-button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .broadcasts-list {
        gap: 15px;
    }

    .broadcast-item {
        flex-direction: column; /* Stack elements vertically */
        align-items: center;    /* Center elements horizontally */
        padding: 15px;
    }

    .broadcast-thumbnail {
        flex: 0 0 100%;        /* Full width on mobile */
        margin: 0 0 15px 0;    /* Margin below thumbnail */
    }

    .broadcast-thumbnail img {
        width: 80%;             /* Reduce image size for better fit */
    }

    .broadcast-details {
        align-items: center;    /* Center text and buttons */
        text-align: center;     /* Center-align text */
    }

    .broadcast-title {
        font-size: 1.3em;
    }
    .broadcast-item {
        width: 100%!important;
    }
    .progress-bar {
        height: 20px;
    }

    .progress {
        line-height: 20px;
        font-size: 0.9em;
    }

    .view-broadcast-button {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    /* Ensure progress and button are centered */
    .broadcast-progress,
    .view-broadcast-button {
        width: 100%;
        max-width: 300px; /* Optional: Limit maximum width */
    }

    .broadcast-progress {
        margin: 0 auto 10px auto; /* Center and add margin below */
    }

    .view-broadcast-button {
        margin: 10px auto 0 auto; /* Center and add margin above */
    }

}
/* Common sidebar styles */
.right-side {
    transition: transform 0.3s ease;
    /* Add other necessary styles here */
}

/* Mobile: Hidden by default */
@media (max-width: 768px) {
    .right-side {
        transform: translateX(100%); /* Hide sidebar to the right */
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 80%; /* Adjust as needed */
        z-index: 1000; /* Ensure it's above other content */
        /* Add any additional mobile-specific styles */
    }
    .right-side.active {
        transform: translateX(0); /* Show sidebar */
    }
}

/* Desktop: Visible by default */
@media (min-width: 769px) {
    .right-side {
        transform: translateX(0); /* Always visible */
        position: relative; /* Or as per your layout */
        width: 250px; /* Adjust as needed */
        /* Add any additional desktop-specific styles */
    }
}
#live-embed-code-container textarea {
    width:100%;
}