/* styles.css */

body {
    background-color: #121212;
    color: #aaa;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden; /* prevents any accidental horizontal scroll */
}

.navbar {
    background-color: #1f1f1f;
}

.navbar-brand,
.nav-link {
    color: #fff !important;
}

.content {
    padding: 2rem 0;
}

.col-box {
    background: #1f1f1f;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4); /* subtle shadow */
    transition: background 0.3s ease;
}

.col-box:hover {
    background: #2a2a2a;
}

.article {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #1e1e1e;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
    transition: background 0.3s ease;
}

.article:hover {
    background-color: #2a2a2a;
}

.article img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Article title gradient */
.article-title a {
    font-size: 1.5rem; /* bigger */
    font-weight: 700;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: filter 0.2s ease;
}

.article-title a:hover {
    filter: brightness(1.2);
    text-decoration: none;
}

/* Headings gradient (h1-h6) */
h1, h2, h3, h4, h5, h6 {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Article date */
.article-date {
    font-size: 0.85rem;
    color: #fff; /* now white */
    margin-bottom: 0.5rem;
}

/* Pagination gradient links */
.pagination a {
    font-weight: 700;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: filter 0.2s ease;
}

.pagination a:hover {
    filter: brightness(1.2);
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #1f1f1f;
    color: #ccc;
    padding: 1rem 0;
    text-align: center;
    margin-top: 2rem;
}

/* Gradient links for navbar, headings, pagination, and articles */
.gradient-link {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-decoration: none; /* remove underline */
    transition: filter 0.2s ease;
}

.gradient-link:hover {
    filter: brightness(1.2);
    text-decoration: none;
}

/* Article title and image links */
.article-title a,
.article img a {
    text-decoration: none;
}

/* Article title */
.article-title a {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: filter 0.2s ease;
}

.article-title a:hover {
    filter: brightness(1.2);
    text-decoration: none;
}

.article p {
    font-size: 1.1rem; /* increase from default 0.9rem */
    line-height: 1.6; /* better readability */
    color: #aaa; /* matches main body text */
}

/* Pagination links */
.pagination a {
    font-weight: 700;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: filter 0.2s ease;
    text-decoration: none;
    border: none !important; /* remove bootstrap border */
    background-color: transparent !important; /* remove bootstrap background */
}

.pagination li.active a {
    color: #ff7e5f; /* fallback if gradient not applied */
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: none !important;
}

/* Pagination disabled dots (ellipsis) */
.pagination .page-item.disabled .page-link {
    background-color: transparent !important; /* remove background */
    border: none !important;                  /* remove border */
    color: #aaa;                              /* optional: subtle grey */
    cursor: default;
}



.banner-img {
    width: 100%;
    height: 60px;
    object-fit: cover; /* fill wrapper without distortion */
    object-position: center; /* center image */
    display: block;
}

/* Gradient links for external links */
ul.links a {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-decoration: none; /* remove underline */
    transition: filter 0.2s ease;
}

ul.links a:hover {
    filter: brightness(1.2);
    text-decoration: none;
}

/* Remove bullet points if not already done in JS */
ul.links {
    padding-left: 0;
}

ul.links li {
    list-style-type: none;
    margin-bottom: 0.5rem; /* spacing between links */
}

.navbar .dropdown-menu {
    background-color: #121212; /* match index background */
    border: none;
    min-width: 220px; /* increase width */
    max-width: 300px; /* optional max width for very long titles */
    word-wrap: break-word; /* allow long titles to wrap */
}

img {
  transition: all 0.3s ease; /* Smooth transition for the effect */
}

img:hover {
  filter: brightness(1.2);
}

.navbar-brand img {
    height: 30px; /* Adjust the height as needed */
    margin-right: 5px; /* Add some space between the image and the text */
    padding-bottom: 5px;
}

.article-img img {
    height: 20px; /* Adjust the height as needed */
    margin-right: 4px; /* Add some space between the image and the text */
    margin-top: 6px;
}

.custom-search-btn {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.custom-search-btn:hover {
    background: linear-gradient(90deg, #feb47b, #ff7e5f);
    color: white;
}

.input-group .form-control {
    background-color: #121212;
    color: white;
    border: 1px solid #333;
    border-radius: 5px 0 0 5px;
    padding: 10px;
    font-size: 16px;
}

.input-group .form-control:focus {
    border-color: #ff7e5f;
    box-shadow: 0 0 0 0.2rem rgba(255, 126, 95, 0.25);
}

.popular-searches a {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 15px;
    margin-right: 10px;
    transition: background 0.3s ease;
}

.popular-searches a:hover {
    background: linear-gradient(90deg, #feb47b, #ff7e5f);
}