@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

#live-embed {
    border-radius: 25px 25px 0 0;
    width: 60%;
    aspect-ratio: 16/9;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

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

.header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.header p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 42rem;
    margin: 0 auto;
}

.stats-grid {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    flex-wrap: wrap;
}

.stat-card {
    background-color: #fefefe;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(1);
    transition: transform 0.3s ease;
    border: 2px solid red;
    box-shadow: 0 0 8px red;
    width: 180px;
    flex-shrink: 0;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.05);
}

.stat-over {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.25rem;
    text-transform: lowercase;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: red;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
    margin-top: 1.5rem;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: nowrap;
}

.action-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    flex: 1;
    white-space: nowrap;
    height: auto;
}

.btn-schedule {
    background-color: white;
    color: red;
    border: 2px solid red;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.btn-schedule:hover {
    background-color: red;
    color: white;
    transform: translateY(-2px);
    font-style: italic;
    text-decoration: underline;
}

.btn-watch {
    background-color: red;
    color: white;
    border: 2px solid red;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.btn-arrow-left {
    position: absolute;
    left: 12px;
}

.btn-arrow-right {
    position: absolute;
    right: 12px;
}

.btn-text {
    flex: 1;
    text-align: center;
}

.btn-watch:hover {
    background-color: white;
    color: red;
    border: 2px solid red;
    transform: translateY(-2px);
    font-style: italic;
    text-decoration: underline;
}

.btn-partner {
    background-color: white;
    color: red;
    border: 2px solid red;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.btn-partner:hover {
    background-color: red;
    color: white;
    transform: translateY(-2px);
    font-style: italic;
    text-decoration: underline;
}

.most-popular {
    background-color: #f8f9fa;
    border-radius: 0 0 25px 25px;
    padding: 15px;
    width: 60%;
    margin: 0 auto;
    margin-bottom: 20px;
    text-align: left;
    font-weight: bold;
    color: black;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {

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

    .header p {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .button-container {
        flex-direction: column;
        gap: 10px;
        margin-top: 2rem;
    }

    .action-btn {
        width: 100%;
        max-width: none;
    }

    #live-embed {
        width: 100%;
        border-radius: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .most-popular {
        width: 100%;
        border-radius: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

body {
    background-color: rgb(226, 226, 226);
    margin: 0;
    font-family: Arial, sans-serif;
}

#scores {
    width: 100%;
    height: 125px;
    position: inherit;
}

.alert {
  padding: 20px;
  margin: auto;
  width: 80%;
  background-color: #ffbb00;
  color: black;
  border: 2px solid black;
  border-radius: 14px;
  margin-bottom: 15px;
}

.closebtn {
  margin-left: 15px;
  color: black;
  font-weight: bold;
  float: right;
  font-size: 32px;
  line-height: auto;
  cursor: pointer;
  transition: 0.3s;
}

.closebtn:hover {
  color: black;
}

/* Locator Bar */
#Locator-bar {
    background-color: rgb(43, 44, 45); 
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 40px;
    width: 100%;
    position: absolute; 
    overflow: visible; /* Ensure the slant is fully visible */
    z-index: 1;
    padding-left: 100px; /* Move the entire content of the Locator bar to the right */
}

/* Logo Container (Holds the "CSN" text and slant) */
.logo-container {
    position: relative;
    z-index: 2;
    margin-left: 0px; /* Space between logo and buttons */
    height: 100%;
    display: flex;
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
}

/* CSN Text */
.logo {
    color: white;
    z-index: 3; 
    position: relative; 
    width: 100px;
    height: 100px;
    left: -52px;
}

/* Red slanted background behind "CSN" text but in front of Locator Bar */
.logo-container::before {
    content: '';
    position: absolute;
    top: 0; /* Start the slant at the very top */
    left: -75%; /* Push slant to the right with a 75% margin */
    width: 125%; /* Adjusted width */
    height: 100%; /* Full height */
    background-color: #d00;
    transform: skewX(-28deg); /* Apply slant effect */
    z-index: 0;
    border-left:10px solid #b40000;
    border-right: 10px solid #b40000;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: -100px;
    z-index: 10; /* Ensure buttons are above background */
}

.nav-btn {
    background-color: transparent;
    color: white; /* Button text color is white */
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: normal;
    border: none; /* Removed border from buttons */
}

.nav-btn:hover {
    background-color: transparent;
    color: red; /* Button text turns red on hover */
    text-decoration: underline;
    font-style: italic;
}

/* Dropdown Menu */
.dropdown {
    position: relative; /* To position the dropdown content */
    z-index: 999; /* Make sure dropdown container stays on top */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: black;
    min-width: 160px;
    z-index: 9999; /* Ensure dropdown content appears on top */
    top: 100%; /* Position dropdown directly below the "INFORMATION" button */
    left: 0;
    margin-top: 0px; /* Add a small margin to prevent it from touching the button */
}

.dropdown:hover .dropdown-content {
    display: block; /* Make the dropdown content visible on hover */
}

.dropdown-btn {
    background-color: transparent;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    font-weight: normal;
    border: none;
}

.dropdown-btn:hover {
    background-color: transparent;
    color: red;
    text-decoration: underline;
    font-style: italic;
}

/* Reduced gap version */
.content-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 15px;
    gap: 15px; /* Tighten spacing */
}

.left-sidebar, .right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 12%;
}

#body-L, #body-R {
    width: 100%;
    background-color: white;
    border-radius: 15px;
    padding: 0px;
    text-align: center;
    margin: 0;
}

#body-L {
    margin-top: 75px;
}

#body-L2 {
    width: 100%;
    background-color: white;
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    margin: 0;
}

