:root {
    --Blue-900: #051424;
    --Warning-300: #FFC107;
    --Blue-300: #0D3867;
    --White: #FFF;
    --Blue-50: #E7EBF0;
    --Grey-600: #777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
ul {
    padding-left: 15px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 10px 0;
    display: block;
}

h1 {
    font-size: 30px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.4;
    color: var(--Blue-900);
    background: var(--White);
    text-align: justify;
}

/* Header Styles */
.main-header {
    background: var(--Blue-300);
    padding: 8px 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.box-text-sologan {
    color: white;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 600;
}
.logo-header {
    width: 100px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    position: relative;
}

.nav-link {
    color: var(--White);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    padding: 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--Warning-300);
}

.nav-item.active .nav-underline {
    height: 2px;
    width: 100%;
    border-radius: 4px;
    background: var(--White);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    width: 200px;
    padding: 10px 14px;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid var(--Blue-50);
    background: var(--White);
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    color: var(--Grey-600);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    width: 100%;
}

.search-input::placeholder {
    color: var(--Grey-600);
}

.search-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.bell-icon {
    width: 24px;
    height: 24px;
    color: var(--White);
    cursor: pointer;
    transition: color 0.3s ease;
}

.bell-icon:hover {
    color: var(--Warning-300);
}

.login-btn {
    display: flex;
    padding: 10px 14px;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: var(--White);
    border: none;
    color: var(--Blue-300);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--White);
}

.login-btn:hover {
    background: var(--Blue-300);
    color: var(--White);
}

.login-btn:hover .login-text {
    color: var(--Blue-900);
}

/* Hero Section */
.hero-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    max-height: 900px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.05);
}

.hero-nav-btn.prev {
    left: 32px;
}

.hero-nav-btn.next {
    right: 32px;
}

.hero-dots {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #F2F1F0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-dot.active {
    background: #D5D3D1;
}

.hero-dot:hover {
    background: #D5D3D1;
}

/* Content Sections */
.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 0;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: #E1E1E1;
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    color: var(--Blue-900);
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
}

.view-all-link {
    color: var(--Warning-300);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #e6ac00;
}

.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card {
    display: flex;
    padding: 8px;
    align-items: center;
    gap: 16px;
    border-radius: 8px;
    background: var(--White);
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px 0px rgba(10, 13, 18, 0.1);
}

.article-image {
    width: 219px;
    height: 146px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;

}

.article-content img {
    display: block;
    margin: 10px auto;
}

.article-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--Blue-900);
    text-overflow: ellipsis;
    line-height: 1.4;
    text-align: left;
}

form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.article-header,
.blog-article {
    margin-bottom: 20px;
}

.news-article-title {
    font-size: 20px;
    line-height: 36px;
    text-align: left;
    text-transform: capitalize;
}

.article-date {
    color: var(--Blue-900);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 2px;
}

.article-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--Blue-900);
    text-overflow: ellipsis;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 2px;
}

.read-more-link {
    color: var(--Warning-300);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #e6ac00;
}

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

