/* CSS Variables */
:root {
    --primary-blue: #152F86;
    --dark-blue: #0F1A3F;
    --light-blue: #E5EBFF;
    --red: #D11725;
    --dark-red: #8F0D16;
    --dark-gray: #444444;
    --light-gray: #878c9f;
    --white: #faf9f5;
}

/* Universal Selector */
* {
    font-family: 'Roboto', sans-serif;
}

/* HTML Tags */
body {
    background-color: var(--white);
    font-size: 1.125rem;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

blockquote {
    border-left: 4px solid var(--dark-blue);
    padding-left: 1.5rem;
    color: var(--dark-blue);
    background: transparent;
    font-style: italic;
}

/* Classes */
.navbar {
    background: var(--white);
    border-bottom: 1px solid #e9ecef;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-item {
    margin: 0 0.75rem;
}

.nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 0 0.125rem 0 !important;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
    border-bottom-color: var(--primary-blue);
}

.card {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--white);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-weight: 600;
    color: var(--dark-blue);
    line-height: 1.3;
}

.card-text {
    color: var(--dark-gray);
    line-height: 1.6;
}

.category-badge {
    background: var(--red);
    color: var(--white);
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}


.tag {
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    display: inline-block;
}

.tag:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.author-link {
    color: var(--light-gray);
    text-decoration: none;
    font-weight: 500;
}

.author-link:hover {
    color: var(--primary-blue);
}

main {
    flex: 1;
}

.main-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.btn-primary {
    background: var(--red);
    border-color: var(--red);
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.btn-primary:hover {
    background: var(--dark-red);
    border-color: var(--dark-red);
}

.btn-outline-primary {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 6px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.search-container {
    position: relative;
}

.search-box {
    border-radius: 6px;
    border: 1px solid var(--light-blue);
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    background: transparent;
}

.search-box:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(21, 47, 134, 0.25);
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    border: none;
    background: transparent;
    padding: 0 0.75rem;
    color: var(--primary-blue);
    border-radius: 0 6px 6px 0;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.hamburger {
    width: 24px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-blue);
    border-radius: 6px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
    top: 8px;
}

.hamburger span:nth-child(4) {
    top: 16px;
}

.hamburger.open span:nth-child(1) {
    top: 8px;
    width: 0%;
    left: 50%;
}

.hamburger.open span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.hamburger.open span:nth-child(4) {
    top: 8px;
    width: 0%;
    left: 50%;
}

.navbar-collapse {
    text-align: center;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    font-size: 1.1rem;
}

.search-container {
    margin-top: 1rem;
}

.footer .col-md-8 {
    align-items: center !important;
    text-align: center;
}

.lucide {
    vertical-align: middle;
    transform: translateY(-2px);
}

.tagline {
	font-size: 0.9rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--dark-blue);
}

.article-content h1:first-child,
.article-content h2:first-child,
.article-content h3:first-child,
.article-content h4:first-child,
.article-content h5:first-child,
.article-content h6:first-child {
    margin-top: 0;
}

.main-wrapper h1.h3 {
    font-weight: 300;
}

/* Media Queries */
@media (min-width: 992px) {
    .navbar-collapse {
        text-align: left;
    }
    
    .navbar-nav .nav-link {
        font-size: 1rem;
    }
    
    .search-container {
        margin-top: 0;
    }
    
    .footer .col-md-8 {
        align-items: end !important;
        text-align: right;
    }
}