
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1E1E1E;
    background: linear-gradient(135deg, #ffffff 0%, #E7E6E6 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}


.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #E7E6E6 100%);
    box-shadow: 0 4px 20px rgba(108, 67, 231, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(108, 67, 231, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 15px rgba(108, 67, 231, 0.3));
}

/* Logo theme switching */
.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

.dark-theme .logo-light {
    display: none;
}

.dark-theme .logo-dark {
    display: block;
}

/* Footer logo */
.footer-logo {
    text-align: center;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo-img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 15px rgba(108, 67, 231, 0.2));
}

/* Fallback for old h1 logo styles */
.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #6C43E7;
    text-decoration: none;
    margin: 0;
}

.navigation {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666666;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #6C43E7;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(45deg, #6C43E7, #8B5CF6);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-btn,
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-btn:hover,
.menu-toggle:hover {
    background: linear-gradient(45deg, #6C43E7, #8B5CF6);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(108, 67, 231, 0.3);
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #E7E6E6 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(108, 67, 231, 0.05), rgba(108, 67, 231, 0.03), rgba(231, 230, 230, 0.1));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    overflow: hidden;
    height: auto;
}

.featured-story {
    background: linear-gradient(145deg, #ffffff, #E7E6E6);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(108, 67, 231, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(108, 67, 231, 0.1);
    height: auto;
    touch-action: manipulation;
}

.featured-story:hover {
    transform: none;
    box-shadow: 0 8px 30px rgba(108, 67, 231, 0.2);
    border-color: rgba(108, 67, 231, 0.1);
}

.story-image {
    height: 300px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #6C43E7, #E7E6E6, #1E1E1E);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
}

.story-content {
    padding: 2rem;
}

.category {
    background: linear-gradient(45deg, #6C43E7, #8B5CF6);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(108, 67, 231, 0.3);
}

.story-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1.3;
    color: #1E1E1E;
}

.story-excerpt {
    color: #666666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.story-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #888888;
}

.author,
.date {
    font-weight: 500;
}

/* Trending Stories */
.trending-stories h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1E1E1E;
}

.trending-item {
    background: linear-gradient(145deg, #ffffff, #E7E6E6);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px rgba(108, 67, 231, 0.1);
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(108, 67, 231, 0.1);
}

.trending-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(108, 67, 231, 0.2);
    border-color: rgba(108, 67, 231, 0.3);
}

.trending-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.image-placeholder-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #6C43E7, #E7E6E6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E1E1E;
    font-size: 1.5rem;
    font-weight: bold;
}

.trending-content .category {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.trending-content h4 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1E1E1E;
}

/* WhatsApp Channel Promotion */
.whatsapp-promo-section {
    background: linear-gradient(135deg, #E7E6E6 0%, #ffffff 100%);
    padding: 2rem 0;
    margin: 2rem 0;
    border-bottom: 1px solid rgba(108, 67, 231, 0.1);
}

.whatsapp-promo-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(108, 67, 231, 0.1);
    box-shadow: 0 8px 32px rgba(108, 67, 231, 0.1);
}

.whatsapp-promo-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.whatsapp-promo-text h3 {
    color: #1E1E1E;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.whatsapp-promo-text p {
    color: #666;
    font-size: 1rem;
}

.whatsapp-promo-btn {
    background: linear-gradient(45deg, #6C43E7, #8B5CF6);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(108, 67, 231, 0.3);
    min-width: max-content;
}

.whatsapp-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(108, 67, 231, 0.4);
}

.whatsapp-promo-btn i {
    font-size: 1.3rem;
}

/* Dark Theme for WhatsApp Promotion */
.dark-theme .whatsapp-promo-section {
    background: linear-gradient(135deg, #1E1E1E 0%, #2A2A2A 100%);
    border-bottom: 1px solid rgba(231, 230, 230, 0.1);
}

.dark-theme .whatsapp-promo-card {
    background: #1E1E1E;
    border: 1px solid rgba(231, 230, 230, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dark-theme .whatsapp-promo-text h3 {
    color: #E7E6E6;
}

.dark-theme .whatsapp-promo-text p {
    color: rgba(231, 230, 230, 0.8);
}

/* Weather Section */
.weather-section {
    background: linear-gradient(135deg, #E7E6E6 0%, #ffffff 100%);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(108, 67, 231, 0.1);
}

.weather-header {
    text-align: center;
    margin-bottom: 2rem;
}

.weather-header h2 {
    color: #1E1E1E;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.weather-header i {
    color: #6C43E7;
    font-size: 2rem;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.weather-card {
    background: linear-gradient(135deg, #ffffff 0%, rgba(108, 67, 231, 0.05) 100%);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 6px 24px rgba(108, 67, 231, 0.12);
    border: 1px solid rgba(108, 67, 231, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.weather-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6C43E7 0%, #8B5CF6 100%);
}

.weather-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(108, 67, 231, 0.25);
}

.weather-info {
    text-align: center;
}

.city-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1E1E1E;
    margin-bottom: 0.75rem;
}

.weather-icon {
    margin-bottom: 0.75rem;
}

.weather-icon i {
    font-size: 2.25rem;
    color: #6C43E7;
    text-shadow: 0 2px 8px rgba(108, 67, 231, 0.3);
}

.temperature {
    font-size: 2rem;
    font-weight: 700;
    color: #1E1E1E;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #6C43E7 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.weather-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
    text-transform: capitalize;
    font-weight: 500;
}

.weather-details {
    display: flex;
    justify-content: space-around;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(108, 67, 231, 0.1);
}

.weather-details .detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.weather-details .detail i {
    color: #6C43E7;
    font-size: 1rem;
}

.weather-details .detail span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1E1E1E;
}

.weather-footer {
    text-align: center;
}

.weather-footer small {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

/* Weather Dark Theme */
.dark-theme .weather-section {
    background: linear-gradient(135deg, #1E1E1E 0%, #2A2A2A 100%);
    border-bottom: 1px solid rgba(231, 230, 230, 0.1);
}

.dark-theme .weather-header h2 {
    color: #E7E6E6;
}

.dark-theme .weather-card {
    background: #1E1E1E;
    border: 1px solid rgba(231, 230, 230, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dark-theme .weather-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.dark-theme .city-name,
.dark-theme .weather-details .detail span {
    color: #E7E6E6;
}

.dark-theme .weather-desc {
    color: #B0B0B0;
}

.dark-theme .weather-details {
    border-top: 1px solid rgba(231, 230, 230, 0.1);
}

.dark-theme .weather-footer small {
    color: #B0B0B0;
}

/* Mega-Sena Section */
.megasena-section {
    background: linear-gradient(135deg, #ffffff 0%, #E7E6E6 100%);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(108, 67, 231, 0.1);
}

.megasena-header {
    text-align: center;
    margin-bottom: 2rem;
}

.megasena-header h2 {
    color: #1E1E1E;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.megasena-header i {
    color: #6C43E7;
    font-size: 2rem;
}

.megasena-card {
    background: linear-gradient(135deg, #ffffff 0%, rgba(108, 67, 231, 0.05) 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(108, 67, 231, 0.15);
    border: 1px solid rgba(108, 67, 231, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.megasena-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6C43E7 0%, #8B5CF6 100%);
}

.concurso-info {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(108, 67, 231, 0.1);
}

.concurso-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E1E1E;
    margin-bottom: 0.5rem;
}

.concurso-number span {
    background: linear-gradient(135deg, #6C43E7 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.concurso-date {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.numbers-section {
    text-align: center;
    margin-bottom: 2rem;
}

.numbers-section h3 {
    color: #1E1E1E;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.numbers-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.number-ball {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6C43E7 0%, #8B5CF6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(108, 67, 231, 0.3);
    transition: all 0.3s ease;
}

.number-ball:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(108, 67, 231, 0.4);
}

.prize-section {
    margin-bottom: 2rem;
}

.prize-info {
    display: grid;
    gap: 1rem;
}

.prize-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(108, 67, 231, 0.05);
    border-radius: 12px;
    border-left: 4px solid #6C43E7;
}

.prize-label {
    font-weight: 600;
    color: #1E1E1E;
    font-size: 1rem;
}

.prize-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #6C43E7;
    text-align: right;
}

.prize-winners {
    font-size: 0.9rem;
    color: #666;
    text-align: right;
}

.next-draw {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(108, 67, 231, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    border: 2px dashed rgba(108, 67, 231, 0.3);
}

.next-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.next-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1E1E1E;
}

.next-value {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6C43E7 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.next-date {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.megasena-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-radius: 16px;
}

.megasena-loading i {
    font-size: 2rem;
    color: #6C43E7;
}

.megasena-loading span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E1E1E;
}

.megasena-loading small {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

.megasena-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.megasena-footer small {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

.refresh-btn {
    background: linear-gradient(45deg, #6C43E7, #8B5CF6);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 67, 231, 0.3);
}

.refresh-btn:active {
    transform: translateY(0);
}

.refresh-btn i {
    transition: transform 0.3s ease;
}

.refresh-btn:hover i {
    transform: rotate(180deg);
}

/* Mega-Sena Dark Theme */
.dark-theme .megasena-section {
    background: linear-gradient(135deg, #1E1E1E 0%, #2A2A2A 100%);
    border-bottom: 1px solid rgba(231, 230, 230, 0.1);
}

.dark-theme .megasena-header h2 {
    color: #E7E6E6;
}

.dark-theme .megasena-card {
    background: #1E1E1E;
    border: 1px solid rgba(231, 230, 230, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dark-theme .concurso-info {
    border-bottom: 2px solid rgba(231, 230, 230, 0.1);
}

.dark-theme .concurso-number,
.dark-theme .numbers-section h3,
.dark-theme .prize-label,
.dark-theme .next-label {
    color: #E7E6E6;
}

.dark-theme .concurso-date,
.dark-theme .prize-winners,
.dark-theme .next-date {
    color: #B0B0B0;
}

.dark-theme .prize-item {
    background: rgba(108, 67, 231, 0.15);
    border-left: 4px solid #8B5CF6;
}

.dark-theme .next-draw {
    background: linear-gradient(135deg, rgba(108, 67, 231, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 2px dashed rgba(108, 67, 231, 0.4);
}

.dark-theme .megasena-loading {
    background: rgba(42, 42, 42, 0.95);
}

.dark-theme .megasena-loading span {
    color: #E7E6E6;
}

.dark-theme .megasena-loading small {
    color: #B0B0B0;
}

.dark-theme .megasena-footer small {
    color: #B0B0B0;
}

.dark-theme .refresh-btn {
    background: linear-gradient(45deg, #6C43E7, #8B5CF6);
    color: #E7E6E6;
}

.dark-theme .refresh-btn:hover {
    box-shadow: 0 4px 12px rgba(108, 67, 231, 0.4);
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

/* Make news-feed span full width */
.content-grid .news-feed {
    grid-column: 1 / -1;
    max-width: 2400px !important;
}

/* Seletores mais específicos */
.main-content .content-grid .news-feed {
    max-width: 2400px !important;
    margin: 0 auto !important;
}

.main-content .content-grid .news-feed .news-grid {
    max-width: 2200px !important;
    grid-template-columns: repeat(4, 1fr) !important;
    width: 100% !important;
}

/* News Feed */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1E1E1E;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.filter-tab {
    background: linear-gradient(145deg, #E7E6E6, #ffffff);
    border: 2px solid rgba(108, 67, 231, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1E1E1E;
    box-shadow: 0 2px 10px rgba(108, 67, 231, 0.1);
}

.filter-tab:hover,
.filter-tab.active {
    background: linear-gradient(45deg, #6C43E7, #8B5CF6);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 67, 231, 0.3);
}

/* News Feed */
.news-feed {
    max-width: 2400px !important;
    margin: 0 auto !important;
    text-align: center;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 2200px !important;
    margin: 0 auto 3rem auto !important;
    width: 100% !important;
}

.news-grid.filtering {
    opacity: 0.7;
    pointer-events: none;
}

.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    animation: fadeIn 0.5s ease-in-out;
}

.no-results-message h3 {
    color: #1E1E1E;
    margin-bottom: 0.5rem;
}

.dark-theme .no-results-message h3 {
    color: #E7E6E6;
}

.dark-theme .no-results-message {
    color: #B0B0B0;
}

.news-card {
    background: linear-gradient(145deg, #ffffff, #E7E6E6);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(108, 67, 231, 0.1);
    cursor: pointer;
    border: 1px solid rgba(108, 67, 231, 0.1);
    max-width: 400px;
    margin: 0 auto;
    height: auto;
    touch-action: manipulation;
}

.news-card:hover {
    transform: none;
    box-shadow: 0 6px 25px rgba(108, 67, 231, 0.1);
    border-color: rgba(108, 67, 231, 0.1);
}


.card-image {
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.card-content {
    padding: 1.5rem;
    overflow: hidden;
    height: auto;
    max-height: none;
}

.card-content .category {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: #1E1E1E;
}

.card-excerpt {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #888888;
}

.load-more {
    text-align: center;
}

.load-more-btn {
    background: linear-gradient(45deg, #6C43E7, #8B5CF6);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(108, 67, 231, 0.3);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: linear-gradient(45deg, #1E1E1E, #6C43E7);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(108, 67, 231, 0.4);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: linear-gradient(145deg, #ffffff, #E7E6E6);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 6px 25px rgba(108, 67, 231, 0.1);
    border: 1px solid rgba(108, 67, 231, 0.1);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1E1E1E;
}

/* Popular List */
.popular-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.3s ease;
    cursor: pointer;
}

.popular-item:hover {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin: 0 -1rem;
}

.popular-item:last-child {
    border-bottom: none;
}

.rank {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #6C43E7, #1E1E1E);
    color: #E7E6E6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(108, 67, 231, 0.3);
}

.popular-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    color: #1E1E1E;
}

.views {
    font-size: 0.8rem;
    color: #888888;
}

/* Newsletter */
.newsletter p {
    margin-bottom: 1rem;
    color: #666666;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #6C43E7;
}

.newsletter-form button {
    background: linear-gradient(45deg, #6C43E7, #8B5CF6);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(108, 67, 231, 0.3);
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: linear-gradient(45deg, #1E1E1E, #6C43E7);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 67, 231, 0.4);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link.facebook { background: #1877f2; }
.social-link.twitter { background: #1da1f2; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.youtube { background: #ff0000; }

/* Footer Social Links */
.footer-section:last-child {
    text-align: center;
}

.footer-section:last-child h4 {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.footer-social-links .social-link {
    width: auto;
    height: auto;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: #E7E6E6;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
}

.footer-social-links .social-link:hover {
    background: rgba(108, 67, 231, 0.2);
    transform: translateX(5px);
}

.footer-social-links .social-link.facebook:hover {
    color: #1877F2;
}

.footer-social-links .social-link.twitter:hover {
    color: #1DA1F2;
}

.footer-social-links .social-link.instagram:hover {
    color: #E4405F;
    background: rgba(228, 64, 95, 0.1);
}

.footer-social-links .social-link.youtube:hover {
    color: #FF0000;
}

.footer-social-links .social-link i {
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #1E1E1E;
    color: #E7E6E6;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Desktop: footer content side by side */
@media (min-width: 769px) {
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 3rem;
    }
    
    .footer-section {
        flex: 1;
        text-align: left;
    }
    
    .footer-section:first-child {
        flex: 1.2; /* Logo section slightly larger */
    }
    
    /* Desktop navigation - show traditional links */
    .nav-links {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        flex-direction: row !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        gap: 2rem !important;
        margin: 0 !important;
    }
    
    .nav-links li {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nav-links li a {
        padding: 0.5rem 0 !important;
        font-size: 1rem !important;
        border-bottom: none !important;
        transition: color 0.3s ease !important;
    }
    
    .nav-links li a:hover {
        background: transparent !important;
        color: #6C43E7 !important;
    }
    
    /* Hide hamburger menu on desktop */
    .menu-toggle {
        display: none !important;
    }
    
    /* Desktop header layout */
    .nav-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 0;
    }
    
    .navigation {
        flex: 1;
        display: flex;
        justify-content: center;
    }
}

.footer-section h3,
.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    color: #6C43E7;
}

.footer-section p {
    color: #888888;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #6C43E7;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #888888;
}

/* Grupo Master Section */
.grupo-master-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 4rem 0;
    margin: 2rem 0;
    border-top: 1px solid rgba(108, 67, 231, 0.1);
    border-bottom: 1px solid rgba(108, 67, 231, 0.1);
}

.grupo-master-header {
    text-align: center;
    margin-bottom: 3rem;
}

.grupo-master-header h2 {
    color: #1E1E1E;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #6C43E7, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grupo-master-header i {
    margin-right: 0.5rem;
    color: #6C43E7;
}

.grupo-master-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grupo-master-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(108, 67, 231, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(108, 67, 231, 0.1);
}

.grupo-master-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(108, 67, 231, 0.2);
    border-color: rgba(108, 67, 231, 0.3);
}

.master-card-link {
    display: flex;
    align-items: center;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    min-height: 120px;
}

.master-card-link:hover {
    color: inherit;
}

.master-card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #6C43E7, #8B5CF6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 8px;
}

.master-card-icon i {
    font-size: 1.5rem;
    color: white;
}

.master-card-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 4px;
}

.grupo-master-card:hover .master-card-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(108, 67, 231, 0.3);
}

.master-card-content {
    flex: 1;
}

.master-card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1E1E1E;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.master-card-content p {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.grupo-master-card:hover .master-card-content h3 {
    color: #6C43E7;
}

.grupo-master-card:hover .master-card-content p {
    color: #4B5563;
}

.master-card-arrow {
    flex-shrink: 0;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.master-card-arrow i {
    font-size: 1.2rem;
    color: #9CA3AF;
    transition: all 0.3s ease;
}

.grupo-master-card:hover .master-card-arrow {
    transform: translateX(4px);
}

.grupo-master-card:hover .master-card-arrow i {
    color: #6C43E7;
}

/* Dark theme styles for Grupo Master */
.dark-theme .grupo-master-section {
    background: linear-gradient(135deg, #1E1E1E 0%, #2A2A2A 100%);
    border-color: rgba(231, 230, 230, 0.1);
}

.dark-theme .grupo-master-header h2 {
    color: #E7E6E6;
}

.dark-theme .grupo-master-card {
    background: linear-gradient(135deg, #2A2A2A 0%, #333333 100%);
    border-color: rgba(231, 230, 230, 0.1);
}

.dark-theme .master-card-content h3 {
    color: #E7E6E6;
}

.dark-theme .master-card-content p {
    color: #A1A1AA;
}

.dark-theme .grupo-master-card:hover .master-card-content h3 {
    color: #8B5CF6;
}

.dark-theme .grupo-master-card:hover .master-card-content p {
    color: #D1D5DB;
}

/* Mobile First - Force mobile behavior */
@media (max-width: 1200px) {
    .news-feed {
        max-width: 100% !important;
    }

    .news-grid {
        max-width: 100% !important;
    }

    .main-content .content-grid .news-feed {
        max-width: 100% !important;
    }

    .main-content .content-grid .news-feed .news-grid {
        max-width: 100% !important;
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .news-grid,
    .main-content .content-grid .news-feed .news-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        order: 1;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

}

/* Mobile menu styles */
.nav-links.mobile-active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    z-index: 1000;
}

.dark-theme .nav-links.mobile-active {
    background: #1E1E1E;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #2A2A2A;
}

.nav-links.mobile-active .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.nav-links.mobile-active .nav-link:hover {
    background: rgba(108, 67, 231, 0.1);
}

.dark-theme .nav-links.mobile-active .nav-link {
    color: #E7E6E6;
}

.dark-theme .nav-links.mobile-active .nav-link:hover {
    background: #2A2A2A;
    color: #6C43E7;
}

/* Search overlay styles */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5vh;
}

.search-container {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.search-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fa;
}

.search-input {
    flex: 1;
    border: none;
    font-size: 1.25rem;
    padding: 0.5rem;
    outline: none;
    background: transparent;
}

.search-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.search-close:hover {
    background: #e5e7eb;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.search-placeholder {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 2rem;
}

.search-loading {
    text-align: center;
    padding: 2rem;
    color: #6C43E7;
}

.search-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.search-summary {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.search-summary p {
    margin: 0;
    color: #0c4a6e;
}

.search-result-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.search-result-item:hover {
    border-color: #6C43E7;
    box-shadow: 0 4px 20px rgba(108, 67, 231, 0.1);
    transform: translateY(-2px);
}

.search-result-content {
    flex: 1;
}

.search-result-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.search-category {
    background: #6C43E7;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.search-result-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1E1E1E;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.search-result-title mark {
    background: #fef3c7;
    color: #92400e;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
}

.search-result-excerpt {
    color: #4b5563;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.search-result-excerpt mark {
    background: #fef3c7;
    color: #92400e;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
}

.search-result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.search-author {
    color: #6b7280;
    font-size: 0.875rem;
}

.search-highlights {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.highlight-tag {
    background: #e0e7ff;
    color: #5b21b6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.search-result-image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-result-no-image {
    width: 120px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.search-no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.search-no-results i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.search-no-results h3 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.search-suggestions {
    margin-top: 1.5rem;
    font-weight: 600;
    color: #374151;
}

.search-suggestions-list {
    text-align: left;
    max-width: 300px;
    margin: 0.5rem auto 0;
    padding-left: 1.5rem;
}

.search-error {
    text-align: center;
    padding: 2rem;
    color: #dc2626;
}

.search-error i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Mobile search styles */
@media (max-width: 768px) {
    .search-container {
        width: 95%;
        max-height: 85vh;
    }
    
    .search-result-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-result-image,
    .search-result-no-image {
        width: 100%;
        height: 120px;
        order: -1;
    }
    
    .search-result-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .search-result-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Dark theme support for search */
.dark-theme .search-container {
    background: #1E1E1E;
    color: #E7E6E6;
}

.dark-theme .search-header {
    background: #2A2A2A;
    border-bottom-color: #444444;
}

.dark-theme .search-result-item {
    background: #2A2A2A;
    border-color: #444444;
    color: #E7E6E6;
}

.dark-theme .search-result-item:hover {
    border-color: #6C43E7;
}

.dark-theme .search-result-title {
    color: #E7E6E6;
}

.dark-theme .search-summary {
    background: #1a365d;
    border-color: #2563eb;
}

.dark-theme .search-summary p {
    color: #ffffff !important;
}

/* Large screens */
@media (min-width: 1200px) {
    .container {
        padding: 0 60px;
    }
}

    
    /* Footer mobile fixes */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        padding-top: 1rem;
    }
    
    .footer-section {
        text-align: center !important;
    }
    
    .footer-section h4 {
        text-align: center;
    }
    
    .footer-section ul {
        text-align: center;
        list-style: none;
        padding: 0;
    }
    
    .footer-social-links {
        align-items: center;
        width: 100%;
    }
    
    .footer-social-links .social-link {
        justify-content: flex-start;
        width: 180px;
        text-align: left;
        padding: 0.75rem 1rem;
        margin: 0 auto 0.5rem auto;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        border-radius: 8px;
        background: rgba(108, 67, 231, 0.1);
        border: 1px solid rgba(231, 230, 230, 0.1);
    }
    
    .footer-social-links .social-link i {
        flex-shrink: 0;
        width: 20px;
        text-align: center;
        font-size: 1.1rem;
    }
    
    .footer-social-links .social-link:hover {
        background: rgba(108, 67, 231, 0.2);
        transform: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo img {
        height: 35px;
    }

/* Mobile header adjustments */
@media (max-width: 768px) {
    .nav-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0;
    }
    
    .logo img {
        height: 25px !important; /* Smaller logo on mobile */
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto; /* Push to the right side of logo */
    }
    
    .search-btn,
    .menu-toggle {
        padding: 0.4rem;
        font-size: 1rem;
        border-radius: 6px;
    }
}
    
    .footer-logo-img {
        height: 45px;
        max-width: calc(100vw - 30px);
        width: auto;
        margin-bottom: 0.75rem;
    }
    
    .footer-logo p {
        margin-bottom: 0;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .story-content {
        padding: 1.5rem;
    }
    
    .story-title {
        font-size: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }

    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        max-width: 100% !important;
    }

    .news-feed {
        max-width: 100% !important;
    }
    
    .widget {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

@media (max-width: 480px) {
    .nav-wrapper {
        padding: 0.75rem 0;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .trending-item {
        padding: 1rem;
    }
    
    /* Mobile navigation fixes */
    .nav-links.mobile-active {
        background: #ffffff;
        box-shadow: 0 4px 20px rgba(108, 67, 231, 0.15);
    }
    
    .dark-theme .nav-links.mobile-active {
        background: #1E1E1E;
    }
    
    /* Content grid mobile fixes */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        order: 2;
        margin-top: 2rem;
    }
    
    .news-feed {
        order: 1;
    }
    
    /* WhatsApp promo mobile */
    .whatsapp-promo-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .whatsapp-promo-text h3 {
        font-size: 1.3rem;
    }

    .whatsapp-promo-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* Weather and Mega-Sena mobile spacing */
    .weather-section,
    .megasena-section {
        padding: 2rem 0;
    }
    
    /* Filter tabs mobile */
    .filter-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        max-width: 100% !important;
    }

    .news-feed {
        max-width: 100% !important;
    }

    .filter-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .trending-item {
        flex-direction: column;
        text-align: center;
    }

    .trending-image {
        width: 100%;
        height: 150px;
        margin-bottom: 1rem;
    }

    .trending-content {
        width: 100%;
    }
    
    .story-content,
    .card-content {
        padding: 1rem;
        overflow: hidden !important;
        height: auto !important;
        max-height: none !important;
    }

    .main-content {
        padding: 2rem 0;
    }

    /* Fix mobile scroll issues - prevent individual news cards from scrolling */
    .news-card {
        overflow: hidden !important;
        height: auto !important;
        max-height: none !important;
        touch-action: manipulation !important;
        -webkit-overflow-scrolling: auto !important;
    }

    .card-title,
    .card-excerpt {
        overflow: visible !important;
        white-space: normal !important;
        text-overflow: clip !important;
        -webkit-line-clamp: none !important;
    }

    /* Fix mobile scroll issues for featured stories */
    .hero-content {
        overflow: hidden !important;
        height: auto !important;
        max-height: none !important;
    }

    .featured-story {
        overflow: hidden !important;
        height: auto !important;
        max-height: none !important;
        touch-action: manipulation !important;
        -webkit-overflow-scrolling: auto !important;
    }

    .story-content {
        overflow: hidden !important;
        height: auto !important;
        max-height: none !important;
    }

    .story-title,
    .story-excerpt {
        overflow: visible !important;
        white-space: normal !important;
        text-overflow: clip !important;
        -webkit-line-clamp: none !important;
    }

    .featured-story .category {
        text-align: center !important;
        display: block !important;
        margin: 0 auto 1rem auto !important;
        width: fit-content !important;
    }
}

/* Dark Theme Styles */
.dark-theme {
    background: #1E1E1E;
    color: #E7E6E6;
    min-height: 100vh;
}

.dark-theme .header {
    background: #1E1E1E;
    border-bottom: 2px solid rgba(108, 67, 231, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .nav-link {
    color: #E7E6E6;
}

.dark-theme .nav-link:hover,
.dark-theme .nav-link.active {
    color: #6C43E7;
}

.dark-theme .hero {
    background: linear-gradient(135deg, #1E1E1E 0%, #1E1E1E 80%, #6C43E7 100%);
}

.dark-theme .hero::before {
    background: linear-gradient(45deg, rgba(30, 30, 30, 0.9), rgba(30, 30, 30, 0.7), rgba(108, 67, 231, 0.2));
}

.dark-theme .featured-story,
.dark-theme .trending-item,
.dark-theme .news-card,
.dark-theme .widget {
    background: #2A2A2A;
    color: #E7E6E6;
    border: 1px solid rgba(108, 67, 231, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .story-title,
.dark-theme .card-title,
.dark-theme .widget-title,
.dark-theme .popular-content h4,
.dark-theme .section-header h2,
.dark-theme .trending-stories h3,
.dark-theme .trending-content h4 {
    color: #E7E6E6;
}

.dark-theme .story-excerpt,
.dark-theme .card-excerpt {
    color: #CCCCCC;
}

.dark-theme .story-meta,
.dark-theme .card-meta {
    color: #888888;
}

.dark-theme .filter-tab {
    background: #2A2A2A;
    color: #E7E6E6;
    border: 1px solid rgba(108, 67, 231, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dark-theme .filter-tab:hover,
.dark-theme .filter-tab.active {
    background: linear-gradient(45deg, #6C43E7, #8B5CF6);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 67, 231, 0.3);
}

.dark-theme .footer {
    background: #1E1E1E;
    color: #E7E6E6;
}

.dark-theme .footer-section h3,
.dark-theme .footer-section h4 {
    color: #f9fafb;
}

.dark-theme .footer-section ul li a {
    color: #d1d5db;
}

.dark-theme .footer-section ul li a:hover {
    color: #6C43E7;
}

.dark-theme .footer-bottom {
    border-top: 1px solid #374151;
    color: #888888;
}

.dark-theme .search-container {
    background: #2A2A2A;
    border: 1px solid rgba(108, 67, 231, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .search-input {
    background: #2A2A2A;
    color: #E7E6E6;
    border: 1px solid rgba(108, 67, 231, 0.2);
}

.dark-theme .search-input::placeholder {
    color: #888888;
}

.dark-theme .search-results {
    background: #2A2A2A;
    border: 1px solid rgba(108, 67, 231, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .search-result-item {
    border-bottom: 1px solid rgba(108, 67, 231, 0.2);
    color: #E7E6E6;
}

.dark-theme .search-result-item:hover {
    background: rgba(108, 67, 231, 0.1);
}

.dark-theme .newsletter-form input {
    background: #2A2A2A;
    border: 1px solid rgba(108, 67, 231, 0.2);
    color: #E7E6E6;
}

.dark-theme .newsletter-form input::placeholder {
    color: #888888;
}

.dark-theme .newsletter-form input:focus {
    border-color: #6C43E7;
}

.dark-theme .theme-toggle {
    color: #d1d5db;
}

.dark-theme .theme-toggle:hover {
    background: #2A2A2A;
    color: #6C43E7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dark-theme .search-btn:hover,
.dark-theme .menu-toggle:hover {
    background: #2A2A2A;
    color: #6C43E7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Links consistency */
.trending-content a,
.story-content a {
    color: #6C43E7;
    text-decoration: none;
}

.trending-content a:hover,
.story-content a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.dark-theme .trending-content a,
.dark-theme .story-content a {
    color: #60a5fa;
}

.dark-theme .trending-content a:hover,
.dark-theme .story-content a:hover {
    color: #3b82f6;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #6C43E7;
    outline-offset: 2px;
}

/* Animações e efeitos especiais */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(108, 67, 231, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(108, 67, 231, 0.6);
    }
}

.image-placeholder,
.image-placeholder-small {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background-size: 300% 300%;
    animation: gradient-shift 4s ease infinite;
}

/* Efeitos especiais para elementos principais */
.category {
    background-size: 300% 300%;
    animation: gradient-shift 3s ease infinite;
}

.load-more-btn,
.newsletter-form button {
    background-size: 300% 300%;
    animation: gradient-shift 3s ease infinite;
}


/* Elementos com destaque adicional */
.section-header h2 {
    background: linear-gradient(45deg, #6C43E7, #1E1E1E, #6C43E7);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease infinite;
}

.dark-theme .section-header h2 {
    background: linear-gradient(45deg, #6C43E7, #E7E6E6, #6C43E7);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease infinite;
}

/* Weather Section Mobile Responsive */
@media (max-width: 768px) {
    /* Prevent horizontal scroll on mobile */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        max-width: 100vw;
        padding: 0 15px;
        margin: 0 auto;
        overflow-x: hidden;
    }
    
    /* Force all elements to respect screen width */
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* Fix potential overflow elements */
    .nav-wrapper, .hero-content, .weather-grid, .megasena-card,
    .content-grid, .news-grid, .footer-content, .grupo-master-grid {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Grupo Master mobile styles */
    .grupo-master-section {
        padding: 2rem 0;
        margin: 1rem 0;
    }

    .grupo-master-header h2 {
        font-size: 1.8rem;
    }

    .grupo-master-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .master-card-link {
        padding: 1.5rem;
        min-height: 100px;
    }

    .master-card-icon {
        width: 50px;
        height: 50px;
        margin-right: 1rem;
        padding: 6px;
    }

    .master-card-icon i {
        font-size: 1.2rem;
    }

    .master-card-content h3 {
        font-size: 1.1rem;
    }

    .master-card-content p {
        font-size: 0.85rem;
    }
    
    /* Images must not exceed screen width */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Prevent text overflow */
    h1, h2, h3, h4, h5, h6, p, span {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Ensure flexbox doesn't cause overflow */
    .nav-wrapper, .header-actions, .footer-social-links {
        flex-wrap: wrap;
        min-width: 0;
    }
    .weather-section {
        padding: 2rem 0;
    }
    
    .weather-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .weather-header i {
        font-size: 1.5rem;
    }
    
    .weather-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: none;
    }
    
    .weather-card {
        padding: 1rem;
    }
    
    .weather-icon i {
        font-size: 2rem;
    }
    
    .temperature {
        font-size: 1.75rem;
    }
    
    .weather-details {
        justify-content: space-evenly;
    }
    
    .weather-details .detail i {
        font-size: 1rem;
    }
    
    .weather-details .detail span {
        font-size: 0.8rem;
    }
    
    /* Mega-Sena Mobile Responsive */
    .megasena-section {
        padding: 2rem 0;
    }
    
    .megasena-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .megasena-header i {
        font-size: 1.5rem;
    }
    
    .megasena-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .concurso-number {
        font-size: 1.3rem;
    }
    
    .numbers-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .numbers-grid {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .number-ball {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .prize-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .prize-label {
        font-size: 0.9rem;
    }
    
    .prize-value {
        font-size: 1rem;
        text-align: center;
    }
    
    .prize-winners {
        text-align: center;
        font-size: 0.8rem;
    }
    
    .next-value {
        font-size: 1.5rem;
    }
    
    .next-draw {
        padding: 1rem;
    }
}