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

:root {
    --primary-color: #A0C2CA;     /* Light Blue */
    --accent-color: #31CAE8;      /* Vibrant Blue */
    --text-color: #5E5F60;
    --bg-color: #FFFFFF;
    --border-color: #E2E2E2;
}

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

body { 
    font-family: 'Quattrocento Sans', sans-serif; 
    font-size: 18px; 
    line-height: 1.6; 
    color: var(--text-color); 
    background-color: var(--bg-color); 
    background-image: url('assets/bg1.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5 { 
    font-family: 'Mulish', sans-serif; 
    color: var(--accent-color); 
    font-weight: 600; 
    margin-bottom: 20px;
}

h1 { font-size: 34px; border-bottom: 2px solid var(--primary-color); padding-bottom: 15px; margin-bottom: 30px;}
h2 { font-size: 26px; }
h3 { font-size: 20px; }

.centerer { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-color); }
img { max-width: 100%; height: auto; }
.sr-only { display: none; }

/* Header Elements */
#header { padding: 15px 0; background: var(--bg-color); border-bottom: 3px solid var(--primary-color); z-index: 2000; position: relative;}
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;}
#logo { max-height: 90px; 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: 20px; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
#cm_mainnavigation > li { position: relative; }
#cm_mainnavigation > li > a { display: block; padding: 10px 5px; color: var(--text-color); font-weight: 700; text-transform: uppercase; font-size: 14px; text-decoration: none; transition: color 0.3s; }
#cm_mainnavigation > li > a:hover { color: var(--accent-color); }

/* Dropdown Subnav */
.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(--accent-color); display: none; flex-direction: column; list-style: none; }
.has-sub:hover .subnav { display: flex; }
.subnav li { width: 100%; border-bottom: 1px solid #f2f2f2; }
.subnav a { display: block; padding: 12px 20px !important; line-height: 1.4; text-transform: none !important; font-weight: 600 !important; color: var(--text-color) !important; transition: background-color 0.3s, color 0.3s; }
.subnav a:hover { background-color: var(--primary-color); color: #fff !important; text-decoration: none; }

/* Mobile Burger Menu */
.mobile-menu-toggle { display: none; cursor: pointer; padding: 10px;}
.burgerline { width: 30px; height: 3px; background-color: var(--accent-color); margin: 6px 0; }

/* Keyvisual */
.keyvisual { width: 100vw; height: auto; margin-left: calc(-50vw + 50%); position: relative; overflow: hidden; background-color: var(--primary-color); margin-bottom: 40px; }
.keyvisual img { width: 100%; height: auto; object-fit: cover; max-height: 350px; 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 70%; max-width: 70%; background: rgba(255, 255, 255, 0.95); padding: 30px; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.05);}
.sidebar { flex: 0 0 25%; max-width: 25%; height: min-content; display: flex; flex-direction: column; gap: 30px;}

.sidebar-box { background: rgba(249, 249, 249, 0.95); padding: 25px; border-radius: 4px; border-top: 4px solid var(--primary-color); box-shadow: 0 2px 4px rgba(0,0,0,0.05);}
.sidebar-box h3 { color: var(--accent-color); font-size: 18px; margin-bottom: 15px; border-bottom: none; border-top:none; padding: 0;}
.sidebar-box ul { list-style: none;}
.sidebar-box li { margin-bottom: 10px; }
.sidebar-box a { color: var(--text-color); font-size: 16px; transition: color 0.3s; }
.sidebar-box a:hover { color: var(--accent-color); }
.sidebar-box p { font-size: 16px; margin-bottom: 10px;}

/* Content Styling */
#content_main p, #content_main ul, #content_main ol { margin-bottom: 20px; text-align: justify; }
#content_main ul { padding-left: 20px; }
#content_main li { margin-bottom: 8px; }

/* Utility Classes and components */
.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; flex-wrap: wrap; gap: 30px; width: 100%; margin: 30px 0; }
.cm_column { flex: 1; min-width: 45%; }
.cm_widget_button_2 { border-radius: 2px; background-color: var(--accent-color); color: white !important; padding: 15px 30px; font-weight: 700; display: inline-block; margin-top: 20px; transition: background 0.3s;}
.cm_widget_button_2:hover { background-color: var(--primary-color); color: white !important; text-decoration: none;}
.cm_widget_button_2 span { color: white !important; }

/* Sitemap */
.sitemap-list { margin-top: 20px; }
.sitemap-list > li { margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px;}
.sitemap-list h3 { margin-bottom: 10px; border: none; padding: 0; }
.sitemap-list ul { padding-left: 20px; list-style: square; }
.sitemap-list ul li { margin-bottom: 5px; }

/* Footer */
footer { width: 100%; background: var(--text-color); color: white; padding: 40px 5%; margin-top: 60px; text-align: center;}
footer a { color: white; margin: 0 10px; transition: color 0.3s; }
footer a:hover { color: var(--primary-color); 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(--accent-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(--accent-color); }
.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: 'Quattrocento Sans', sans-serif; font-size: 16px; }
.btn-primary { background: var(--accent-color); color: white; }
.btn-secondary { background: #eee; color: #333; }
.btn-primary:hover { background: var(--primary-color); }

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

@media (max-width: 768px) {
    .header-content { justify-content: space-between; padding: 10px 20px; }
    #logo { max-height: 60px; }
    .mobile-menu-toggle { display: block; }
    .sidebar { grid-template-columns: 1fr; }
    
    #cm_navigation { background: none; flex-grow: 0; width: 100%;}
    #cm_mainnavigation { display: none; flex-direction: column; background: var(--primary-color); position: absolute; top: calc(100% + 25px); 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); gap: 0;}
    #cm_mainnavigation > li > a { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 16px;}
    #cm_mainnavigation > li > a:hover { color: #fff; background: var(--accent-color);}
    
    .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; }
}
