@font-face {
    font-family: 'Gotham_Book';
    src: url('../fonts/Gotham-Book.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 400px; /* fixed height */
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* keeps aspect ratio, fills container */
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    border-bottom: 3px solid rgb(41, 65, 119);
}

.article-body {
    font-family: Gotham_Book, serif;
    line-height: 1.6;
    padding: 20px;
}

.article-image {
    max-width: 600px;
    width: 100%;
    margin: 15px 0;
    display: block;
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;   /* centers the content */
    padding: 0 20px 20px;
}

.hero-text {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    color: white;
    z-index: 2;
    padding: 0 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    box-sizing: border-box;
}

.hero-text h1 {
    font-size: 2.5rem;
    max-width: 100%;
    word-wrap: break-word;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.7rem 0rem 0.6rem;
}

.article-tag {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    padding: 5px 12px;
    white-space: nowrap;
}

.section-divider {
    height: 110px;
}

.section-divider img {
     margin-top: 0;
}

.article-body p {
    font-size: 1rem;
    margin: 0.6rem 0;
}

.article-body img {
    max-width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    height: auto;
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 0.8fr;
    gap: 2rem;
    max-width: 1200px;
    padding: 20px;
    margin: 0 auto 1rem;
}

.article-main {
    background: #f4f4f4;
    border-radius: 10px;
    box-shadow: rgba(0,0,0,0.1) 0 4px 12px;
    overflow: hidden;
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-box {
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: rgba(0,0,0,0.1) 0 4px 10px;
}

.sidebar-box h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    color: #1a2c56;
}

/* Share buttons styled as round icons */
.share-links .share-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-links .share-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.share-btn {
    text-decoration: none;   /* remove underline */
    display: inline-flex;    /* centers the icon */
    align-items: center;
    justify-content: center;
}
.share-btn i {
    text-decoration: none;
}

/* Specific brand colors */
.share-btn.fb { background: #3b5998; }
.share-btn.tw { background: #1da1f2; }
.share-btn.dc { background: #5865F2; }
.share-btn.ln { background: #0077b5; }

/* Recent articles */
.recent-articles ul {
    list-style: none;
    padding: 0;
}

.recent-articles li {
    margin-bottom: 0.3rem;
}

.recent-articles a {
    text-decoration: none;
    color: #0f59aa;
    font-weight: bold;
}

.recent-articles a:hover {
    color: #023061;
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
}

.article-body a {
    color: rgb(15, 89, 170);
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    transition: color 0.3s;
}

.article-body a:hover {
    color: rgb(2, 48, 97);
    transition: color 0.3s;
}

.article-body h1 {
    margin-bottom: 0.7rem;
    font-size: 2.1rem;
}
.article-body h2 {
    margin-bottom: 0.7rem;
    font-size: 1.7rem;
}
.article-body h3 {
    margin-bottom: 0.7rem;
    font-size: 1.3rem;
}
.article-body h4 {
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
}
.article-body h5 {
    margin-bottom: 0.7rem;
    font-size: 1rem;
}
.article-body h6 {
    margin-bottom: 0.7rem;
    font-size: 0.8rem;
}

.article-body ol,
.article-body ul {
    list-style-position: inside;
    margin-left: 0;   /* remove shift */
    padding-left: 0;
}

.article-date {
    font-size: 1rem;
    color: #ccc;
    margin: 0;
}