:root {
    --primary-color: #0e477c; /* Đỏ đô */
    --gold-color: #d4af37;
    --text-color: #333;
    --light-bg: #f4f4f4;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { line-height: 1.6; color: var(--text-color); }
.text-box { border: 1px solid #8c9ea9; }
.text-box p { border-bottom: 1px solid #8c9ea9; color: #ccc; padding: 10px 8px; }
.text-box p:last-child { border-bottom: none; }
.text-box a { color: #c0f3ca; }
.text-box a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: auto; padding: 0 20px; }
.dk-masTriSoa p { margin: 8px 0; line-height: 1.4; font-size: 17px; }
.dk-masTriSoa h2, .dk-masTriSoa h3 {  color: var(--primary-color); text-transform: uppercase; }
.dk-masTriSoa h2 { font-size: 2rem; }
.dk-masTriSoa h3 { font-size: 15pt; }
.ld-content p { color: #f5f5f5; }
.ld-content p a { color: #ffeeb7; }
.ld-content p a:hover { text-decoration: underline; }
.dk-masTriSoa ul { padding-left: 12px; list-style-position: inside; list-style-type: disc; }
.dk-masTriSoa ul li { font-size: 14px; margin: 8px 0; }

body div.gallery.gallery-columns-2, body div.gallery.gallery-columns-3, body div.gallery.gallery-columns-4 { display: grid; gap: 0 10px; }
body div.gallery.gallery-columns-2 { grid-template-columns: repeat(2,1fr); }
body div.gallery.gallery-columns-3 { grid-template-columns: repeat(3,1fr); }
body div.gallery.gallery-columns-4 { grid-template-columns: repeat(4,1fr); }
body div.gallery .gallery-item { margin: 10px 0; width: 100% !important; position: relative; }
body div.gallery .landscape { overflow: hidden; position: relative; }
body div.gallery img { background: #006; width: 100%; height: auto; border: none !important; transition: all 200ms ease-in-out; }
body div.gallery .gallery-item:hover img { scale: 1.2; opacity: 0.9; }
body div.gallery .gallery-item .gallery-caption { margin: 0 0; padding: 8px; font-size: 14px; position: absolute; bottom: 0; left: 10px; right: 10px; background: rgba(0,0,0,0.5); color: #fff; }

/* Header */
.header { background: #fff; padding: 8px 0; border-bottom: 2px solid var(--primary-color); position: fixed; top: 0; width: 100%; z-index: 1000; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: bold; font-size: 24px; color: var(--primary-color); max-width: 150px; }
.nav a { text-decoration: none; color: #333; margin-left: 20px; font-weight: 500; text-transform: uppercase; }
.btn-cta { background: var(--primary-color); color: #fff !important; padding: 8px 20px; border-radius: 5px; }

/* Hero */
.hero { background: linear-gradient(rgb(45 58 76 / 40%), rgb(16 40 57 / 40%)), url(images/bn-gladia-height.jpg) no-repeat center / cover; height: 80vh; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; }
.hero h1 { font-size: 3rem; margin-bottom: 10px; }
.hero-content h1 { text-transform: uppercase; }

/* Common Sections */
.section { padding: 2em 0; margin-bottom: 0; }
.section .container img, .logo img, .dk-masTriSoa img { max-width: 100%; height: auto; margin: 0 auto; display: block; }
.section-title { text-align: center; color: var(--primary-color); margin-bottom: 40px; font-size: 2rem; text-transform: uppercase; }
.bg-light { background: var(--light-bg); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.full-img { height: auto; border-radius: 8px; }

section#tong-quan { background-color: #22598c; }
section#tong-quan .section-title { color: var(--wp--preset--color--luminous-vivid-amber); }
section#tong-quan .text-box p { line-height: 1.3; color: #ddd; font-size: 14px; }
section#tong-quan .dk-masTriSoa h2, section#tong-quan .dk-masTriSoa h3 { color: var(--gold-color); }
section#tong-quan .dk-masTriSoa ul { color: #f3f3f3; }

.dk-masTriSoa table { border: 1px solid #555; margin: 1em 0; }
.dk-masTriSoa table td { border-top: 1px solid #555; border-right: 1px solid #555; padding: 10px 8px; }

/* Card & Table */
.card { background: #fff; border-bottom: 3px solid var(--primary-color); text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.card h3 { margin: 12px 0; padding: 0 8px; text-transform: uppercase; }
.card p { font-size: 15px; color: #333; margin-bottom: 1em; }
.payment-table table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.payment-table table tr:first-child { background: #800000; color: #fff; }
.payment-table table th, .payment-table table td { border: 1px solid #ddd; padding: 15px; text-align: left; }
.payment-table table th { background: var(--primary-color); color: #fff; }

/* Form */
.contact-section { background: var(--primary-color); color: #fff; }
.contact-section .section-title { color: #fff; }
.contact-form input { width: 100%; padding: 12px; margin-bottom: 8px; border: none; border-radius: 4px; }
.contact-form button, .contact-form .wpcf7 .wpcf7-form input[type="submit"] { width: 100%; padding: 15px; background: var(--gold-color); border: none; color: #fff; font-weight: bold; cursor: pointer; transition: 0.3s; }
.contact-form button:hover, .contact-form .wpcf7 .wpcf7-form input[type="submit"]:hover { background: #b8962e; }
.contact-form .wpcf7 .wpcf7-form { width: 100%; background: none; border-radius: 0; border: none; }

/* Footer */
.footer { background: #222; color: #fff; text-align: center; padding: 20px 0; font-size: 14px; }

/* Responsive */
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .nav { display: none; } /* Đơn giản hóa cho mobile */
    .payment-table table th, .payment-table table td { padding: 10px 8px; }
    body div.gallery.gallery-columns-3 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 420px) {
    body div.gallery.gallery-columns-2, body div.gallery.gallery-columns-3 { display: block; }
    body div.gallery.gallery-columns-4 { grid-template-columns: repeat(2,1fr); }
}