@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #0c0f12;
    --bg-secondary: #14191f;
    --bg-tertiary: #1c222b;
    --accent-red: #8b1e28;
    --accent-gold: #cba052;
    --accent-green: #154734;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #2d3748;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gold { color: var(--accent-gold); }
.text-red { color: var(--accent-red); }
.text-muted { color: var(--text-muted); }
.font-serif { font-family: var(--font-heading); }

/* TOP BAR */
.top-bar {
    background-color: var(--accent-red);
    color: #fff;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.top-bar-left, .top-bar-right {
    display: flex;
    gap: 1.5rem;
}
.top-bar-right a:hover { opacity: 0.8; color: #fff; }

/* HEADER */
.main-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    line-height: 1;
}

.logo-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-top: 0.2rem;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.desktop-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

.desktop-nav a:hover {
    color: var(--accent-gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.icon-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.mobile-menu-btn {
    display: none;
}

/* MOBILE MENU OVERLAY */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 15, 18, 0.95);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav-overlay.active {
    transform: translateY(0);
}

.mobile-nav-overlay a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin: 1rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mobile-nav-overlay a:hover {
    color: var(--accent-gold);
}

.close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 5%;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* TICKER */
.ticker-section {
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.ticker-label {
    background-color: var(--accent-red);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ticker-content {
    padding: 0 1.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ticker-content span {
    color: var(--text-muted);
    margin-left: 1rem;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    padding: 5% 5%;
    background: url('../images/macau_colonial_and_modern.jpg') center/cover no-repeat;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 15, 18, 1) 0%, rgba(12, 15, 18, 0.4) 50%, rgba(12, 15, 18, 0.1) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.category-tag {
    display: inline-block;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-excerpt {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    border-left: 3px solid var(--accent-red);
    padding-left: 1rem;
}

/* LAYOUT GRIDS */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.section-title {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.section-title::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-color: var(--accent-red);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* ARTICLE CARDS */
.card {
    display: flex;
    flex-direction: column;
}
.card-img-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 16/10;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-img {
    transform: scale(1.05);
}
.card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    gap: 1rem;
}
.card-category {
    color: var(--accent-gold);
}
.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}
.card:hover .card-title {
    color: var(--accent-gold);
}
.card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* HORIZONTAL CARD (FEATURED) */
.card-horizontal {
    display: flex;
    flex-direction: row;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    align-items: stretch;
}
.card-horizontal .card-img-wrapper {
    width: 50%;
    margin-bottom: 0;
    aspect-ratio: auto; /* Let it fill the height naturally */
}
.card-horizontal .card-img {
    height: 100%;
    object-fit: cover;
}
.card-horizontal .card-content {
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card-horizontal .card-title {
    font-size: 2.2rem;
}

/* LIST CARDS (SIDEBAR) */
.list-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.list-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.list-card .card-img-wrapper {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    margin-bottom: 0;
}
.list-card .card-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

/* FEATURED SECTION (GREEN BG) */
.featured-section {
    background-color: var(--accent-green);
    padding: 5rem 5%;
    color: #fff;
}
.featured-section .container {
    padding: 0;
    max-width: 1400px;
}
.featured-section .section-header {
    border-bottom-color: rgba(255,255,255,0.2);
}
.featured-section .card-horizontal {
    background-color: transparent;
    border: none;
    flex-direction: row; /* Ensure text is left, image is right */
}
.featured-section .card-horizontal .card-content {
    padding: 0 4rem 0 0;
    width: 50%;
}
.featured-section .card-horizontal .card-img-wrapper {
    width: 50%;
    height: auto;
    aspect-ratio: 16/10;
}
.featured-section .card-meta {
    color: rgba(255,255,255,0.7);
}

/* DATA TABLE SECTION */
.data-table-wrapper {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.data-table th, .data-table td {
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.data-table th {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 400;
}
.data-table tr:last-child td {
    border-bottom: none;
}
.data-table tbody tr:hover {
    background-color: rgba(255,255,255,0.02);
}
.status-badge {
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    border: 1px solid var(--text-muted);
    border-radius: 2px;
}
.status-active { border-color: var(--accent-green); color: var(--accent-green); }
.status-closed { border-color: var(--accent-red); color: var(--accent-red); }

/* NEWSLETTER */
.newsletter-section {
    background: linear-gradient(135deg, var(--accent-red), #5a1118);
    padding: 4rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.newsletter-content {
    max-width: 500px;
}
.newsletter-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.newsletter-form {
    display: flex;
    width: 400px;
}
.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
}
.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}
.newsletter-form button {
    padding: 1rem 2rem;
    background-color: var(--bg-main);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}
.newsletter-form button:hover {
    background-color: var(--accent-gold);
    color: var(--bg-main);
}

.newsletter-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    max-width: min(380px, calc(100vw - 32px));
    padding: 16px 20px 16px 52px;
    border: 1px solid;
    border-radius: 6px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0;
    transform: translateX(calc(100% + 32px));
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.newsletter-toast::before {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 24px;
    height: 24px;
    border: 2px solid currentColor;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    transform: translateY(-50%);
}

.newsletter-toast--visible {
    opacity: 1;
    transform: translateX(0);
}

.newsletter-toast--success {
    border-color: #55c887;
    background: #17643a;
}

.newsletter-toast--success::before {
    content: '\2713';
}

.newsletter-toast--error {
    border-color: #e37979;
    background: #812d2d;
}

.newsletter-toast--error::before {
    content: '!';
}

@media (max-width: 600px) {
    .newsletter-toast {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
}

/* FOOTER */
.main-footer {
    background-color: var(--bg-tertiary);
    padding: 5rem 5% 2rem;
    border-top: 1px solid var(--border-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer-brand {
    max-width: 300px;
}
.footer-desc {
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-size: 0.9rem;
}
.footer-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #fff;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--accent-gold);
}
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .card-horizontal .card-content {
        padding: 2rem;
    }
    .card-horizontal .card-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .hero-title { font-size: 3rem; }
    
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: flex; }

    .card-horizontal, .featured-section .card-horizontal { flex-direction: column; }
    .card-horizontal .card-img-wrapper, .card-horizontal .card-content,
    .featured-section .card-horizontal .card-img-wrapper, .featured-section .card-horizontal .card-content { 
        width: 100%; 
    }
    .featured-section .card-horizontal .card-content { padding: 0 0 2rem 0; order: 1; }
    .featured-section .card-horizontal .card-img-wrapper { order: 2; }
    
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter-section { flex-direction: column; gap: 2rem; text-align: center; }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .top-bar { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .newsletter-form { width: 100%; flex-direction: column; }
}

/* GENERIC PAGE STYLES */
.generic-page-header {
    background-color: var(--bg-tertiary);
    padding: 6rem 5% 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.generic-page-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
}
.generic-page-content {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 5%;
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.8;
}
.generic-page-content h2 {
    color: #fff;
    margin: 3rem 0 1.5rem;
    font-size: 1.8rem;
}
.generic-page-content p {
    margin-bottom: 1.5rem;
}
/* CONTACT FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: var(--font-body);
    outline: none;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--accent-gold);
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form button {
    padding: 1rem 2rem;
    background-color: var(--accent-red);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    transition: background 0.3s;
}
.contact-form button:hover {
    background-color: var(--accent-gold);
    color: var(--bg-main);
}
.contact-success {
    display: none;
    padding: 1.5rem;
    background-color: rgba(21, 71, 52, 0.2);
    border-left: 4px solid var(--accent-green);
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* FAQ ACCORDION STYLES */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}
.faq-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-red);
}
.faq-item summary {
    padding: 1.5rem;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}
.faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.03);
}
.faq-item summary::-webkit-details-marker {
    display: none; /* Hide default arrow in WebKit */
}
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-gold);
    transition: transform 0.3s;
}
.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}
.faq-item[open] summary {
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.02);
}
.faq-content {
    padding: 1.5rem;
    color: var(--text-main);
    line-height: 1.7;
}
.faq-content p {
    margin-bottom: 0;
}
/* ABOUT PAGE STYLES */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}
.about-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}
.about-card h3 {
    color: var(--accent-gold);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
}
