body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}


main, main#main {
  position: relative;
  padding: 16px;
}

.wave-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/wave-bg.svg") no-repeat top center;
  background-size: 100% auto;
  pointer-events: none;
  z-index: 0;
}

main > *:not(.wave-bg) {
  position: relative;
  z-index: 1;
}

#sidebar {
  padding: 16px;
}

header, .top {
  background: #f5f5f5;
  padding: 12px 16px;
}

.header-title {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25em 0.75em;
    margin-bottom: 0.5em;
    color: #fff;
    background-color: #3276c8;
    border-radius: 3px;
}

/* Featured Cards Section */
.featured-cards-section {
    padding: 20px 0;
}

.featured-section-heading,
.all-articles-section-heading {
    max-width: 1200px;
    margin: 0 auto;
    transform: translateX(-84px);
    padding: 45px 0 0 18px;
}

.featured-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    transform: translateX(-84px);
}

.featured-card-item {
    border-top: 4px solid #666666;
    padding: 0 18px;
    background-color: #000000;
}

.featured-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-card-link:hover {
    opacity: 0.9;
}

.featured-card {
    border-radius: 0;
    overflow: hidden;
}

.featured-card-header {
    padding: 15px;
    background-color: #000000;
}

.featured-card-header .header-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    background-color: transparent;
    padding: 6px 0 0;
    margin: 0;
    border-radius: 0;
}

.featured-card-image {
    width: 100%;
    overflow: hidden;
    padding-top: 6px;
}

.featured-card-image img {
    width: 407px;
    height: auto;
    display: block;
    object-fit: cover;
    border-top: 1px solid #ffffff;
    padding-top: 18px;
}

.featured-card-body {
    padding: 15px;
}

.featured-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f3047;
    margin: 0 0 55px 0;
    line-height: 1.3;
    height: calc(2 * 1.1rem * 1.3);
    overflow: hidden;
}

.featured-card-meta {
    margin-bottom: 35px;
    font-size: 0.85rem;
    border-top: 1px solid #ffffff;
    padding-top: 10px;
}

.meta-by {
    color: #ffffff;
    margin-right: 5px;
}

.meta-author {
    color: #1f3047;
    font-weight: 600;
    margin-right: 15px;
}

.meta-date {
    color: #ffffff;
}

.featured-card-category {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
    margin-bottom: 25px;
    border-top: 1px solid #ffffff;
    padding-top: 10px;
}

/* Responsive: 1 column on mobile */
@media (max-width: 767px) {
    .featured-cards-grid {
        grid-template-columns: 1fr;
        transform: none;
        padding: 0 20px;
        margin-left: -37px;
        margin-right: -37px;
    }
    .all-articles-grid {
        grid-template-columns: 1fr;
        transform: none;
        padding: 0 20px;
        margin-left: -37px;
        margin-right: -37px;
    }
}

/* All Articles Cards (inverted colors) */
.all-articles-section {
    padding: 20px 0;
}

.all-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    transform: translateX(-84px);
}

.all-article-item {
    border-top: 4px solid #666666;
    border-left: 1px solid #000000;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    padding: 0 18px;
    background-color: #ffffff;
}

.all-article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.all-article-link:hover {
    opacity: 0.9;
}

.all-article-card {
    border-radius: 0;
    overflow: hidden;
}

.all-article-header {
    padding: 15px;
    background-color: #ffffff;
}

.all-header-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000000;
    background-color: transparent;
    padding: 6px 0 0;
    margin: 0;
    border-radius: 0;
}

.all-article-image {
    width: 100%;
    overflow: hidden;
    padding-top: 6px;
}

.all-article-image img {
    width: 407px;
    height: auto;
    display: block;
    object-fit: cover;
    border-top: 1px solid #cccccc;
    padding-top: 18px;
}

.all-article-body {
    padding: 15px;
}

.all-article-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f3047;
    margin: 0 0 55px 0;
    line-height: 1.3;
    height: calc(2 * 1.1rem * 1.3);
    overflow: hidden;
}

.all-article-meta {
    margin-bottom: 35px;
    font-size: 0.85rem;
    border-top: 1px solid #cccccc;
    padding-top: 10px;
}

.all-meta-by {
    color: #000000;
    margin-right: 5px;
}

.all-meta-author {
    color: #1f3047;
    font-weight: 600;
    margin-right: 15px;
}

.all-meta-date {
    color: #000000;
}

.all-article-category {
    color: #000000;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
    margin-bottom: 25px;
    border-top: 1px solid #cccccc;
    padding-top: 10px;
}

/* Footer Section */
.site-footer {
    background-color: #040f2d;
    padding: 60px 40px 40px 40px;
    position: relative;
    z-index: 40;
}

.footer-first-row {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: 65%;
    margin: 0 auto 40px auto;
}

.footer-col {
    flex: 1;
    padding: 20px;
}

.footer-col-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
}

.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-link {
    color: #9d9d9d;
    font-size: 14px;
    text-decoration: none;
}

.footer-link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.footer-second-row {
    display: flex;
    flex-direction: row;
    gap: 40px;
    border-top: 1px solid #1a2a4d;
    padding-top: 30px;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-second-col {
    padding: 20px;
}

.footer-company {
    flex: 1.1;
    padding-left: 50px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    text-decoration: none;
}

.footer-logo-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}

