/* CSE Bytes Page Styling */

/* Page header section */
.page-header-section {
    text-align: left;
    margin-bottom: 40px;
    padding: 30px 0 20px;
}

.page-main-title {
    font-size: 36px;
    font-weight: 700;
    color: #7f241e;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 3px;
}

.page-intro-text {
    font-size: 16px;
    line-height: 1.85;
    color: #333;
    max-width: 100%;
    margin: 0 0 28px;
    text-align: justify;
}

/* Playlist inline link */
.playlist-link-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 16px;
    flex-wrap: wrap;
}

.playlist-label {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    margin-top: 1px;
}

.playlist-url-link {
    font-size: 16px;
    color: #1a73e8;
    word-break: break-all;
    text-decoration: underline;
    transition: color 0.2s;
}

.playlist-url-link:hover {
    color: #0d47a1;
}

/* Coordinator row */
.coordinator-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 30px;
    padding: 12px 18px;
    background: #fdf3f2;
    border-left: 4px solid #7f241e;
    border-radius: 0 8px 8px 0;
    width: fit-content;
}

.coordinator-label {
    font-size: 15px;
    font-weight: 700;
    color: #444;
}

.coordinator-name {
    font-size: 15px;
    font-weight: 600;
    color: #7f241e;
    text-decoration: none;
    border-bottom: 1px dashed #7f241e;
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.coordinator-name:hover {
    color: #a63a2e;
    border-bottom-color: #a63a2e;
    text-decoration: none;
}

/* Upcoming section */
.upcoming-bytes-section {
    margin-bottom: 35px;
}

.upcoming-bytes-heading {
    font-size: 20px;
    font-weight: 700;
    color: #7f241e;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e3e3e3;
}

.upcoming-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.upcoming-card {
    border-color: #e67e22 !important;
    box-shadow: 0 2px 12px rgba(230, 126, 34, 0.15) !important;
}

/* Year Accordion */
.accordion-item {
    border: 1px solid #dee2e6;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    background-color: #f8f9fa;
    color: #7f241e;
    font-weight: 600;
    font-size: 18px;
    padding: 15px 20px;
    border: none;
}

.accordion-button:not(.collapsed) {
    background-color: #7f241e;
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(127, 36, 30, 0.25);
}

.accordion-button::after {
    filter: brightness(0.8);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}



/* CSE Bytes Grid */
.csebytes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(850px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .csebytes-grid {
        grid-template-columns: 1fr;
    }
}

/* CSE Bytes Card */
.csebytes-card {
    background: #fff;
    border: 2px solid #e3e3e3;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.csebytes-card:hover {
    border-color: #7f241e;
    box-shadow: 0 8px 25px rgba(127, 36, 30, 0.15);
    transform: translateY(-4px);
}

.csebytes-card-body {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: flex-start;
}

/* Speaker Photo */
.speaker-photo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #e3e3e3;
    transition: all 0.3s ease;
}

.csebytes-card:hover .speaker-photo {
    border-color: #7f241e;
    transform: scale(1.05);
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-photo-placeholder {
    background: linear-gradient(135deg, #7f241e 0%, #a63a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-initials {
    color: white;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Content Section */
.csebytes-content {
    flex: 1;
    min-width: 0;
}

.csebytes-date {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.csebytes-title {
    font-size: 20px;
    font-weight: 700;
    color: #7f241e;
    margin-bottom: 10px;
    line-height: 1.3;
}

.csebytes-speaker {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #555;
    font-weight: 500;
    margin-bottom: 12px;
}

.csebytes-speaker svg {
    color: #7f241e;
    flex-shrink: 0;
}

.csebytes-abstract {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
    text-align: justify;
}

.read-more-btn {
    background: linear-gradient(135deg, #7f241e 0%, #a63a2e 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(127, 36, 30, 0.2);
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #a63a2e 0%, #7f241e 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(127, 36, 30, 0.3);
}

/* YouTube Thumbnail */
.youtube-thumbnail {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.csebytes-card:hover .youtube-thumbnail {
    transform: scale(1.05);
}

.youtube-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.youtube-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    transition: all 0.3s ease;
}

.youtube-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Modal Styling */
.modal-header {
    background: linear-gradient(135deg, #7f241e 0%, #a63a2e 100%);
    color: white;
    border-bottom: none;
    padding: 20px 25px;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.modal-header .close {
    color: white;
    opacity: 1;
    text-shadow: none;
    font-size: 28px;
    font-weight: 300;
}

.modal-header .close:hover {
    opacity: 0.8;
}

.modal-body {
    padding: 25px;
}

.modal-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.modal-speaker-photo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e3e3e3;
}

.modal-speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    flex: 1;
}

.modal-details p {
    margin-bottom: 10px;
    font-size: 15px;
    color: #444;
}

.modal-details strong {
    color: #7f241e;
    font-weight: 600;
}

.modal-abstract {
    text-align: justify;
    line-height: 1.7;
    color: #444;
    font-size: 15px;
}

.modal-video {
    margin-top: 15px;
}

/* YouTube preview block inside modal */
.modal-youtube-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.modal-yt-thumb-wrap {
    display: block;
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.modal-yt-thumb-wrap:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

.modal-yt-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.modal-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.modal-yt-thumb-wrap:hover .modal-play-overlay {
    transform: translate(-50%, -50%) scale(1.12);
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.2);
}

.youtube-link:hover {
    background: linear-gradient(135deg, #CC0000 0%, #990000 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.youtube-link svg {
    flex-shrink: 0;
}

.modal-body hr {
    margin: 20px 0;
    border-top: 1px solid #dee2e6;
}

.no-items {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-main-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .page-intro-text {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .playlist-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .csebytes-card-body {
        flex-direction: column;
    }

    .speaker-photo {
        width: 100px;
        height: 100px;
        align-self: center;
    }

    .youtube-thumbnail {
        width: 100%;
        height: 200px;
        margin-top: 15px;
    }

    .modal-info {
        flex-direction: column;
        align-items: center;
    }

    .modal-speaker-photo {
        width: 120px;
        height: 120px;
    }


}

@media (max-width: 576px) {
    .page-main-title {
        font-size: 28px;
    }

    .page-intro-text {
        font-size: 15px;
    }

    .playlist-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .playlist-btn svg {
        width: 20px;
        height: 20px;
    }

    .csebytes-card-body {
        padding: 15px;
    }

    .csebytes-title {
        font-size: 18px;
    }

    .speaker-photo {
        width: 80px;
        height: 80px;
    }

    .youtube-thumbnail {
        height: 180px;
    }
}
/* Caption below thumbnail in modal */
.modal-yt-caption {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: #555;
    font-style: italic;
}