/*
Theme Name: Vidya247
Theme URI: https://vidya247.com
Author: Vidya247 Team
Author URI: https://vidya247.com
Description: A modern education news and updates WordPress theme for South India education hub. Perfect for educational news portals, exam updates, and scholarship information.
Version: 1.0.0
License: GPL v2 or later
Text Domain: vidya247
Tags: education, news, blog, two-columns, right-sidebar, custom-logo, custom-background, featured-images
*/

/* Import main styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

:root {
    --primary-orange: #f97316;
    --primary-orange-dark: #ea580c;
    --primary-red: #e63946;
    --primary-green: #22c55e;
    --primary-blue: #3b82f6;
    --primary-purple: #a855f7;
    --dark-text: #1a2c3e;
    --light-text: #6c86a3;
    --bg-light: #f4f7fc;
    --bg-white: #ffffff;
    --border-color: #eef2f6;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fc 0%, #eef2f8 100%);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--dark-text);
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
.site-header {
    background: var(--bg-white);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-orange), var(--primary-red), var(--primary-green), var(--primary-blue));
    border-image-slice: 1;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.site-title a {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red), var(--primary-green));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-description {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: 0.2rem;
}

.live-badge {
    background: linear-gradient(135deg, var(--primary-red), #d62828);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 60px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 6px 14px rgba(230, 57, 70, 0.3);
}

/* Navigation */
.main-navigation {
    margin-top: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: var(--primary-orange);
}

/* Hero Highlights Section */
.highlights-section {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    border-radius: 2rem;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.highlight-chip {
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
    cursor: pointer;
    background: #ffedd5;
    color: #b45309;
    border-left: 4px solid #f59e0b;
}

.highlight-chip:nth-child(2) { background: #dcfce7; color: #15803d; border-left-color: #22c55e; }
.highlight-chip:nth-child(3) { background: #e0f2fe; color: #0369a1; border-left-color: #0ea5e9; }
.highlight-chip:nth-child(4) { background: #fae8ff; color: #a21caf; border-left-color: #d946ef; }

.highlight-chip:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 1.8rem;
    margin: 2rem 0;
}

/* Card Styles */
.card {
    background: var(--bg-white);
    border-radius: 1.8rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 2px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fff9ef, #ffffff);
}

.card-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.card-header h2 i {
    color: var(--primary-orange);
}

.update-badge {
    background: #eef2ff;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #2c5282;
}

/* Updates List */
.updates-list {
    padding: 0;
}

.update-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f2f8;
    cursor: pointer;
    transition: all 0.2s;
}

.update-item:hover {
    background: #fffbf5;
    transform: translateX(4px);
}

.update-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f3b4c;
    margin-bottom: 0.3rem;
}

.update-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    color: var(--light-text);
    margin-top: 0.4rem;
}

.time-badge {
    background: #f1f5f9;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    font-weight: 500;
}

/* Tabs */
.tabs-container {
    display: flex;
    background: #fcfdff;
    padding: 0 1.2rem;
    gap: 0.2rem;
    border-bottom: 1px solid #e9edf2;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.9rem 1.3rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 40px 40px 0 0;
    transition: all 0.2s;
    color: #5b6e8c;
}

.tab-btn.active {
    background: #fee9e6;
    color: #c2410c;
    border-bottom: 3px solid var(--primary-orange);
}

.tab-pane {
    display: none;
    animation: fadeSlide 0.25s ease;
}

.tab-pane.active-pane {
    display: block;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* State Items */
.state-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f3fa;
    cursor: pointer;
    transition: all 0.2s;
}

.state-item:hover {
    background: #fefcf7;
}

.state-title {
    font-weight: 800;
    font-size: 0.92rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.state-name {
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    font-size: 0.65rem;
    font-weight: 700;
}

.state-name.ap {
    background: #ffede3;
    color: #c2410c;
}

.state-name.ts {
    background: #d9effa;
    color: #0369a1;
}

.state-name.ka {
    background: #dcfce7;
    color: #166534;
}

.state-desc {
    font-size: 0.85rem;
    color: #2c445c;
    margin: 0.4rem 0 0.2rem;
    line-height: 1.4;
}

.state-date {
    font-size: 0.7rem;
    color: #6f8fae;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

/* Extra Row */
.extra-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.8rem 0;
    justify-content: space-between;
}

.extra-chip {
    flex: 1;
    min-width: 180px;
    background: white;
    border-radius: 1.2rem;
    padding: 0.9rem 1.2rem;
    border-left: 6px solid;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.extra-chip:nth-child(1) {
    border-left-color: #f59e0b;
    background: #fffaf0;
}

.extra-chip:nth-child(2) {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.extra-chip:nth-child(3) {
    border-left-color: #ec489a;
    background: #fdf2f8;
}

.extra-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    max-width: 550px;
    width: 90%;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
    animation: modalPop 0.3s ease forwards;
}

@keyframes modalPop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    padding: 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.8rem;
}

/* Footer */
.site-footer {
    background: #1e2a3e;
    color: #cbd5e1;
    margin-top: 3rem;
    padding: 3rem 0 1.5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.2s;
}

.pagination .current {
    background: var(--primary-orange);
    color: white;
}

.pagination a:hover {
    background: var(--primary-orange);
    color: white;
}

/* Responsive */
@media (max-width: 800px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .tab-btn {
        padding: 0.7rem 0.9rem;
        font-size: 0.8rem;
    }
    
    .highlights-section {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}