.footer-company-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-company-info span {
    color: #9d9d9d;
    font-size: 14px;
}

.footer-empty {
    flex: 0.9;
}

.footer-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding-right: 50px;
}

.footer-social-link {
    color: #9d9d9d;
    transition: color 0.2s;
}

.footer-social-link:hover {
    color: #ffffff !important;
}

.footer-social-link svg {
    transition: color 0.2s;
}

.footer-social-link:hover svg {
    fill: #ffffff !important;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.pagination-box {
    display: flex;
    gap: 10px;
    background-color: #040f2d;
    padding: 20px 30px;
    border-radius: 8px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #9d9d9d;
    background-color: transparent;
    border: 1.5px solid #1a2a4d;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover {
    color: #ffffff;
    border-color: #00B4D8;
}

.pagination-btn.active {
    color: #ffffff;
    background-color: #00B4D8;
    border-color: #00B4D8;
}

/* Article Page Layout */
.article-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.article-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.article-site-title {
    font-size: 37px;
    font-weight: bold;
    vertical-align: middle;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: -1px -1px 0 #676767, 1px -1px 0 #676767, -1px 1px 0 #676767, 1px 1px 0 #676767;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.article-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #333333;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #cccccc;
}

.article-author-placeholder {
    background-color: #cccccc;
}

.article-author-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
}

.article-details-label {
    font-weight: 700;
    color: #1f3047;
    display: block;
    margin-bottom: 5px;
}

.article-details-written {
    color: #ffffff;
}

.article-share-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-details-share {
    font-weight: 700;
    color: #1f3047;
}

.article-share-icons {
    display: flex;
    gap: 8px;
}

.article-share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f0f0f0;
    transition: background-color 0.2s;
}

.article-share-link:hover {
    background-color: #dddddd;
}

.article-publish-info {
    font-size: 0.9rem;
    color: #ffffff;
    background-color: #326dc8;
    padding: 6px 12px;
    border-radius: 3px;
    margin-bottom: 3px;
    width: fit-content;
}

.article-category-info {
    font-size: 0.9rem;
    color: #ffffff;
    background-color: #326dc8;
    padding: 6px 12px;
    border-radius: 3px;
    margin-bottom: 3px;
    width: fit-content;
}

.article-tags-info {
    font-size: 0.9rem;
    color: #ffffff;
    background-color: #326dc8;
    padding: 6px 12px;
    border-radius: 3px;
    margin-bottom: 3px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.article-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
}

.article-hits-info {
    font-size: 0.9rem;
    color: #ffffff;
    background-color: #326dc8;
    padding: 6px 12px;
    border-radius: 3px;
    margin-bottom: 20px;
    width: fit-content;
}

.article-content-layout {
    display: flex;
    gap: 30px;
}

.article-content-main {
    flex: 1;
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
}

.article-content-sidebar {
    width: 350px;
    flex-shrink: 0;
}

.article-full-image {
    margin-bottom: 20px;
}

.article-full-image-img {
    width: 100%;
    height: auto;
    display: block;
}

.article-newsletter-box {
    border: 1px solid #cccccc;
    padding: 25px;
    background-color: #f9f9f9;
}

.newsletter-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f3047;
    margin: 0 0 10px 0;
}

.newsletter-description {
    font-size: 0.9rem;
    color: #333333;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.newsletter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f3047;
}

.newsletter-input {
    padding: 10px 12px;
    font-size: 0.9rem;
    border: 1px solid #cccccc;
    border-radius: 4px;
    outline: none;
}

.newsletter-input:focus {
    border-color: #3276c8;
}

.newsletter-checkbox {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.newsletter-checkbox-input {
    margin-top: 3px;
    flex-shrink: 0;
}

.newsletter-checkbox-label {
    font-size: 0.8rem;
    color: #555555;
    line-height: 1.4;
}

.newsletter-submit-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #3276c8;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.newsletter-submit-btn:hover {
    background-color: #2a5fa0;
}

@media (max-width: 767px) {
    .article-content-layout {
        flex-direction: column;
    }

    .article-content-sidebar {
        width: 100%;
    }

    .article-details {
        flex-direction: column;
        gap: 10px;
    }
}

/* Responsive */
@media (max-width: 1023px) {
    .page-header img {
        width: 47px !important;
        height: 47px !important;
        min-width: 47px !important;
        min-height: 47px !important;
    }

    .page-header span {
        font-size: 20px !important;
        white-space: nowrap;
    }

    .article-page-container {
        padding: 20px;
    }

    .featured-cards-grid {
        grid-template-columns: 1fr;
        transform: none;
        padding: 0 20px;
        margin-left: -37px;
        margin-right: -37px;
    }

    .all-articles-grid {
        grid-template-columns: 1fr;
        transform: none;
        padding: 0 20px;
        margin-left: -37px;
        margin-right: -37px;
    }

    .all-article-image img {
        width: 100% !important;
    }

    .featured-card-image img {
        width: 100% !important;
    }

    .featured-cards-section,
    .all-articles-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .featured-section-heading,
    .all-articles-section-heading {
        transform: none;
        padding-left: 20px;
    }

    .footer-first-row {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .footer-first-row .footer-col {
        width: 100%;
    }

    .footer-second-row {
        flex-direction: column;
    }

    .footer-company {
        padding-left: 0;
    }

    .footer-social {
        justify-content: flex-end;
        padding-right: 0;
    }
}
