/* --- Custom Styles inspired by JBlog --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
}

/* --- News Ticker --- */
.news-ticker-container {
    background-color: #222;
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}
.ticker-label {
    background-color: #0d6efd; /* Tech Blue */
    padding: 10px 20px;
    font-weight: 700;
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.ticker-wrap {
    display: inline-block;
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    animation: ticker 40s linear infinite;
}
.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.9rem;
}
.ticker-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.ticker-item a:hover {
    color: #ffc107;
}
.ticker-item::after {
    content: '|';
    margin-left: 2rem;
    color: #555;
}
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* --- Main Header --- */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}
.navbar-brand {
    font-weight: 700;
    font-size: 2rem;
    color: #111 !important;
}
.navbar-nav .nav-link {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    transition: color 0.3s;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: #0d6efd;
}
.header-socials a {
    color: #555;
    margin-left: 15px;
    font-size: 1.1rem;
    transition: color 0.3s;
}
.header-socials a:hover {
    color: #0d6efd;
}

/* --- Article Grid --- */
.article-card {
    background-color: #fff;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.article-card .card-img-top {
    border-radius: 10px 10px 0 0;
    height: 220px;
    object-fit: cover;
}
.article-card .card-body {
    padding: 25px;
}
.article-card .category-badge {
    display: inline-block;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-decoration: none;
}
.article-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}
.article-card .card-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
}
.article-card .card-title a:hover {
    color: #0d6efd;
}
.article-card .post-meta {
    font-size: 0.85rem;
    color: #777;
}
.article-card .post-meta span {
    margin-right: 15px;
}
.article-card .post-meta i {
    margin-right: 5px;
}

/* --- Load More Button --- */
#load-more-btn {
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s;
}
.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #0d6efd;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: none; /* Hidden by default */
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Footer --- */
.footer {
    background-color: #222;
    color: #aaa;
    padding: 50px 0 20px;
}
.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer p, .footer a {
    color: #aaa;
    text-decoration: none;
}
.footer a:hover {
    color: #fff;
}
.footer .list-unstyled li {
    margin-bottom: 10px;
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 30px;
}