/* Footer */
.main-footer {
    background: var(--Blue-300);
    padding: 32px 16px 16px 16px;
    margin-top: 20px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    padding: 32px 0;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-logo-section {
    display: flex;
    width: 246px;
    padding: 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    height: 144px;
    width: 100%;
    object-fit: contain;
}

.footer-links {
    display: flex;
    flex: 1;
    gap: 16px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.footer-header {
    color: var(--White);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 8px;
}

.footer-link {
    color: var(--White);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--Warning-300);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-icon {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--White);
    flex-shrink: 0;
    margin-top: 2px;
}

.copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright-icon {
    width: 20px;
    height: 20px;
}

.copyright-text {
    color: var(--White);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.related-posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.related-posts-grid>.article-card {
    width: calc(50% - 8px);
}

.heading {
    margin: 20px 0
}

.news-container {
    display: flex;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
}

.news-card {
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
    border-radius: 8px;
    max-width: calc((100% - 40px) / 3);
    width: 100%;
}

.categories-grid .news-card {
    max-width: calc((100% - 60px) / 4) !important;
    width: 100%;
}

.categories-grid .article-title {
    font-size: 18px;
    line-height: 1.4;
}

.news-image {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.news-image>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;

}

.news-content {
    padding: 10px 15px;
}

.news-excerpt {
    -webkit-line-clamp: 3
}

.pagination {
    display: flex;
    justify-content: center;
    padding: 1rem 0;

}

.pagination .page-item {
    margin: 0 4px;
    list-style: none;
}

.pagination .page-item .page-link {
    color: var(--Blue-300);
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.pagination .page-item.active .page-link {
    background-color: var(--Blue-300);
    color: #fff;
    border-color: var(--Blue-300);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pagination .page-item .page-link:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

/* Mobile button */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: #333;
    margin-right: 10px;
    cursor: pointer;
}

/* Sidebar */
.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background-color: #063970;
    color: white;
    padding: 20px;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-sidebar.show {
    transform: translateX(0);
    display: block;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sidebar .logo {
    height: 60px;
}

.close-btn {
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.mobile-menu {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.mobile-link {
    padding: 12px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-link.active,
.mobile-link:hover {
    background-color: #0056b3;
}

.btn-show-nav {
    display: none;
}

.offcanvas-collapse {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    transition: -webkit-transform .3s ease-in-out;
    transition: transform .3s ease-in-out;
    transition: transform .3s ease-in-out, -webkit-transform .3s ease-in-out;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    z-index: 0;
    pointer-events: all;
}

.box-bg__tran {
    background-color: #343a40;
    opacity: 0.2;
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.btn-close__nav {
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
}

.box-offcanvas {
    box-shadow: -2px 2px 81px -27px rgba(0, 0, 0, 0.29);
    width: 300px;
    height: 100%;
    background: white;
    position: relative;
    z-index: 1;
    overflow: auto;
    opacity: 1;
    padding: 1.5rem !important
}

.offcanvas-collapse.open {
    -webkit-transform: translateX(0rem);
    transform: translateX(0rem);
}

.menuCanvas-collapse {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    transition: -webkit-transform .3s ease-in-out;
    transition: transform .3s ease-in-out;
    transition: transform .3s ease-in-out, -webkit-transform .3s ease-in-out;
    -webkit-transform: translateX(200%);
    transform: translateX(200%);
    z-index: 0;
    z-index: 9;
    pointer-events: all;
}

.menuCanvas-collapse.open {
    -webkit-transform: translateX(0rem);
    transform: translateX(0rem);
}

#menu-mobile li {
    padding: 0;
    margin: 0 0;
    list-style: none;
    display: block;
    margin-bottom: 20px;
    text-transform: none;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#menu-mobile li .more {
    display: inline-block;
    vertical-align: middle;
    border-radius: 100%;
    cursor: pointer;
    text-align: center;
    float: right;
    padding: .5rem 1rem;
}

#menu-mobile li .more i {
    font-size: 11px;
    width: 24px;
    height: 24px;
    background: rgba(84, 84, 84, 0.1);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.box-offcanvas .search-box {
    max-width: 100%;
}

.box-offcanvas .login-btn {
    margin-top: 20px;
    background: var(--Blue-300);
    color: var(--White);
      justify-content: center;
}

#menu-mobile .sub-menus {
    margin: 0;
    list-style: none;
    display: block;
    font-size: 13px;
    position: relative;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    padding: 0 0 0 20px;
    border: none;
}

#menu-mobile .sub-menus.open {
    display: block;
    opacity: 1;
    visibility: visible;
    max-height: 3000px;
}

#menu-mobile .sub-menus.open {
    padding: 10px 0 10px 20px;
}

.nav-menu__mobile {
    width: 100%;
    text-align: right;
    font-size: 25px;
}

.nav-menu__mobile a {
    cursor: pointer;
}

#menu-mobile a {
    color: black;
}

.nav-logo {
    display: block;
    margin: 0 auto;
    margin-bottom: 0px;
    text-align: center;
    margin-bottom: 20px;
}

/* Hide desktop nav on mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }   
    .box-text-sologan {
            font-size: 16px;
            text-align: center;
    }
    .btn-show-nav {
        display: block;
        position: absolute;
        right: auto;
        left: 20px;
        top: 30%;
        transform: translateY(-50%);
        cursor: pointer;
    }

    .header-right {
        display: none
    }

    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: inline-block;
    }

    .logo-header {
        height: 48px;
    }

    .header-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {

    .header-right .search-box {
        width: 250px;
    }

    .hero-nav-btn {
        width: 50px;
        height: 50px;
    }

    .hero-nav-btn.prev {
        left: 20px;
    }

    .hero-nav-btn.next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 16px !important;
    }

    .footer-logo-section {
        margin: 0 auto;
    }

    .copyright-text {
        text-align: center;
    }

    .header-container {
        flex-direction: column;
        height: auto;
        gap: 16px;
        padding: 8px 0;
    }

    .related-posts-grid>.article-card,
    .news-card,
    .categories-grid .news-card {
        max-width: 100% !important;
        width: 100%;
    }

    .categories-grid .section-header {
        flex-direction: row !important;
    }

    .header-left {
        gap: 24px;
    }

    .nav-menu {
        gap: 12px;
    }

    .header-right {
        gap: 12px;
    }

    .header-right .search-box {
        width: 200px;
    }

    .article-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-image {
        width: 100%;
        height: 200px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    .footer-column {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-nav-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-left {
        flex-direction: column;
        gap: 12px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-right {
        flex-direction: column;
        gap: 8px;
    }

    .header-right .search-box {
        width: 100%;
        max-width: 300px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hero-section {
        height: 300px;
    }
}

/* Enhanced Mobile Responsive */
@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    .main-header {
        padding: 6px 12px;
    }

    .header-container {
        gap: 8px;
    }

    .nav-menu {
        font-size: 14px;
    }

    .search-box {
        font-size: 14px;
        height: 36px;
    }

    .article-card {
        margin-bottom: 16px;
        padding: 12px;
    }

    .article-image {
        height: 160px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .pagination {
        justify-content: center;
        gap: 4px;
    }

    .pagination .page-link {
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) and (min-width: 577px) {
    .container {
        padding: 0 16px;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-section {
        height: 350px;
    }
}

/* Large Mobile Landscape */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        height: 250px;
    }

    .main-header {
        position: fixed;
    }

    main {
        padding-top: 60px;
    }
}
