/* ========================================
   NOTICIAS CASA BRANCA - Portal de Noticias
   Sao Jose do Rio Preto
   ======================================== */

:root {
    --primary: #1a5276;
    --primary-dark: #0e3650;
    --primary-light: #2980b9;
    --accent: #e74c3c;
    --accent-dark: #c0392b;
    --bg: #f5f7fa;
    --bg-white: #ffffff;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --text-muted: #95a5a6;
    --border: #e1e8ed;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --gold: #f39c12;
    --green: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right a {
    color: rgba(255,255,255,0.8);
    margin-left: 15px;
    font-size: 13px;
}

.top-bar-right a:hover {
    color: #fff;
}

/* ========== HEADER ========== */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo svg {
    width: 48px;
    height: 48px;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* ========== NAVIGATION ========== */
.nav {
    background: var(--primary);
}

.nav .container {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav a {
    color: rgba(255,255,255,0.9);
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav a:hover,
.nav a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
}

/* ========== BREAKING NEWS ========== */
.breaking-news {
    background: var(--accent);
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
}

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    background: rgba(0,0,0,0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.breaking-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    animation: scroll-left 20s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ========== HERO / FEATURED ========== */
.hero-section {
    padding: 30px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    min-height: 450px;
}

.hero-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-main:hover img {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}

.hero-overlay .category-badge {
    background: var(--accent);
    color: #fff;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 12px;
}

.hero-overlay h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-overlay .meta {
    font-size: 13px;
    opacity: 0.8;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-side-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    flex: 1;
    cursor: pointer;
}

.hero-side-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-side-card:hover img {
    transform: scale(1.03);
}

.hero-side-card .hero-overlay h2 {
    font-size: 18px;
}

/* ========== SECTION TITLE ========== */
.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.section-title h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
}

/* ========== NEWS GRID ========== */
.news-section {
    padding: 20px 0 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-image .category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-body h3:hover {
    color: var(--primary);
}

.news-card-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

.news-card-footer .date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-footer .views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== NEWS LIST (SIDEBAR STYLE) ========== */
.news-list-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

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

.news-list-thumb {
    width: 120px;
    height: 85px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.news-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-list-content h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.news-list-content h4:hover {
    color: var(--primary);
}

.news-list-content .meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== SINGLE NEWS ========== */
.single-news {
    padding: 30px 0 50px;
}

.single-news-header {
    max-width: 800px;
    margin: 0 auto 30px;
}

.single-news-header .category-badge {
    background: var(--accent);
    color: #fff;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.single-news-header h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text);
}

.single-news-header .description {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.single-news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    padding: 15px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.single-news-image {
    max-width: 900px;
    margin: 0 auto 30px;
    border-radius: var(--radius);
    overflow: hidden;
}

.single-news-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-news-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.single-news-content p {
    margin-bottom: 20px;
}

.single-news-content h2,
.single-news-content h3 {
    margin: 30px 0 15px;
    color: var(--text);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.footer p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.pagination a {
    background: var(--bg-white);
    color: var(--text);
    box-shadow: var(--shadow);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
}

.pagination .current {
    background: var(--primary);
    color: #fff;
}

/* ========== LOGIN ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 20px;
}

.login-box {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 50px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-box .logo {
    justify-content: center;
    margin-bottom: 30px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text);
    font-size: 20px;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,82,118,0.1);
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent-dark);
}

.btn-success {
    background: var(--green);
    color: #fff;
}

.btn-success:hover {
    background: #219a52;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: var(--accent);
    color: #fff;
}

/* ========== ADMIN ========== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--primary-dark);
    color: #fff;
    padding: 0;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar .logo {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    justify-content: flex-start;
}

.admin-sidebar .logo-text h1 {
    color: #fff;
    font-size: 16px;
}

.admin-sidebar .logo-text span {
    color: rgba(255,255,255,0.5);
}

.admin-nav {
    padding: 15px 0;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.admin-nav a.active {
    border-left: 3px solid var(--accent);
}

.admin-nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 10px 20px;
}

.admin-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    background: var(--bg);
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

/* ========== STATS CARDS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.stat-card .stat-icon.blue { background: rgba(41,128,185,0.1); color: var(--primary-light); }
.stat-card .stat-icon.green { background: rgba(39,174,96,0.1); color: var(--green); }
.stat-card .stat-icon.gold { background: rgba(243,156,18,0.1); color: var(--gold); }
.stat-card .stat-icon.red { background: rgba(231,76,60,0.1); color: var(--accent); }

.stat-card h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ========== DATA TABLE ========== */
.data-table {
    width: 100%;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 20px;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background: var(--bg);
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.data-table td {
    border-bottom: 1px solid var(--border);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(245,247,250,0.5);
}

.data-table .thumb {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.data-table .actions {
    display: flex;
    gap: 8px;
}

/* ========== ALERTS ========== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #d5f5e3;
    color: #1e8449;
    border: 1px solid #abebc6;
}

.alert-error {
    background: #fadbd8;
    color: #c0392b;
    border: 1px solid #f5b7b1;
}

.alert-info {
    background: #d4efdf;
    color: var(--primary);
    border: 1px solid #a9dfbf;
}

/* ========== NO IMAGE PLACEHOLDER ========== */
.no-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 48px;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* ========== CATEGORY COLORS ========== */
.cat-infraestrutura { background: #3498db !important; }
.cat-educacao { background: #9b59b6 !important; }
.cat-saude { background: #27ae60 !important; }
.cat-cultura { background: #e67e22 !important; }
.cat-esporte { background: #1abc9c !important; }
.cat-meio-ambiente { background: #2ecc71 !important; }
.cat-seguranca { background: #e74c3c !important; }
.cat-geral { background: #95a5a6 !important; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-main {
        height: 350px;
    }
    .hero-sidebar {
        flex-direction: row;
    }
    .hero-side-card {
        height: 200px;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .header .container {
        flex-direction: column;
        gap: 10px;
    }
    .nav .container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav a {
        padding: 10px 14px;
        font-size: 12px;
    }
    .hero-main {
        height: 280px;
    }
    .hero-sidebar {
        flex-direction: column;
    }
    .hero-side-card {
        height: 200px;
    }
    .hero-overlay h2 {
        font-size: 20px;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .single-news-header h1 {
        font-size: 26px;
    }
    .admin-sidebar {
        display: none;
    }
    .admin-content {
        margin-left: 0;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== SEARCH ========== */
.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 14px;
    width: 220px;
    border-right: none;
}

.search-box button {
    padding: 10px 16px;
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-size: 14px;
}

/* ========== SHARE BUTTONS ========== */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.share-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }

/* Admin form card */
.form-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========== ANIMATIONS ========== */

/* Fade in up - for cards and sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Scroll-triggered animations via class */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered card animations */
.news-card {
    animation: fadeInUp 0.6s ease forwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }
.news-card:nth-child(7) { animation-delay: 0.7s; }
.news-card:nth-child(8) { animation-delay: 0.8s; }
.news-card:nth-child(9) { animation-delay: 0.9s; }

/* Hero animations */
.hero-main {
    animation: scaleIn 0.8s ease forwards;
}

.hero-side-card:nth-child(1) {
    animation: slideInRight 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero-side-card:nth-child(2) {
    animation: slideInRight 0.6s ease 0.5s forwards;
    opacity: 0;
}

/* Header slide down */
.header {
    animation: fadeIn 0.5s ease;
}

.nav {
    animation: fadeIn 0.5s ease 0.2s both;
}

/* Breaking news pulse */
.breaking-label {
    animation: pulse 2s ease infinite;
}

/* Section title slide in */
.section-title {
    animation: slideInLeft 0.6s ease forwards;
}

/* Stats counter animation */
.stat-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Login box animation */
.login-box {
    animation: scaleIn 0.5s ease forwards;
}

/* Footer slide up */
.footer {
    animation: fadeInUp 0.8s ease forwards;
}

/* Smooth image zoom on hover */
.news-card-image img,
.hero-main img,
.hero-side-card img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button hover ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: width 0.4s ease, height 0.4s ease, top 0.4s ease, left 0.4s ease;
}

.btn:active::after {
    width: 200px;
    height: 200px;
    top: calc(50% - 100px);
    left: calc(50% - 100px);
}

/* Category badge bounce */
.category-badge {
    transition: transform 0.3s ease;
}

.news-card:hover .category-badge {
    transform: scale(1.1);
}

/* Smooth page transition */
body {
    animation: fadeIn 0.3s ease;
}

/* Table row hover animation */
.data-table tr {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.data-table tbody tr:hover {
    transform: translateX(3px);
}

/* Nav link underline animation */
.nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav a:hover::before {
    width: 100%;
    left: 0;
}

/* Form input focus animation */
.form-group input,
.form-group textarea,
.form-group select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: translateY(-1px);
}

/* Alert slide in */
.alert {
    animation: slideInLeft 0.4s ease forwards;
}

/* Share buttons animation */
.share-btn {
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Sidebar nav link animation */
.admin-nav a {
    transition: background 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
}

.admin-nav a:hover {
    padding-left: 25px;
}

/* Loading skeleton shimmer */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* Floating label effect */
.form-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Top bar ticker animation - smoother */
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Scroll indicator */
.header {
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
