/* General Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5; /* Light grey background */
    color: #333;
    line-height: 1.6;
    padding-bottom: 70px; /* Space for bottom nav on index */
}

body.auth-page, body.player-page {
    padding-bottom: 0; /* No bottom nav on these pages */
}

h1, h2, h3, h4 { margin-bottom: 0.7em; color: #1c3d5a; /* Dark blue */ }
h1 { font-size: 1.8em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.3em; }
h4 { font-size: 1.1em; }

p { margin-bottom: 1em; color: #555; }
a { text-decoration: none; color: #007bff; /* Standard link blue */ }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; padding: 10px 15px; border-radius: 5px; font-size: 1em; background-color: transparent; }

/* Header (index.html) */
#main-header {
    background-color: #ffffff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 1000;
}
.logo { font-size: 1.6em; font-weight: bold; color: #1c3d5a; }
.auth-links a, .auth-links button, .auth-links span {
    margin-left: 15px;
    color: #007bff;
    font-size: 0.9em;
}
.auth-links i { margin-right: 4px; }
.auth-links button { background: none; border: none; color: #dc3545; cursor: pointer; } /* Logout button */
#user-greeting { color: #333; font-weight: bold;}

/* Slider (index.html) */
#home-slider {
    position: relative;
    width: 100%;
    max-height: 400px; /* Adjust as needed */
    overflow: hidden;
    margin-bottom: 20px; /* Space below slider */
}
.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    min-width: 100%;
    position: relative;
}
.slide img {
    width: 100%;
    height: 400px; /* Match max-height */
    object-fit: cover; /* Cover the area */
    display: block;
}
.slide-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    max-width: 70%;
}
.slide-title {
    font-size: 1.6em;
    margin-bottom: 5px;
    color: #fff;
}
.slide-description {
    font-size: 1em;
    margin-bottom: 10px;
    color: #eee;
}
.slide-link {
    display: inline-block;
    background-color: #ff6b6b; /* Coral */
    color: white;
    padding: 8px 15px;
    border-radius: 3px;
    font-weight: bold;
    text-decoration: none;
}
.slide-link:hover { background-color: #e65a5a; text-decoration: none; }

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 1.5em;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}
.slider-control.prev { left: 15px; }
.slider-control.next { right: 15px; }
.slider-control:hover { background-color: rgba(0, 0, 0, 0.7); }

/* Views & Navigation (index.html) */
.view { display: none; padding: 15px; animation: fadeIn 0.5s; }
.view.active-view { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

#bottom-nav { /* Styles from previous answers */
    position: fixed; bottom: 0; left: 0; width: 100%; height: 60px;
    background-color: #ffffff; box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    display: flex; justify-content: space-around; align-items: center; z-index: 1000;
}
.nav-button { /* Styles from previous answers */
    color: #888; display: flex; flex-direction: column; align-items: center;
    font-size: 0.7em; padding: 5px; flex-grow: 1;
}
.nav-button i { font-size: 1.5em; margin-bottom: 3px; }
.nav-button.active { color: #ff6b6b; }
.back-button { /* Styles from previous answers */
    background: none; border: none; font-size: 1.1em; color: #1a535c;
    margin-bottom: 15px; cursor: pointer; padding: 5px;
}
.back-button i { margin-right: 5px; }

/* Batch/Section/Content Cards (Mostly from previous answers) */
.batch-list, .section-list, .content-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.batch-card, .section-card, .content-item { background-color: #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease-in-out; }
.batch-card:hover, .section-card:hover, .content-item:hover { transform: translateY(-5px); }
.card-image img, .section-image img, .content-image img { width: 100%; height: 180px; object-fit: cover; }
.card-content, .section-content, .content-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.card-title, .section-title, .content-title { font-size: 1.3em; margin-bottom: 10px; color: #1a535c; }
.card-description, .content-description { font-size: 0.9em; color: #666; flex-grow: 1; margin-bottom: 15px; }
.card-actions, .content-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 10px; /* Ensure space above actions */}
.buy-now-button, .view-content-button { background-color: #ff6b6b; color: white; padding: 10px 20px; border-radius: 20px; text-align: center; font-weight: bold; transition: background-color 0.2s ease; flex-shrink: 0; }
.buy-now-button:hover, .view-content-button:hover { background-color: #e65a5a; }
.validity { font-size: 0.8em; color: #28a745; /* Bootstrap success green */ font-weight: bold; white-space: nowrap; margin-right: auto; /* Push button to the right */}
.validity.expired, .expired-text { color: #dc3545; /* Bootstrap danger red */ }
.section-card { cursor: pointer; }
.play-button { color: #ff6b6b; font-size: 2.5em; padding: 0; line-height: 1; }
.play-button:hover { color: #e65a5a; }
.download-button { background-color: #4ecdc4; color: white; font-size: 0.8em; padding: 8px 12px; border-radius: 15px; display: inline-flex; align-items: center; transition: background-color 0.2s ease; }
.download-button i { margin-right: 5px; }
.download-button:hover { background-color: #45b7ad; }
.empty-message { text-align: center; color: #888; margin-top: 30px; font-style: italic; grid-column: 1 / -1; }

/* Auth Pages (login.html, register.html) */
.auth-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color: #e9ecef; }
.auth-container { background-color: #fff; padding: 30px 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); width: 100%; max-width: 450px; text-align: center; position: relative; }
.back-to-home { position: absolute; top: 15px; left: 15px; color: #6c757d; font-size: 0.9em; }
.back-to-home i { margin-right: 4px; }
.auth-container h1 { font-size: 1.8em; margin-bottom: 10px; color: #1c3d5a; }
.auth-container h1 i { margin-right: 8px; color: #007bff; }
.auth-description { color: #6c757d; margin-bottom: 25px; font-size: 1em; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #495057; font-size: 0.9em; }
.form-group label i { margin-right: 6px; color: #adb5bd; width: 1em; /* Align icons */}
.form-group input { width: 100%; padding: 12px 15px; border: 1px solid #ced4da; border-radius: 4px; font-size: 1em; }
.form-group input:focus { border-color: #80bdff; outline: 0; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
.auth-button { width: 100%; background-color: #007bff; color: white; padding: 12px; font-size: 1.1em; font-weight: bold; border-radius: 4px; transition: background-color 0.2s ease; border: none; }
.auth-button:hover { background-color: #0056b3; }
.forgot-password { text-align: right; font-size: 0.85em; margin-top: 10px; }
.social-login { margin-top: 25px; padding-top: 20px; border-top: 1px solid #e9ecef; }
.social-login p { margin-bottom: 15px; color: #6c757d; font-size: 0.9em; }
.social-button { width: 100%; padding: 10px; margin-bottom: 10px; border-radius: 4px; font-weight: bold; display: flex; align-items: center; justify-content: center; border: none; }
.social-button i { margin-right: 10px; font-size: 1.2em; }
.social-button.facebook { background-color: #3b5998; color: white; }
.social-button.google { background-color: #db4437; color: white; }
.social-button:hover { opacity: 0.9; }
.auth-switch { margin-top: 25px; font-size: 0.95em; color: #6c757d; }

/* Video Player Page (video-player.html) */
.player-page { background-color: #fff; } /* White background for focus */
.player-container { max-width: 900px; margin: 20px auto; padding: 20px; background-color: #fff; /* Could add subtle shadow later */ }
#jwplayer-container { width: 100%; aspect-ratio: 16 / 9; background-color: #000; margin-bottom: 20px; border-radius: 5px; overflow: hidden; }
.video-meta { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.video-meta h2, .comments-section-player h2 { border-bottom: 2px solid #eee; padding-bottom: 8px; margin-bottom: 15px; font-size: 1.4em; }
.video-meta h2 i, .comments-section-player h2 i { margin-right: 8px; color: #007bff; }
#video-title { margin-bottom: 20px; text-align: center; }
#video-description { font-size: 1em; color: #444; }
.video-downloads-section .download-button { margin-right: 10px; margin-bottom: 10px; }
.no-downloads { color: #888; font-style: italic; }

/* Comments Section on Player Page */
.comments-section-player { margin-top: 30px; }
.existing-comments { margin-bottom: 25px; }
.comment { background-color: #f8f9fa; padding: 12px 15px; border-radius: 5px; margin-bottom: 12px; border-left: 3px solid #007bff; }
.comment p { margin: 0 0 5px 0; font-size: 0.95em; }
.comment p strong { color: #1c3d5a; }
.comment-time { font-size: 0.8em; color: #888; display: block; text-align: right; }
.add-comment textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; min-height: 80px; margin-bottom: 10px; font-family: inherit; font-size: 1em; resize: vertical; }
.add-comment button { background-color: #007bff; color: white; padding: 10px 20px; border-radius: 4px; transition: background-color 0.2s ease; float: right; }
.add-comment button i { margin-right: 5px; }
.add-comment button:hover { background-color: #0056b3; }
.add-comment::after { content: ""; display: table; clear: both; } /* Clear float */