/* Resetting margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body{
    height: 100%;
}

body {
    /* font-family: Arial, sans-serif; */
    font-family: arial, helvetica, sans-serif;
}
a{
    text-decoration: none !important;
}
a:focus,
a:active {
    outline: none !important;
}
/* Header Styles */
.custom-header {
    background-color: #ffffff;
    padding: 0px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease;
}

.custom-header .logo h1 {
    font-size: 20px;
    color: #D4AF37;
}

.custom-header .logo img {
    width: 50px;
    height: auto;
    margin-right: 10px;
    transition: all 0.3s ease;
}
.custom-header.shrink .logo img {
    width: 50px;
}

.custom-header.shrink {
    background-color: #ffffff;
    padding: 10px 20px;
}
.custom-header.shrink {
    padding: 5px 20px;
}
.custom-header .logo.expand img {
    width: 70px;
}
.custom-header.menu-open .logo img {
    width: 70px;
}
/* Navigation Menu (Desktop) */
#navbar-menu {
    display: block;
}

.navbar-toggler {
    background: none;
    font-size: 24px;
    color: #176a7b;
    cursor: pointer;
    outline: none;
    background-color: transparent;
}
/* Hidden menu for mobile */
.mobile-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #ffffff;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    z-index: 1000;
}

#mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    transition: left 0.3s ease;
    display: none;
}

#mobile-menu.show {
    left: 0;
}

.mobile-menu .nav {
    padding: 0;
    margin: 0;
}

.mobile-menu .nav-item {
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.mobile-menu .nav-link {
    color:rgba(102, 102, 102, 0.85) !important;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none !important;
}

#mobile-menu .nav-item:hover {
    background-color: #f0f0f0;
}

#mobile-menu .nav-item:hover .nav-link {
    color: #000;
}

#mobile-menu .nav-item:active {
    background-color: #e0e0e0;
}

.nav-link{
    font-weight: bold;
    color: #176a7b !important;
}
.mobile-menu .nav-item:hover {
    background-color: #f0f0f0;
    color: #000;
}
.mobile-menu:focus {
    outline: none !important;
}

#mobile-menu .nav-link:active {
    background-color: #e0e0e0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    display: none; 
}
#overlay.show {
    display: block;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 30px;
    font-weight: bold;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}
.close-btn:focus {
    outline: none;
}
.close-btn:hover {
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .custom-header .logo {
        flex: 1;
        text-align: center;
    }

    .custom-header .logo img {
        margin: 0 auto;
    }
    
    .custom-header .navbar-toggler {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color:rgba(102, 102, 102, 0.85);
    }
    .navbar-toggler:hover{

    }
    .navbar-toggler:focus {
        outline: none;
    }
    
    #navbar-menu {
        display: none;
    }
    .nav-link{
        font-weight: bold;
        color: rgba(102, 102, 102, 0.85) !important;
    }
    .mobile-menu {
        display: none;
    }

    .d-none {
        display: none !important;
    }
    
    .show {
        display: block !important;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

main {
    flex: 1;
    width: 100%;
}
main.container {
    width: 100%;
    max-width: 100%; 
    padding: 0;
}

/* Padding cho tất cả các section */
main.container section {
    padding: 20px;
    margin: 0 auto;
}

main.container img {
    max-width: 100%;
    height: auto;
}

.nav-link:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    color: #1f2f44;
}

.text-gold {
    color: #D4AF37;
}

/* Main Image Section */
.main-image {
    margin-top: 110px;
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}
/* Title Section */
.title {
    text-align: center;
    margin: 20px 0;
}

.title h2 {
    font-size: 24px;
    font-weight: bold;
}

/* COL-9 */
/* DETAIL */
.overview {
    padding: 20px;
    color: #000;
}

.overview h1 {
    font-size: 27px;
    margin-bottom: 50px;
}
.overview h2 {
    font-size: 25px;
    text-align: left;
}
.overview p, .overview li {
    font-size: 17px;
    text-align: justify
}
.overview span {
    background: rgba(0, 0, 0, 0.05);
    font-style: italic;
    display: block;
    margin-bottom: 20px;
    padding: 5px 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
}
.overview ul{
    margin-left: 1.3em;
}
.overview li{
    margin-bottom: .6em;
}
/* ICON SHARE */
.is-divider{
    display: block;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 1em 0 1em;
    width: 70%;
    max-width: 30px;
    margin-top: .5em;
    height: 4px;
    margin-left: auto;
    margin-right: auto;
}
.social-share {
    text-align: center;
    margin-bottom: 20px;
}

