@import url('https://fonts.googleapis.com/css2?family=Athiti:wght@400;600;700&family=Gilda+Display&display=swap');

:root {
    --primary-color: #692D46;     /* Burgundy */
    --accent-color: #3C4B59;      /* Dark Blue / Slate */
    --bg-color: #FEFDFC;
    --text-color: #828282;
    --border-color: #E2E2E2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Athiti', sans-serif; 
    font-size: 20px; 
    line-height: 1.6; 
    color: var(--text-color); 
    background-color: var(--bg-color); 
}

h1, h2, h3, h4, h5 { font-family: 'Gilda Display', serif; color: var(--primary-color); font-weight: normal; }
h1 { font-size: 44px; margin-bottom: 20px; }
h2 { font-size: 28px; margin-bottom: 15px; }
h3 { font-size: 24px; margin-bottom: 12px; }

.centerer { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s; }
a:hover { text-decoration: underline; color: var(--primary-color); }

/* Header Elements */
#header { padding: 20px 0; background: var(--bg-color); border-bottom: 3px solid var(--primary-color); }
.header-content { display: flex; align-items: center; justify-content: space-between; position: relative; gap: 30px; }
#logo { max-height: 100px; width: auto; }

/* Navigation Top-Level */
#cm_navigation { position: relative; z-index: 1000; flex-grow: 1; display: flex; justify-content: flex-end; }
#cm_mainnavigation { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
#cm_mainnavigation > li { position: relative; }
#cm_mainnavigation > li > a { display: block; padding: 10px 0; color: var(--primary-color); font-weight: 600; text-transform: uppercase; font-size: 16px; text-decoration: none; transition: color 0.3s; }
#cm_mainnavigation > li > a:hover { color: var(--accent-color); }

/* Dropdown */
.subnav { position: absolute; top: 100%; left: 0; background: #fff; min-width: 250px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 1000; border-top: 3px solid var(--primary-color); display: none; flex-direction: column; list-style: none; }
.has-sub:hover .subnav { display: flex; }
.subnav li { width: 100%; border-bottom: 1px solid #eee; }
.subnav a { display: block; padding: 12px 20px !important; line-height: 1.4; text-transform: none !important; font-weight: 600 !important; color: var(--accent-color) !important; transition: background-color 0.3s; }
.subnav a:hover { background-color: var(--bg-color); color: var(--primary-color) !important; text-decoration: none; }

/* Burger Menu */
.mobile-menu-toggle { display: none; cursor: pointer; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); z-index: 1001; }
.burgerline { width: 30px; height: 3px; background-color: var(--primary-color); margin: 6px 0; }

/* Keyvisual */
.keyvisual { width: 100vw; height: auto; margin-left: calc(-50vw + 50%); position: relative; overflow: hidden; background-color: #EEE; margin-bottom: 40px; }
.keyvisual img { width: 100%; height: auto; object-fit: cover; max-height: 400px; display: block; transition: opacity 0.5s ease; }

/* Layout Grid */
.content_wrapper { display: flex; gap: 50px; margin-top: 40px; margin-bottom: 60px; min-height: 600px; }
#content_main { flex: 0 0 65%; max-width: 65%; }
.sidebar { flex: 0 0 30%; max-width: 30%; background: #F8F8F8; padding: 30px; border-radius: 4px; border-top: 4px solid var(--primary-color); height: min-content; }

/* Sidebar Additions */
.sidebar h3 { color: var(--primary-color); font-size: 20px; margin-bottom: 12px; }
.cm-widget_separatingline { height: 1px; background: var(--border-color); margin: 25px 0; }
.sidebar p { margin-bottom: 10px; font-size: 18px; line-height: 1.5; color: var(--accent-color); }

/* Content Styling */
#content_main p, #content_main ul { margin-bottom: 20px; text-align: justify; }
#content_main ul { padding-left: 20px; }
.cm_table { width: 100%; border-collapse: separate; border-spacing: 20px; }
.cm_table td { vertical-align: top; width: 33.33%; text-align: center; }
.cm_table img { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto 15px auto; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.cm_table a:hover img { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.cm_column_wrapper { display: flex; gap: 30px; width: 100%; margin: 30px 0; }
.cm_column { flex: 1; min-width: 0; }

/* Footer */
footer { width: 100%; background: var(--accent-color); color: white; padding: 40px 5%; margin-top: 60px; }
footer .centerer { text-align: center; }
footer a { color: white; margin: 0 10px; transition: color 0.3s; }
footer a:hover { color: #ccc; text-decoration: none; }
footer p { margin-bottom: 10px; font-size: 16px; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: #ffffff; border-top: 3px solid var(--primary-color); padding: 20px; box-shadow: 0 -4px 10px rgba(0,0,0,0.1); z-index: 9999; display: none; text-align: center; }
.cookie-banner h4 { margin-top: 0; color: var(--primary-color); font-family: 'Gilda Display', serif; }
.cookie-banner p { margin-bottom: 15px; font-size: 14px; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.5; }
.cookie-banner button { margin: 0 5px; padding: 10px 20px; border: none; cursor: pointer; border-radius: 4px; font-weight: 600; font-family: 'Athiti', sans-serif; font-size: 16px; }
.btn-primary { background: var(--primary-color); color: white; }
.btn-secondary { background: #eee; color: #333; }

/* Responsive Media Queries */
@media (max-width: 900px) {
    .content_wrapper { flex-direction: column; }
    #content_main { flex: 0 0 100%; max-width: 100%; }
    .sidebar { flex: 0 0 100%; max-width: 100%; margin-top: 30px; }
    .cm_table { display: flex; flex-direction: column; }
    .cm_table td { width: 100%; margin-bottom: 20px; }
    .cm_column_wrapper { flex-direction: column; gap: 20px; }
    .cm_column { width: 100% !important; margin-bottom: 20px; }
}

@media (max-width: 768px) {
    .header-content { justify-content: space-between; padding: 10px 20px; }
    #logo { max-height: 70px; }
    .mobile-menu-toggle { display: block; }
    
    #cm_navigation { background: none; flex-grow: 0; }
    #cm_mainnavigation { display: none; flex-direction: column; background: var(--primary-color); position: absolute; top: calc(100% + 20px); left: 0; width: 100vw; margin-left: calc(-50vw + 50%); z-index: 1002; padding: 10px 0; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
    #cm_mainnavigation > li > a { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); color: #fff; }
    #cm_mainnavigation > li > a:hover { color: #E2E2E2; }
    
    .has-sub:hover .subnav { display: none; }
    .subnav { position: relative; display: block; top: 0; border: none; box-shadow: none; background: rgba(0,0,0,0.1); width: 100%; border-top: none; }
    .subnav a { padding-left: 40px !important; color: #fff !important; }
}
