:root {
     --background-color: #ffffff;
     --heading-color: #1a1a1a;
     --body-primary-color: #000000;
     --body-secondary-color: #6c757d;
     --border-color: #e9ecef;
     --card-background-color: #ffffff;
     color-scheme: light;
}

[data-theme=dark] {
     --background-color: #0F0F0F;
     --heading-color: #ffffff;
     --body-primary-color: #ffffff;
     --body-secondary-color: #adb5bd;
     --border-color: rgba(255, 255, 255, 0.08);
     --card-background-color: rgba(255,255,255,0.1);
     color-scheme: dark;
}


/* * -------------------
* Base & Typography
* -------------------
*/
body {
     font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
     background-color: var(--background-color);
     color: var(--body-primary-color);
     transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
     color: #ffffff;
     background: #000000;
}
[data-theme=dark] ::selection {
     color: #000000;
     background: #ffffff;
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1, .fw-bold {
     font-weight: 700 !important;
     color: var(--heading-color);
}

a {
     color: var(--body-primary-color);
     transition: all 0.15s ease-in-out;
}

hr {
     margin: 2rem 0;
}

/* Primary Button */
.trc-btn-primary {
     background-color: #0f0f0f;
     color: #ffffff;
     border-radius: 50px;
     padding: 9px 20px;
     font-weight: 500;
     transition: all 0.3s ease;
}
.trc-btn-primary:hover,
.trc-btn-primary:focus {
     background-color: #333333;
     color: #ffffff;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.trc-btn-primary:focus,
.trc-btn-primary:active {
     background-color: #444444 !important;
     color: #ffffff !important;
     border-color: transparent !important;
}
[data-theme=dark] .trc-btn-primary {
     background-color: #ffffff;
     color: #000000;
}
[data-theme=dark] .trc-btn-primary:hover {
     background-color: #d9d9d9;
}
[data-theme=dark] .trc-btn-primary:focus,
[data-theme=dark] .trc-btn-primary:active {
     background-color: #cccccc !important;
     color: #000000 !important;
}

/* Secondary Button */
.trc-btn-secondary {
     background: rgba(0, 0, 0, 0.05);
     color: #000000;
     border-radius: 50px;
     padding: 9px 20px;
     font-weight: 500;
     transition: all 0.3s ease;
}
.trc-btn-secondary:hover {
     background: rgba(0, 0, 0, 0.1);
}
.trc-btn-secondary:focus,
.trc-btn-secondary:active {
     background-color: rgba(0, 0, 0, 0.15) !important;
     border-color: transparent !important;
}
[data-theme=dark] .trc-btn-secondary {
     background-color: rgba(255,255,255,0.1);
     color: #ffffff;
}
[data-theme=dark] .trc-btn-secondary:hover {
     background-color: rgba(255,255,255,0.2);
}
[data-theme=dark] .trc-btn-secondary:focus,
[data-theme=dark] .trc-btn-secondary:active {
     background-color: rgba(255,255,255,0.15) !important;
     color: #ffffff;
}

/* Icon Button */
.trc-btn-icon {
     background: rgba(0, 0, 0, 0.05);
     color: #000000;
     width: 44px;
     height: 44px;
     padding: 0;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     border-radius: 50%;
     text-decoration: none;
     transition: color 0.3s ease;
}
.trc-btn-icon:hover {
     background: rgba(0, 0, 0, 0.1);
}
.trc-btn-icon:focus,
.trc-btn-icon:active {
     background-color: rgba(0, 0, 0, 0.15) !important;
     border-color: transparent !important;
}
[data-theme=dark] .trc-btn-icon {
     background-color: rgba(255,255,255,0.1);
     color: #ffffff;
}
[data-theme=dark] .trc-btn-icon:hover {
     background-color: rgba(255,255,255,0.2);
}
[data-theme=dark] .trc-btn-icon:focus,
[data-theme=dark] .trc-btn-icon:active {
     background-color: rgba(255,255,255,0.15) !important;
     color: #ffffff;
}


/* Form Input */
.form-label {
     font-weight: 700;
     margin-bottom: 0.5rem;
     color: var(--body-primary-color);
}
.form-control {
     background-color: rgba(255,255,255,0.1);
     padding: 9px 20px;
     border-radius: 40px;
     border: 1px solid var(--border-color);
     font-size: 1rem;
     color: var(--body-primary-color);
     background-clip: unset;
     transition: all 0.3s ease;
}
.form-control:hover,
.form-control:focus {
     background-color: rgba(255, 255, 255, 0.15);
}
.form-control:focus {
     border-color: var(--body-primary-color);
     box-shadow: none;
     color: var(--body-primary-color);;
}
.form-control::placeholder {
     color: var(--body-secondary-color);
}

/* * -------------------
* Navbar
* -------------------
*/
.navbar {
     background-color: rgba(255, 255, 255, 0.8);
     backdrop-filter: blur(20px);
     border-bottom: 1px solid var(--border-color);
     height: 70px;
     z-index: 1030;
}
[data-theme="dark"] .navbar {
     background-color: rgba(15, 15, 15, 0.8);
}

.navbar-brand {
     padding: 0;
     font-weight: 300;
}
.navbar-brand span {
     color: var(--body-primary-color);
}

.navbar-toggler {
     border: none;
     box-shadow: none !important;
}


/* Dropdown */
.dropdown-menu {
     border: 1px solid var(--border-color);
     border-radius: 1rem;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
     padding: 0.5rem;
     min-width: 160px;
}
[data-theme=dark] .dropdown-menu {
     background-color: #282828;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Theme Toggle Dropdown */
[data-theme=dark] .theme-btn-icon .light-icon,
.theme-btn-icon .dark-icon {
     display: none;
}
[data-theme=dark] .theme-btn-icon .dark-icon,
.theme-btn-icon .light-icon {
     display: inline;
}
.theme-dropdown .dropdown-item {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
[data-theme=dark] .theme-dropdown .dropdown-item {
     color: #ffffff;
}
.theme-dropdown .dropdown-item.active {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000000;
}
.theme-dropdown .dropdown-item.active:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
.theme-dropdown .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
.theme-dropdown .dropdown-item:focus {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000000;
}
[data-theme=dark] .theme-dropdown .dropdown-item.active {
     background-color: rgba(255, 255, 255, 0.05);
     color: #ffffff;
}
[data-theme=dark] .theme-dropdown .dropdown-item.active:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .theme-dropdown .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
[data-theme=dark] .theme-dropdown .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Searchbar Dropdown */
.search-bar-dropdown .dropdown-menu {
     position: fixed;
     width: 100%;
     margin: 0;
}
@media (max-width: 992px) {
     .search-bar-dropdown .search-container {
          max-width: 100%;
     }
}

/* * -------------------
* Search Bar 
* -------------------
*/
.search-container {
     position: relative;
     width: 100%;
     max-width: 400px;
}

.search-input {
     padding-left: 40px;
     z-index: 1;
}

.search-icon {
     position: absolute;
     left: 15px;
     top: 50%;
     transform: translateY(-50%);
     color: #aaa;
     font-size: 0.9rem;
}

/* Live Search Results Dropdown */
.search-results {
     position: absolute;
     top: 100%;
     left: 0;
     right: 0;
     background-color: #fff;
     border: 1px solid var(--border-color);
     border-radius: 1rem;
     margin-top: 5px;
     display: none;
     z-index: 1050;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
     max-height: 300px;
     overflow-y: auto;
}
[data-theme=dark] .search-results {
     background-color: #282828;
}
.search-result-item {
     display: block;
     padding: 10px 15px;
     text-decoration: none;
     border-bottom: 1px solid var(--border-color);
     font-size: 0.9rem;
     cursor: pointer;
     color: var(--body-primary-color);
}
.search-result-item:last-child {
     border: none;
}
.search-result-item:hover {
     background-color: rgba(0, 0, 0, 0.05);
}
[data-theme=dark] .search-result-item:hover {
     background-color: rgba(255,255,255,0.05);
}


/* * -------------------
* Sidebar 
* -------------------
*/
@media (min-width: 992px) {
     .sidebar {
          position: sticky;
          top: 70px;
          height: calc(100vh - 70px);
          overflow-y: auto;
          border-right: 1px solid var(--border-color);
          z-index: 1000;
          width: 280px;
     }
}

/* --- Sidebar Menu --- */
.sidebar-menu ul {
     list-style: none;
}

.sidebar-menu .menu-item a {
     display: block;
     padding: 0.5rem 0;
     text-decoration: none;
     color: var(--body-secondary-color);
}

.sidebar-menu .sub-menu {
     padding-left: 15px;
}

.sidebar-menu .sub-menu .menu-item a {
     border-left: 2px solid #eee;
     padding: 8px 20px;
}
[data-theme=dark] .sidebar-menu .sub-menu .menu-item a {
     border-color: #444;
}
.sidebar-menu .menu-item a.active {
     color: var(--body-primary-color);
     font-weight: 500;
}
.sidebar-menu .sub-menu .menu-item a.active {
     border-left: 2px solid var(--body-primary-color);
}

/* Offcanvas */
.offcanvas-lg {
     border-color: var(--border-color) !important;
}
[data-theme="dark"] .offcanvas-lg {
     background-color: rgb(15 15 15);
}
[data-theme=dark] .offcanvas-lg .btn-close {
     filter: invert(1) grayscale(100%) brightness(200%);
}

/* WP lightbox */
.wp-lightbox-overlay .scrim {
     background-color: var(--background-color) !important;
}
.wp-lightbox-overlay .close-button {
     fill: var(--body-primary-color) !important;
}


/* --- Main Content Styling --- */
.main-content {
     flex: 1;
     padding: 40px 50px;
}
@media (max-width: 992px) {
     .main-content {
          padding: 30px 0;
     }
}

h1 {
     margin-bottom: 20px;
     font-size: 2.2rem;
}

h2 {
     margin-bottom: 15px;
     font-size: 1.75rem;
}

h3 {
     margin-top: 30px;
     margin-bottom: 15px;
     font-size: 1.3rem;
}

p {
     line-height: 1.7;
     margin-bottom: 20px;
     font-size: 1rem;
}

ul.content-list {
     margin-bottom: 20px;
}

ul.content-list li {
     margin-bottom: 8px;
     line-height: 1.6;
}

.trc-alert {
     background-color: #f7f7f7;
     border-left: 3px solid #000;
     padding: 1rem;
     margin-bottom: 1rem;
}
[data-theme=dark] .trc-alert {
     background-color: rgba(255,255,255,0.1);
     border-left-color: #fff;
}
.trc-alert p {
     margin: 0;
}

/* Footer */
footer {
     border-top: 1px solid var(--border-color);
}