/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #CC0000;
    --accent-color: #003366;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-color: #212529;
    --white: #ffffff;
    --font-family: "Times New Roman", Times, serif;
    --font-family-sans: Arial, Helvetica, sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.date-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 2px solid var(--secondary-color);
}

.date-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.logo-header {
    text-align: center;
    margin-bottom: 20px;
}

.site-title {
    font-family: var(--font-family);
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.site-tagline {
    font-family: var(--font-family);
    font-size: 1.2rem;
    color: var(--dark-gray);
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* Navigation */
.main-nav {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    flex: 1;
}

.nav-menu a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 15px 20px;
    text-align: center;
    font-family: var(--font-family-sans);
    font-size: 16px;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

.nav-menu a i {
    margin-right: 8px;
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.btn-login,
.btn-register,
.btn-admin {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-login {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-register {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 1px solid var(--secondary-color);
}

.btn-admin {
    background-color: var(--accent-color);
    color: var(--white);
    border: 1px solid var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* Main Content */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 30px 0;
}

.section-title {
    font-family: var(--font-family);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.section-title i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Video Player */
.video-player-container {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.video-wrapper {
    position: relative;
    background-color: #000;
}

.video-js {
    width: 100%;
    height: 500px;
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 20px;
}

.video-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.video-meta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 14px;
}

.video-meta i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background-color: var(--light-gray);
    border-top: 1px solid var(--medium-gray);
}

.btn-action,
.btn-download {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-family-sans);
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-action {
    background-color: var(--medium-gray);
    color: var(--text-color);
}

.btn-download {
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
}

.btn-action:hover {
    background-color: var(--dark-gray);
    color: var(--white);
}

.btn-download:hover {
    background-color: #990000;
    color: var(--white);
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px;
    margin: 20px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-label {
    background-color: var(--primary-color);
    padding: 5px 15px;
    margin-right: 15px;
    font-weight: bold;
    border-radius: 3px;
    white-space: nowrap;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-content span {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* News Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.news-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.news-card-content {
    padding: 20px;
}

.news-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-content h3 a:hover {
    color: var(--secondary-color);
}

.news-card-content p {
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-size: 14px;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    border-top: 1px solid var(--medium-gray);
    padding-top: 10px;
}

.news-card-meta i {
    margin-right: 5px;
}

.news-card-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-read {
    padding: 8px 15px;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-read:hover {
    background-color: #002244;
}

.btn-download-small {
    padding: 8px 15px;
    background-color: var(--medium-gray);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.btn-download-small:hover {
    background-color: var(--dark-gray);
    color: var(--white);
}

/* Sidebar */
.sidebar-title {
    font-family: var(--font-family);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--medium-gray);
}

.sidebar-ad {
    margin-bottom: 30px;
}

.ad-placeholder {
    background-color: var(--light-gray);
    border: 2px dashed var(--medium-gray);
    padding: 20px;
    text-align: center;
    color: #666;
    border-radius: 4px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-placeholder span {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.vertical-ad {
    min-height: 600px;
}

/* Video Playlist */
.playlist-items {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.playlist-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid var(--medium-gray);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.playlist-item:hover {
    background-color: var(--light-gray);
}

.playlist-thumbnail {
    position: relative;
    width: 120px;
    height: 70px;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.playlist-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.7);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.video-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0,0,0,0.8);
    color: var(--white);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}

.playlist-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.playlist-info p {
    font-size: 12px;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.video-meta-small {
    font-size: 11px;
    color: #666;
}

/* Classifieds Preview */
.classifieds-preview {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.classified-items {
    margin-bottom: 20px;
}

.classified-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--medium-gray);
}

.classified-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.classified-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.classified-price {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

.classified-actions {
    display: flex;
    gap: 5px;
}

.btn-call,
.btn-message {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-call {
    background-color: #28a745;
    color: var(--white);
}

.btn-message {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-view-all {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--light-gray);
    color: var(--text-color);
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-view-all:hover {
    background-color: var(--medium-gray);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-family: var(--font-family);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.footer-column p {
    margin-bottom: 15px;
    font-size: 14px;
    color: #ccc;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.footer-column i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #999;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--medium-gray);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}