/* ═══════════════════════════════════════════════
   TREASURYWORKS — STYLE: NEWS
   ═══════════════════════════════════════════════ */

/* --- HERO NEWS --- */
.hero-news {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--accent);
}

.hero-news::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.hero-news .hero-badge {
    background: linear-gradient(135deg, var(--accent), #ea580c);
    color: #fff;
}

/* --- FEATURED NEWS --- */
.featured-news {
    padding: 60px 0 40px;
    background: var(--bg-primary);
}

.featured-card {
    background: linear-gradient(135deg, var(--card-bg), rgba(249, 115, 22, 0.05));
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--blue));
}

.featured-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.featured-card h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-excerpt {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.featured-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.news-source {
    color: var(--orange);
    font-size: 0.9rem;
    font-weight: 600;
}

.featured-card .btn-primary {
    margin-bottom: 25px;
}

.featured-image {
    margin-top: 20px;
}

.svg-placeholder {
    width: 100%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    padding: 10px;
}

.news-svg {
    width: 100%;
    height: auto;
}

.chart-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

/* --- NEWS GRID --- */
.news-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0a0a1a 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.news-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.news-category {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--orange);
}

.news-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card h3 a:hover {
    color: var(--orange);
}

.news-summary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 15px;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.news-link {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.news-link:hover {
    color: #fff;
}

/* --- ANALYSIS SECTION --- */
.analysis-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.analysis-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    margin-bottom: 40px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.analysis-card:hover {
    border-color: rgba(249, 115, 22, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.analysis-header {
    padding: 35px 40px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.analysis-tag {
    background: linear-gradient(135deg, var(--orange), #ea580c);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.analysis-header h3 {
    font-size: 1.4rem;
    color: #fff;
    line-height: 1.4;
}

.analysis-meta {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.analysis-body {
    padding: 30px 40px;
}

.analysis-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 500;
}

.analysis-body h4 {
    color: #fff;
    margin: 25px 0 12px;
    font-size: 1.1rem;
}

.analysis-list {
    padding-left: 20px;
    margin-bottom: 15px;
}

.analysis-list li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.analysis-list.numbered {
    list-style-type: none;
    counter-reset: analysis-counter;
}

.analysis-list.numbered li {
    counter-increment: analysis-counter;
    padding-left: 35px;
    position: relative;
}

.analysis-list.numbered li::before {
    content: counter(analysis-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--orange), #ea580c);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.analysis-box {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 12px;
    padding: 20px 25px;
    margin-top: 30px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
}

.analysis-box strong {
    color: var(--orange);
}

/* --- RESOURCES SECTION --- */
.resources-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.resource-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.resource-type {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
}

.resource-type.book { background: rgba(249, 115, 22, 0.15); color: var(--orange); }
.resource-type.tool { background: rgba(59, 130, 246, 0.15); color: var(--blue); }
.resource-type.course { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.resource-type.website { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.resource-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.resource-card .author {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.resource-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.resource-rating {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.resource-link {
    display: inline-block;
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.resource-link:hover {
    color: #fff;
}

/* --- NEWSLETTER MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    text-align: center;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.modal-body h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--orange);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input {
    accent-color: var(--orange);
}

.checkbox-label a {
    color: var(--orange);
}

/* --- NEWSLETTER BANNER --- */
.newsletter-banner {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.newsletter-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
    animation: rotateGlow 10s linear infinite;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.newsletter-banner .content {
    position: relative;
    z-index: 2;
}

.newsletter-banner h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.newsletter-banner p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--orange);
}

.newsletter-form button {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--orange), #ea580c);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(249, 115, 22, 0.4);
}

/* --- RESPONSIVE NEWS --- */
@media (max-width: 768px) {
    .hero-news .hero-visual { display: none; }
    .news-grid { grid-template-columns: 1fr; }
    .featured-card { padding: 25px; }
    .featured-card h2 { font-size: 1.4rem; }
    .analysis-body { padding: 20px; }
    .analysis-header { padding: 25px 20px 15px; }
    .newsletter-form { flex-direction: column; }
    .analysis-header h3 { font-size: 1.2rem; }
}