/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --politics-color: #3498db;
    --elections-color: #9b59b6;
    --international-color: #1abc9c;
    --economy-color: #f39c12;
    --policy-color: #e74c3c;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Breaking News Ticker */
.breaking-news {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.breaking-label {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px 15px;
    font-weight: 700;
    margin-right: 20px;
    white-space: nowrap;
}

.ticker-container {
    flex: 1;
    overflow: hidden;
}

.ticker {
    display: flex;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    padding: 0 30px;
    white-space: nowrap;
}

.current-time {
    margin-left: 20px;
    padding: 5px 15px;
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    white-space: nowrap;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 15px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: var(--secondary-color);
}

.btn-subscribe {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-left: 15px;
}

.btn-subscribe:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}
.hero-content{
    color: white;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero-bg img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
}

.hero .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px #000;
}

.hero h1 span {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.author {
    display: flex;
    align-items: center;
}

.author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.author p {
    margin: 0;
    font-weight: 600;
}

.author span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.meta-info span {
    margin-left: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-info i {
    margin-right: 5px;
}

.btn-read {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-read:hover {
    background-color: #1a252f;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.hero-sidebar {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.hero-sidebar h3 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.story-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.story-item:last-child {
    border-bottom: none;
}

.story-category {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.story-category.politics {
    background-color: var(--politics-color);
}

.story-category.elections {
    background-color: var(--elections-color);
}

.story-category.international {
    background-color: var(--international-color);
}

.story-category.economy {
    background-color: var(--economy-color);
}

.story-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.story-item span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.scroll-indicator {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    margin: 0 auto;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

/* Live Updates */
.live-updates {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
}

.live-updates .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.live-updates h2 {
    color: white;
}

.live-updates p {
    color: rgba(255, 255, 255, 0.8);
}

.live-feed {
    max-width: 800px;
    margin: 0 auto;
    border-left: 3px solid var(--secondary-color);
    padding-left: 30px;
}

.live-item {
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

.live-item:before {
    content: '';
    position: absolute;
    left: -33px;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.live-time {
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.live-content h4 {
    margin-bottom: 5px;
}

.live-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.live-tag {
    display: inline-block;
    background-color: var(--accent-color);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.live-tag i {
    font-size: 0.6rem;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

/* Latest News */
.latest-news {
    padding: 100px 0;
    background-color: white;
}

.section-header {
    margin-bottom: 40px;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cat-btn {
    padding: 8px 20px;
    background-color: #f8f9fa;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cat-btn.active,
.cat-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.news-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
}

.news-card.featured .news-image {
    height: 100%;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.news-category.politics {
    background-color: var(--politics-color);
}

.news-category.elections {
    background-color: var(--elections-color);
}

.news-category.international {
    background-color: var(--international-color);
}

.news-category.economy {
    background-color: var(--economy-color);
}

.news-category.policy {
    background-color: var(--policy-color);
}

.news-content {
    padding: 20px 0;
}

.news-card.featured .news-content {
    padding: 0;
}

.news-content h3 {
    margin-bottom: 15px;
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
}

.news-meta span {
    display: flex;
    align-items: center;
}

.news-meta i {
    margin-right: 5px;
}

.btn-load {
    display: block;
    margin: 0 auto;
    padding: 12px 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-load:hover {
    background-color: #1a252f;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Analysis Section */
.analysis {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.analysis-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.analysis-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.analyst-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.analyst-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.analyst-info h4 {
    margin: 0;
}

.analyst-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.analysis-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.analysis-stats span {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.analysis-stats i {
    margin-right: 5px;
}

/* Elections Section */
.elections {

    background-color: white;
}

.election-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.map-container {
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    height: 500px;
    position: relative;
}

.map {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.poll-results {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
}

.poll {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.poll:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.poll-question {
    font-weight: 600;
    margin-bottom: 15px;
}

.poll-bar {
    margin-bottom: 15px;
}

.poll-label {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.poll-track {
    height: 25px;
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.poll-fill {
    height: 100%;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: width 1s ease;
}

.poll-fill.blue {
    background-color: var(--politics-color);
}

.poll-fill.red {
    background-color: var(--accent-color);
}

.poll-fill.gray {
    background-color: var(--text-light);
}

.poll-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 10px;
}

.voter-turnout {
    margin-top: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.turnout-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.turnout-stat {
    text-align: center;
}

.turnout-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.turnout-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Newsletter */
.newsletter {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.newsletter-text h2 {
    color: white;
}

.newsletter-features {
    list-style: none;
    margin-top: 30px;
}

.newsletter-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.newsletter-features i {
    color: var(--success-color);
    margin-right: 10px;
}

.newsletter-form {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #2980b9;
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 15px;
    text-align: center;
}

/* Footer */
.footer {
    background-color: #1a252f;
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin: 20px 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.disclaimer {
    margin-top: 15px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

.modal-header {
    background: var(--secondary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 40px 20px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.modal-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.modal-footer button {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-left: 15px;
    outline: none !important;
}

.close-modal-btn {
    min-width: 150px;
}

/* Animations */
@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .election-content {
        grid-template-columns: 1fr;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        bottom: 0px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        display: block;
        padding: 15px;
    }

    .btn-subscribe {
        margin: 15px 0 0;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .meta-info {
        margin-top: 15px;
    }

    .meta-info span {
        margin-left: 0;
        margin-right: 20px;
    }

    .breaking-news {
        flex-direction: column;
        text-align: center;
    }

    .breaking-label {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .current-time {
        margin-left: 0;
        margin-top: 10px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .newsletter-form {
        padding: 20px;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .live-feed {
        padding-left: 20px;
        border-left-width: 2px;
    }

    .live-item:before {
        left: -23px;
        width: 15px;
        height: 15px;
    }
}