#body-R2 {
    width: 100%;
    background-color: white;
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    margin: 0;
}

#body-R {
    width: 100%;
    background-color: white;
    border-radius: 15px;
    padding: 0px;
    text-align: center;
    margin-top: 75px;
    margin-left: 0;
    margin-right: 0;
}

#body-L2, #body-R2 {
    width: 100%; /* Ensure this is set to full width */
    padding: 0; /* Remove padding to avoid space */
}

#video-thumbnail-container {
    width: 100%; /* Set to full width */
    border-radius: 10px;
    overflow: hidden;
}

#featured-thumbnail {
    width: 100%; /* Make thumbnail cover the full width */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensure the image covers the area */
}

.most-popular, .most-recent {
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px; /* Match the thumbnail's bottom corners */
    padding: 10px;
    text-align: left; /* Center the text */
    font-weight: bold; /* Bold text */
    color: black;
    font-size: 12px;
    margin-top: 10px; /* Space between thumbnail and text */
    width: 100%; /* Match the width */
}

#most-popular-link, #most-recent-link {
    text-decoration: none;
    color: black;
}

#most-popular-link:hover, #most-recent-link:hover {
    text-decoration: underline;
    color: red;
    font-style: italic;
}

#body {
    width: 50%;
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    margin: 0; /* No margin around center */
}


#body-L {
    margin-left: 0;
}

#body-R {
    margin-right: 0;
}

@media only screen and (max-width: 1085px) {
    .content-container {
        flex-direction: column;
        gap: 10px;
    }

    .left-sidebar {
        width: 80%;
    }

    #body, #body-R {
        width: 80%;
    }
}

.hamburger {
    position: fixed;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 30px;
    height: 4px;
    background: white;
    transition: 0.3s;
}

.sidebar {
    position: fixed;
    top: 40px;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 10);
    display: flex;
    align-items: top;
    transition: 0s;
    overflow: scroll;
    z-index: 99999;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
}

.sidebar ul li {
    border-bottom: 1px solid gray;
    line-height: 70px;
}

.sidebar ul li a {
    color: black;
    text-decoration: none;
    font-size: 30px;
    transition: 0s;
    padding: 15px;
}

.sidebar ul li a:hover {
    color: red;
    text-decoration: underline;
    font-style: italic;
}

