/* common-style.css */

/* ====================
   Reset & Global Styles
   ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    background-color: #f0f2f5;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    color: #004d99;
    margin-bottom: 20px;
    font-size: 2em;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #ffcc00;
    border-radius: 2px;
}

/* ====================
   Header & Banner
   ==================== */
.main-header {
    background: url('banner.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.main-header .header-content {
    position: relative;
    z-index: 1;
}

.main-header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.main-header p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #ffcc00;
    color: #000;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #e6b800;
    transform: translateY(-3px);
}

/* ====================
   Navigation
   ==================== */
.main-nav {
    background-color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.5em;
    color: #004d99;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 1.5em;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: #555;
    padding: 10px 0;
    position: relative;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #ffcc00;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #004d99;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ====================
   Main Content
   ==================== */
main {
    padding: 40px 0;
}

.section-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.section-box:hover {
    transform: translateY(-5px);
}

.welcome-content {
    text-align: center;
}

.welcome-content p {
    max-width: 800px;
    margin: 0 auto 20px;
}

.featured-section {
    padding-top: 20px;
}

.featured-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.post-item img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.post-content {
    padding: 20px;
}

.post-content h4 {
    color: #004d99;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.post-content p {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 0;
}

/* ====================
   Footer
   ==================== */
.main-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid #4a6680;
}

.footer-info {
    max-width: 400px;
    margin-bottom: 20px;
}

.footer-info h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #ffcc00;
}

.footer-info p {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4a6680;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #ffcc00;
    color: #000;
}

.copyright {
    text-align: center;
    font-size: 0.8em;
    margin-top: 20px;
    color: #888;
}

/* ====================
   Floating Buttons
   ==================== */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.floating-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #004d99;
    color: #fff;
    font-size: 1.2em;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.floating-buttons a:hover {
    background-color: #ffcc00;
    color: #000;
}

/* ====================
   Responsive Design
   ==================== */
@media (max-width: 768px) {
    .main-header {
        padding: 80px 0;
    }
    .main-header h1 {
        font-size: 2.2em;
    }
    .main-header p {
        font-size: 1em;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links li {
        margin: 0;
        width: 100%;
    }
    .nav-links a {
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-links a::after {
        display: none;
    }

    .featured-posts {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
}
/* ... (Giữ nguyên toàn bộ mã CSS cũ) ... */

/* ====================
   Service Page
   ==================== */
.service-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 20px;
}

.service-link {
    display: block;
    width: 100%;
    max-width: 450px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.service-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-link img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.service-link:hover img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
    text-align: center;
}

.service-content h3 {
    color: #004d99;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service-content p {
    font-size: 1em;
    color: #555;
    margin-bottom: 0;
}

/* ====================
   Responsive for Service Page
   ==================== */
@media (max-width: 768px) {
    .service-options {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}
/* ====================
   Domestic News Page
   ==================== */
.domestic-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.domestic-item {
    display: block;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.domestic-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.domestic-item img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.domestic-item:hover img {
    transform: scale(1.05);
}

.item-content {
    padding: 20px;
    text-align: center;
}

.item-content h4 {
    color: #004d99;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.item-content p {
    font-size: 0.9em;
    color: #777;
}
/* ====================
   International News Page
   ==================== */
.international-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.international-item {
    display: block;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.international-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.international-item img {
    height: 180px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.international-item:hover img {
    transform: scale(1.05);
}

.item-content {
    padding: 20px;
    text-align: center;
}

.item-content h4 {
    color: #004d99;
    font-size: 1.2em;
    margin-bottom: 0;
}
/* ====================
   News Page Styles
   ==================== */
.news-list {
    padding-top: 20px;
}

.news-category {
    margin-bottom: 40px;
}

.news-category h3 {
    font-size: 1.8em;
    color: #004d99;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffcc00;
    display: inline-block;
    padding-bottom: 5px;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.article-item {
    display: block;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-item img {
    height: 180px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.article-item:hover img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-content h4 {
    color: #004d99;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.article-content p {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 0;
}
/* ====================
   Contact Page Styles
   ==================== */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1em;
}

.contact-item i {
    color: #004d99;
    font-size: 1.5em;
    width: 30px;
    text-align: center;
}

.google-map {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.google-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}