/* Main CSS for Telangana Live TV */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background-color: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.header-info {
    display: flex;
    gap: 30px;
    align-items: center;
    font-size: 14px;
}

.header-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.header-info a:hover {
    color: #ff6b35;
}

/* Navigation Styles */
nav {
    background-color: #1a1a1a;
    padding: 0;
    position: sticky;
    top: 80px;
    z-index: 99;
}

nav ul {
    list-style: none;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul li {
    flex: 1;
    text-align: center;
}

nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 10px;
    transition: background-color 0.3s;
    font-weight: 500;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #ff6b35;
    color: white;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Slider/Featured Section */
.featured-section {
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-content {
    padding: 20px;
}

.featured-content h2 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 24px;
}

.featured-content p {
    color: #666;
    line-height: 1.8;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #e0e0e0;
}

.news-card-content {
    padding: 15px;
}

.news-card-category {
    display: inline-block;
    background-color: #ff6b35;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 18px;
    color: #1e3c72;
    margin: 10px 0;
    line-height: 1.4;
}

.news-card-date {
    font-size: 12px;
    color: #999;
}

.read-more {
    display: inline-block;
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: color 0.3s;
}

.read-more:hover {
    color: #1e3c72;
}

/* Category Section */
.category-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-section h2 {
    color: #1e3c72;
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 3px solid #ff6b35;
    padding-bottom: 10px;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p, 
.footer-section a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 8px;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #ff6b35;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 30px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li {
        flex: 0 0 50%;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .header-info {
        flex-direction: column;
        gap: 10px;
        font-size: 12px;
    }
}

/* Page Title */
.page-title {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 10px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #ff6b35;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e3c72;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn {
    background-color: #ff6b35;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e55a2a;
}

.btn-primary {
    background-color: #1e3c72;
}

.btn-primary:hover {
    background-color: #152b4e;
}