.sidebar.active {
    left: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 7px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.social-media {
    padding: 30px;
    text-align: right;
}

.social-media a {
    color: black;
    font-size: 15px;
    margin: 0 5px;
    text-decoration: none;
}

.social-media a i {
    line-height: 20px;
    font-size: 15px;
}

.social-media a:hover {
    color: red;
    text-decoration: underline;
    font-style: italic;
}

.mobile-social-media {
    display: none;
}

.mobile-social-media button {
    margin-top: 35px;
    margin: 10px;
    color: black;
    background: white;
    border: 2px solid red;
    border-radius: 10px;
    padding: 8px;
}

.mobile-social-media, a {
    color: black;
}

@media only screen and (max-width: 1085px) {
    body {
        margin: 0px;
    }

    .nav-links {
        display: none;
    }

    .logo {
        display: none;
    }

    .logo-container {
        width: 12%;
        content: '';
        position: absolute;
        top: 0;
        left: 5%;
    }

    #Locator-bar {
        position: fixed;
        top: 0;
    }

    #scores {
        display: none;
    }

    #body {
        position: relative;
        top: 50px !important;
        margin: auto;
        width: 95%;
    }

    #body .alert {
        width: 85%;
    }

    .looping-words {
        display: none;
    }

    .left-sidebar, #body-R, #body-R2 {
        display: none;
    }

    .mobile-social-media {
        display: block;
    }
}

@media only screen and (min-width: 1086px) {
    #menuToggle {
        display: none;
    }
    #body {
        margin-top: 75px !important;
    }
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-icon {
    font-size: 28px !important;
    color: #fff;
    cursor: pointer;
    padding: 10px;
}

.user-menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    right: 0;
    min-width: 120px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 6px;
    overflow: hidden;
}

.user-menu a {
    color: black;
    padding: 10px 12px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.user-menu a:hover {
    background-color: #f1f1f1;
}

.user-dropdown:hover .user-menu {
    display: block;
}

.nav-user-icon {
    margin-left: auto;
    display: flex;
    align-items: center;
}


#footer {
    background-color: white;
    color: black;
    padding: 15px;
    margin-top: 50px;
}