.social-icons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icons li {
    display: inline-block;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #eee;
    color: #333;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: white;
    text-decoration: none;
}
.social-icons li:nth-child(1) a { /* Facebook */
    background-color: #3b5998;
}

.social-icons li:nth-child(2) a { /* Twitter */
    background-color: #1da1f2;
}

.social-icons li:nth-child(3) a { /* Email */
    background-color: #333;
}

.social-icons li:nth-child(4) a { /* Pinterest */
    background-color: #bd081c;
}

.social-icons li:nth-child(5) a { /* Google Plus */
    background-color: #dd4b39;
}

.social-icons li:nth-child(6) a { /* LinkedIn */
    background-color: #0077b5;
}

.social-icons li:nth-child(7) a { /* Tumblr */
    background-color: #35465c;
}

.social-icons a:hover {
    opacity: 0.8;
}

.news-navigation {
    /* display: flex; */
    justify-content: space-between; 
    align-items: center;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-top: 10px;
}
.news-col {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    display: flex;
    align-items: center;
}

.news-col:first-child {
    border-right: 1px solid #ddd;
    height: 60px;
}

.nav-news-item {
    display: flex;
    align-items: center;
    font-size: 17px;
    justify-content: center;
}
.nav-news-item.prev {
    position: absolute;
    left: 5%;
}

.nav-news-item.next {
    position: absolute;
    right: 5%;
}
.nav-news-item i {
    margin: 0 10px;
}

.nav-news-item a {
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

.nav-news-item a:hover {
    color: #555;
}


/* COL-3 */
.search-bar {
    display: flex;
    position: relative;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: 1px solid #dddd;
    border-radius: 5px 0 0 5px;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); 
}
.search-bar input:focus {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    border-color: #dddd;
}

.search-btn {
    background-color: #f68b1f;
    border: none;
    color: white;
    padding: 1px 15px;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    outline: none !important;
}

.search-btn i {
    font-size: 16px;
}

.search-btn:hover {
    background-color: #d45d1c;
}

.latest-news {
    margin-top: 20px;
}

.section-title {
    background-color: #C1481A;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 17px;
    
}

.latest-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-news-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.latest-news-img {
    width: 75px;
    height: 50px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5px;
}
.latest-news-item a {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: -0.5px;
    justify-content: space-between;
    color: #000;
}
.latest-news-img-container {
    position: relative;
    /*height:0;*/
}
.latest-news-img::before {
    content: "";
    position: absolute;
    width: 75px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    z-index: 1;
}

.post-date-day {
    position: absolute;
    font-weight: bold;
    color: white;
    padding: 5px;
    border-radius: 50%;
    /*background-color: rgba(0, 0, 0, 0.5);*/
    top: 3px;
    left: 8px;
    z-index: 2;
    transform: translate(50%, 15%);
}

.img-logo {
    height: 70px;
    width: 70px;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Footer */
footer {
    background-color: #176a7b;
    width: 100%;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 20px 0px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    width: 30%;
    margin-bottom: 20px;
}

.footer-column h3 {
    font-size: 19px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}

.is-divider-smail{
    margin: 0 auto;
    display: block;
    background-color: #fff000;
    margin: 1em 0 1em;
    width: 80%;
    margin-top: .5em;
    margin-bottom: .5em;
    height: 2px;
    margin-right: auto;
}

.footer-column p,
.footer-column ul,
.footer-column li {
    color: #fff;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 20px;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    background-color: #5b5b5b;
    text-align: center;
    padding-top: 5px;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 14px;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li {
    margin-bottom: 10px;
}

.social-links a {
    /* text-decoration: none !important; */
    color: white;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}


/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .footer-column {
        width: 100%;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .news-items .news-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .footer-column h3 {
        font-size: 16px;
    }

    .footer-bottom {
        font-size: 12px;
    }
}