/* Audio Player Styles - Modern Design */
.audio-player-container {
    background: linear-gradient(145deg, red 0%, darkred 100%);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.audio-player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(239, 68, 68, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.audio-player-header {
    text-align: left;
    margin-bottom: 15px;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    box-shadow: 
        0 4px 12px rgba(220, 38, 38, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.audio-player-header::before {
    content: '🎙️';
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 1.4rem;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    padding: 6px 8px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-player-header.csn-impact-award::before {
    content: '🏆';
}

.audio-player-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: 0.5px;
    margin-left: 55px;
    position: relative;
}

.header-description {
    margin: 8px 0 0 55px;
    font-size: 0.9rem;
    color: #000;
    font-weight: 400;
    line-height: 1.3;
    position: relative;
}



.custom-audio-player {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 16px rgba(220, 38, 38, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: linear-gradient(145deg, red, darkred);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-size: 1.2em;
    box-shadow: 
        0 6px 12px rgba(204, 0, 0, 0.4),
        0 3px 6px rgba(139, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.control-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 16px rgba(204, 0, 0, 0.5),
        0 4px 8px rgba(139, 0, 0, 0.4);
}

.control-btn:active {
    transform: translateY(0) scale(0.98);
}

.time-info {
    color: black;
    font-family: 'Inter', sans-serif;
    font-size: 0.95em;
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-container {
    flex-grow: 1;
    margin: 0 15px;
    position: relative;
}

.progress-bar {
    position: relative;
    height: 8px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar:hover {
    height: 10px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(220, 38, 38, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, red, darkred);
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

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

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

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 16px;
    height: 16px;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border: 3px solid #dc2626;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(220, 38, 38, 0.4),
        0 0 0 0 rgba(220, 38, 38, 0.4);
}

.progress-bar:hover .progress-handle {
    opacity: 1;
    box-shadow: 
        0 6px 16px rgba(220, 38, 38, 0.5),
        0 0 0 4px rgba(220, 38, 38, 0.2);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-slider {
    width: 90px;
}

.volume-slider input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, #dc2626, #991b1b);
    cursor: pointer;
    box-shadow: 
        0 4px 8px rgba(220, 38, 38, 0.4),
        0 2px 4px rgba(153, 27, 27, 0.3);
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}.volume-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 
        0 6px 12px rgba(220, 38, 38, 0.5),
        0 0 0 4px rgba(220, 38, 38, 0.2);
}

.volume-slider input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, #dc2626, #991b1b);
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 
        0 4px 8px rgba(220, 38, 38, 0.4),
        0 2px 4px rgba(153, 27, 27, 0.3);
    transition: all 0.3s ease;
}

.volume-slider input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .audio-player-container {
        padding: 10px;
        margin: 15px 0;
        border-radius: 10px;
    }

    .audio-player-header h3 {
        font-size: 1.2rem;
    }

    .custom-audio-player {
        padding: 12px;
        border-radius: 8px;
    }

    .audio-controls {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1em;
    }

    .volume-container {
        display: none;
    }

    .progress-container {
        order: 2;
        flex-basis: 100%;
        margin: 15px 0 5px 0;
    }

    .time-info {
        font-size: 0.85em;
    }

    .time-info:first-of-type::after {
        content: " /";
        color: #6366f1;
        margin-left: 2px;
        opacity: 0.7;
    }
}

/* Favorite Items Styles */
.favorite-item {
    margin: 10px 0;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.favorite-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.favorite-item a {
    color: black;
    text-decoration: none;
}

.favorite-item a:hover {
    color: red;
    text-decoration: underline;
    font-style: italic;
}

/* Search Container Styles */
#searchContainer {
    max-width: 300px;
    margin: 0;
    position: relative;
    margin-left: auto;
    margin-right: 20px;
}

#schoolSearch {
    width: 300px;
    height: 30px;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.school-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.school-item:hover {
    background-color: #f5f5f5;
}

.school-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 15px;
}

.school-info {
    flex-grow: 1;
}

.school-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.school-location {
    color: #666;
    font-size: 14px;
}

/* Video Group Styles */
.video-group {
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

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

.video-thumbnail-container {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
}

.video-group:hover .video-thumbnail-container {
    filter: brightness(1.1);
}

.featured-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.video-group:hover .featured-thumbnail {
    transform: scale(1.05);
}

.video-title {
    padding: 10px;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, font-weight 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

.video-group:hover .video-title {
    background-color: rgba(255, 255, 255, 1);
    color: #dc2626;
    font-weight: bold;
    font-style: italic;
    text-decoration: underline;
}

.video-title a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-group:hover .video-title a {
    color: inherit;
}

/* Poll Modal Styles */
#pollModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.poll-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.poll-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.poll-close:hover,
.poll-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.poll-question {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.poll-option {
    padding: 12px;
    margin-bottom: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.poll-option:hover {
    background-color: #e0e0e0;
}

.poll-option.selected {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.poll-submit-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1em;
    display: block;
    margin: 20px auto;
}

.poll-submit-btn:hover {
    background-color: #218838;
}

.poll-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.poll-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
}

.poll-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
}

.poll-results {
    margin-top: 20px;
}

.poll-result-option {
    margin-bottom: 10px;
}

.poll-result-bar {
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    height: 20px;
    text-align: left;
}

.poll-result-fill {
    background-color: #007bff;
    color: white;
    padding: 2px 5px;
    height: 100%;
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 3px;
}

.poll-message {
    text-align: center;
    padding: 15px;
    color: #555;
    font-style: italic;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 15px;
}

.poll-custom-answer-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.custom-answer-option {
    padding: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.custom-answer-option input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    background-color: white;
}

.custom-answer-option input:focus {
    outline: none;
    border-color: #007bff;
}

.custom-answer-option.selected {
    background-color: #e3f2fd;
    border-color: #007bff;
}

/* Recent Story Styles */
.recent-story-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recent-story-item {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
}

.recent-story-link:hover .recent-story-item {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recent-story-image {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 8px;
}

.recent-story-title {
    color: black;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.recent-story-link:hover .recent-story-title {
    color: red;
    text-decoration: underline;
    font-style: italic;
}

.recent-story-date {
    font-size: 12px;
    color: #666;
    font-style: italic;
}