/* DreamIT Host Theme for SupportPal */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Icon Fonts - Using absolute paths for SupportPal */
@font-face {
  font-family: 'icomoon';
  src:  url('/resources/templates/frontend/dream-panel/assets/fonts/icon-fonts/icomoon.eot?8qozq5');
  src:  url('/resources/templates/frontend/dream-panel/assets/fonts/icon-fonts/icomoon.eot?8qozq5#iefix') format('embedded-opentype'),
    url('/resources/templates/frontend/dream-panel/assets/fonts/icon-fonts/icomoon.ttf?8qozq5') format('truetype'),
    url('/resources/templates/frontend/dream-panel/assets/fonts/icon-fonts/icomoon.woff?8qozq5') format('woff'),
    url('/resources/templates/frontend/dream-panel/assets/fonts/icon-fonts/icomoon.svg?8qozq5#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="icon-"], [class*=" icon-"] {
  font-family: 'icomoon' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Icon definitions */
.icon-icon-1:before { content: "\e900"; }
.icon-icon-2:before { content: "\e901"; }
.icon-icon-5:before { content: "\e904"; }
.icon-icon-6:before { content: "\e905"; }
.icon-icon-7:before { content: "\e906"; }
.icon-icon-8:before { content: "\e907"; }
.icon-icon-26:before { content: "\e919"; }
.icon-icon-27:before { content: "\e91a"; }
.icon-icon-28:before { content: "\e91b"; }
.icon-icon-29:before { content: "\e91c"; }
.icon-icon-40:before { content: "\e927"; }
.icon-icon-41:before { content: "\e928"; }
.icon-icon-42:before { content: "\e929"; }
.icon-icon-47:before { content: "\e92e"; }
.icon-icon-48:before { content: "\e92f"; }
.icon-icon-52:before { content: "\e933"; }
.icon-icon-53:before { content: "\e934"; }
.icon-icon-63:before { content: "\e93e"; }
.icon-website-builder-1:before { content: "\e942"; }
.icon-acronics:before { content: "\e943"; }

/* Reset and Base Styles */
.dreamit-header * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.header {
    display: block;
    padding: 20px 0 0px 0;
    position: relative;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.header-main {
    display: block;
    position: relative;
}

.logo {
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Header Right Block */
.header-right-block {
    display: block;
}

.header-right-top-block {
    display: block;
}

/* Contact Box */
.header-contact-box {
    display: inline-block;
}

.header-contact-box a {
    display: inline-block;
    padding-left: 40px;
    position: relative;
    text-decoration: none;
}

.header-contact-box a p {
    margin-bottom: 0px;
    color: #646464;
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
}

.header-contact-box a p span {
    display: block;
    color: #a9a9a9;
    font-size: 12px;
}

.header-contact-box .contact-icon {
    display: inline-block;
    position: absolute;
    left: 0px;
    top: 0px;
    font-size: 30px;
    color: #3c7fff;
}

/* Social Icons */
.header-social {
    display: inline-block;
    border-left: 1px solid #e4e7eb;
    margin-left: 80px;
    padding: 0 50px;
}

.header-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-social ul li {
    display: inline-block;
    padding: 0 10px;
}

.header-social ul li a {
    color: #aab1cf;
    display: inline-block;
    font-size: 19px;
    text-decoration: none;
    transition: color 0.3s;
}

.header-social ul li a:hover {
    color: #0060ff;
}

/* Header Buttons */
.header-buttons {
    display: inline-block;
}

.header-buttons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-buttons ul li {
    display: inline-block;
    margin-left: 7px;
}

.header-buttons ul li a {
    display: block;
    padding: 7px 15px;
    line-height: 16px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
}

.header-buttons ul li a span {
    font-weight: 400;
    display: inline-block;
    margin-right: 3px;
}

.header-buttons ul li a.webmail {
    background: #2d8aff;
    color: #fff;
    border: 1px solid #2d8aff;
}

.header-buttons ul li a.webmail:hover {
    background: #0f70ea;
    color: #fff;
}

.header-buttons ul li a.mydreamit {
    background: #333333;
    color: #fff;
    border: 1px solid #333333;
}

.header-buttons ul li a.mydreamit:hover {
    background: #545454;
    border: 1px solid #545454;
}

/* Main Menu */
.main-menu {
    display: block;
}

.main-menu > ul {
    display: block;
    text-align: right;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu > ul > li {
    display: inline-block;
    position: relative;
}

.main-menu > ul > li > a {
    color: #363232;
    display: block;
    font-size: 18px;
    padding: 17px 15px 22px 15px;
    position: relative;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.main-menu > ul > li:hover > a {
    color: #0060ff;
}

.main-menu > ul > li.drp > a:after {
    content: '';
    width: 0;
    height: 0px;
    display: block;
    border: 4px solid #363232;
    border-color: #363232 transparent transparent transparent;
    position: absolute;
    right: 0px;
    top: 27px;
}

.main-menu > ul > li.drp > a:hover:after {
    border-color: #0060ff transparent transparent transparent;
}

/* Mega Dropdown */
.mega-drop {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: -10px;
    min-width: 600px;
    z-index: 1000;
}

.main-menu > ul > li:hover .mega-drop {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.right-dropdown-menu .mega-drop {
    left: auto;
    right: 0;
    transform: none;
}

.mega-drop-wraper {
    padding: 30px;
}

.mega-drop .row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.mega-drop .col-lg-6,
.mega-drop .col-lg-4 {
    padding: 15px;
}

.mega-drop .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.mega-drop .col-lg-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.mega-drop-box {
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.mega-drop-box:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.mega-drop a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.mega-drop-box > span:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    color: #0066cc;
    font-size: 30px;
}

.mega-drop-box img {
    max-width: 60px;
    max-height: 60px;
}

.mega-drop-box h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.mega-drop-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle .line {
    width: 25px;
    height: 2px;
    background: #333;
    transition: all 0.3s;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .dreamit-header .header-right-top-block {
        gap: 20px;
    }
    
    .dreamit-header .menu-list {
        gap: 25px;
    }
    
    .dreamit-header .mega-drop {
        min-width: 500px;
    }
}

@media (max-width: 768px) {
    .dreamit-header .header-main {
        flex-wrap: wrap;
    }
    
    .dreamit-header .header-right-block {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
    }
    
    .dreamit-header .header-right-top-block {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .dreamit-header .menu-toggle {
        display: flex;
    }
    
    .dreamit-header .menu-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 0;
    }
    
    .dreamit-header .menu-list.active {
        display: flex;
    }
    
    .dreamit-header .menu-list > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .dreamit-header .menu-list > li > a {
        padding: 15px 20px;
    }
    
    .dreamit-header .mega-drop {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background: #f8f9fa;
    }
    
    .dreamit-header .col-lg-6,
    .dreamit-header .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Footer Styles */
.footer { 
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.footer-contact-block { 
    display: block; 
    background: #2c2c2c; 
    padding: 44px 0;
}

.footer-contact-main { 
    display: block;
}

.footer-contact-left { 
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-left li { 
    display: inline-block; 
    padding-left: 70px; 
    position: relative; 
    margin-left: 50px; 
    border-right: 1px solid #525252; 
    padding-right: 50px;
}

.footer-contact-left li:first-child { 
    margin-left: 0px;
}

.footer-contact-left li:last-child {
    border-right: none;
}

.footer-contact-left li .contact-icons { 
    display: inline-block; 
    position: absolute; 
    left: 0px; 
    top: 0px; 
    color: #f3f3f3; 
    font-size: 45px;
}

.footer-contact-left li p { 
    margin-bottom: 0px; 
    color: #ffffff; 
    font-size: 18px; 
    font-family: 'Inter', sans-serif;
}

.footer-contact-left li p span { 
    display: block; 
    color: #8d8d8d; 
    font-size: 14px; 
    font-weight: 400;
}

.footer-contact-buttons { 
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-buttons li { 
    display: inline-block; 
    margin-left: 20px;
}

.footer-contact-buttons li a { 
    display: block; 
    padding: 10px 30px; 
    background: #303030; 
    border: 1px solid #969696; 
    color: #ffffff; 
    font-size: 16px; 
    font-weight: 700; 
    font-family: 'Inter', sans-serif; 
    border-radius: 3px; 
    width: 175px; 
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact-buttons li a:hover { 
    background: #969696;
}

.footer-links-block { 
    display: block; 
    padding: 30px 0 55px 0; 
    background: #333333;
}

.footer-links-main { 
    display: block;
}

.footer-links { 
    display: block; 
    margin-top: 30px;
}

.footer-links h5 { 
    color: #ffffff; 
    font-size: 18px; 
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links ul { 
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li { 
    display: block; 
    margin-bottom: 2px; 
    line-height: 20px;
}

.footer-links ul li a { 
    color: #fff; 
    font-size: 14px; 
    line-height: 24px; 
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover { 
    color: #6e6e6e;
}

.footer-links p { 
    color: #fff; 
    font-size: 14px; 
    font-family: 'Inter', sans-serif;
    margin-bottom: 10px;
}

.footer-compare-ul { 
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-compare-ul li { 
    display: block; 
    margin-top: 10px;
}

.footer-compare-ul li:first-child { 
    border-top: none;
}

.footer-compare-ul li a { 
    display: block; 
    padding: 7px 18px; 
    position: relative; 
    background: #2c2c2c; 
    color: #ffffff; 
    font-size: 14px; 
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease;
}

.footer-compare-ul li a:after { 
    content: "\e90a"; 
    font-family: 'icomoon'; 
    display: inline-block; 
    font-size: 10px; 
    position: absolute; 
    right: 15px; 
    top: 5px;
}

.footer-compare-ul li a:hover { 
    background: #1e1e1e;
}

.footer-about { 
    display: block; 
    margin-top: 40px;
}

.footer-about p { 
    color: #fff; 
    font-size: 14px; 
    line-height: 24px; 
    font-family: 'Inter', sans-serif;
    margin-bottom: 15px;
}

.footer-logo { 
    display: inline-block; 
    margin-bottom: 40px;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}

.footer-follow-us {
    display: block;
    margin-top: 20px;
}

.footer-follow-us b {
    color: #fff;
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
}

.footer-follow-us a {
    display: inline-block;
    margin-right: 15px;
    color: #fff;
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer-follow-us a:hover {
    color: #0066cc;
}

.footer-subscribe {
    display: block;
    background: #2c2c2c;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-subscribe h6 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-subscribe p {
    color: #8d8d8d;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 20px;
}

.subsfield-container {
    display: block;
}

.sendy-subscribe-form {
    display: flex;
    gap: 20px;
    align-items: end;
}

.subs-fiels {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.subs-fiels label {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.subs_text {
    padding: 12px 15px;
    border: 1px solid #555;
    background: #3a3a3a;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.subs_text:focus {
    outline: none;
    border-color: #0066cc;
}

.blue-btn {
    background: #0066cc;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.blue-btn:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

.subs-btn {
    white-space: nowrap;
}

.footer-bottom-block { 
    display: block; 
    background: #2c2c2c; 
    padding: 45px 0;
}

.footer-bottom-main { 
    display: block;
}

.footer-bottom-left { 
    display: block;
}

.footer-bottom-left ul { 
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom-left ul li { 
    display: inline-block; 
    vertical-align: middle; 
    margin-right: 20px;
}

.footer-bottom-left ul li img {
    max-height: 60px;
    width: auto;
}

.footer-bottom-right { 
    display: block; 
    text-align: right;
}

.footer-payment { 
    display: inline-block; 
    vertical-align: middle;
}

.footer-payment img {
    max-width: 100%;
    height: auto;
}

.botm-cpy {
    border-top: 1px solid #555;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
}

.copy-righ {
    color: #8d8d8d;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.copy-righ span {
    margin: 0 10px;
}

/* Responsive Footer Styles */
@media (max-width: 1024px) {
    .footer-contact-left li {
        margin-left: 30px;
        padding-left: 60px;
        padding-right: 30px;
    }
    
    .footer-contact-left li:first-child {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .footer-contact-main {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-contact-left {
        justify-content: center;
    }
    
    .footer-contact-left li {
        margin: 0 15px;
        padding: 0;
        border-right: none;
        margin-bottom: 20px;
    }
    
    .footer-contact-left li .contact-icons {
        position: static;
        display: block;
        margin-bottom: 10px;
    }
    
    .footer-contact-buttons {
        justify-content: center;
    }
    
    .footer-contact-buttons li {
        margin: 0 10px;
    }
    
    .footer-contact-buttons li a {
        width: 150px;
        font-size: 14px;
        padding: 8px 20px;
    }
    
    .footer-links-block .row {
        flex-direction: column;
    }
    
    .footer-links-block .col-md-3 {
        margin-bottom: 30px;
    }
    
    .footer-subscribe .row {
        flex-direction: column;
    }
    
    .sendy-subscribe-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-bottom-main .row {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-right {
        text-align: center;
        margin-top: 20px;
    }
    
    .footer-bottom-left ul li {
        margin: 0 10px;
        margin-bottom: 15px;
    }
}

/* Bootstrap Grid System for Footer */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-4, .col-lg-8, .col-md-3, .col-12 {
    padding: 0 15px;
}

.col-lg-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.col-lg-8 {
    flex: 0 0 66.667%;
    max-width: 66.667%;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.no-gutters {
    margin: 0;
}

.no-gutters > [class*="col-"] {
    padding: 0;
}

@media (max-width: 768px) {
    .col-lg-4, .col-lg-8, .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Utility Classes */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Button Styles */
.commen-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.commen-btn:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

/* Custom scrollbar for dropdowns */
.dreamit-header .mega-drop::-webkit-scrollbar {
    width: 8px;
}

.dreamit-header .mega-drop::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dreamit-header .mega-drop::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.dreamit-header .mega-drop::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* SupportPal Integration Styles */
body {
    padding-top: 0 !important; /* Remove default padding */
}

/* Ensure header stays on top */
.dreamit-header {
    position: relative;
    z-index: 1000;
}

/* Style adjustments for SupportPal content */
.sp-container {
    margin-top: 20px;
}

/* Mobile nav adjustments */
@media (max-width: 768px) {
    .sp-mobile-nav {
        top: 70px !important; /* Account for DreamIT header */
    }
}

/* User dropdown styles */
.sp-user-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.sp-user-menu li {
    padding: 0;
}

.sp-user-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.sp-user-menu a:hover {
    background: #f8f9fa;
}

.sp-user-menu .sp-divider {
    border-top: 1px solid #e9ecef;
    margin: 5px 0;
}

/* Active dropdown state */
.sp-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Current menu item highlight */
.current-menu-item > a {
    color: #0066cc !important;
}

/* Sidebar Styles */
.sp-sidebar-box h2 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 12px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Override any other sidebar h2 styles */
.sp-sidebar h2 {
    font-size: 14px !important;
}

.sp-sidebar-box {
    margin-bottom: 24px !important;
}

.sp-sidebar-box ul.sp-nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sp-sidebar-box ul.sp-nav li {
    margin-bottom: 4px !important;
}

.sp-sidebar-box ul.sp-nav li a {
    display: block !important;
    padding: 6px 12px !important;
    color: #666 !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.sp-sidebar-box ul.sp-nav li a:hover {
    background: #f8f9fa !important;
    color: #0066cc !important;
}

.sp-sidebar-box ul.sp-nav li a .sp-badge {
    background: #e9ecef !important;
    color: #666 !important;
    font-size: 12px !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
}

.sp-sidebar-box ul.sp-nav li a:hover .sp-badge {
    background: #0066cc !important;
    color: white !important;
}

/* Force override all sidebar h2 styles - maximum specificity */
body .sp-sidebar .sp-sidebar-box h2,
body .sp-sidebar h2,
.sp-sidebar-box h2,
.sp-sidebar h2,
div.sp-sidebar h2,
div.sp-sidebar-box h2 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 12px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
}

/* Form Input Styles - Better visibility */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select,
.sp-input-group input,
.sp-form-input {
    border: 2px solid #007aff !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    background-color: #ffffff !important;
    color: #333333 !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus,
.sp-input-group input:focus,
.sp-form-input:focus {
    border-color: #0056b3 !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1) !important;
    outline: none !important;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
input[type="search"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
    color: #999999 !important;
    opacity: 1 !important;
}

/* Article Feedback Button Styles */
/* Fix for icon color when feedback button is selected */
.sp-rate-article-container .sp-button-group button.sp-rate-article {
    transition: all 0.2s ease;
}

/* When a feedback button is selected/active, make the icon white */
.sp-rate-article-container .sp-button-group button.sp-rate-article.selected i,
.sp-rate-article-container .sp-button-group button.sp-rate-article.sp-button--primary i,
.sp-rate-article-container .sp-button-group button.sp-rate-article:focus i,
.sp-rate-article-container .sp-button-group button.sp-rate-article.active i {
    color: white !important;
}

/* Ensure proper hover states */
.sp-rate-article-container .sp-button-group button.sp-rate-article:hover i {
    opacity: 0.8;
}

/* Additional improvements for the feedback section */
.sp-rate-article-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Improve button spacing and appearance */
.sp-rate-article-container .sp-button-group {
    margin-left: 0.5rem;
}

.sp-rate-article-container .sp-button-group button {
    min-width: 50px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Homepage Category Buttons - Blue Border Style */
.category-button,
.sp-homepage-category,
.sp-homepage-categories .sp-card,
.sp-homepage-categories a[href*="/knowledgebase/"] {
    border: 2px solid #007aff !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.category-button:hover,
.sp-homepage-category:hover,
.sp-homepage-categories .sp-card:hover,
.sp-homepage-categories a[href*="/knowledgebase/"]:hover {
    border-color: #0056b3 !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* Center Popular & Latest Articles Section */
.sp-homepage-articles h2,
.sp-content h2:contains("Popular"),
body h2.sp-text-2xl.sp-font-normal {
    text-align: center !important;
}

/* Also center the subtitle */
.sp-homepage-articles p.sp-text-secondary,
body p.sp-text-secondary {
    text-align: center !important;
    margin-bottom: 2rem !important;
}

/* Article Cards - Blue Border Style */
.sp-article-card,
.sp-card.sp-shadow,
.sp-selfservice-article,
.article-list-item,
.sp-content a[href*="/knowledgebase/article/"] {
    border: 2px solid #007aff !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.sp-article-card:hover,
.sp-card.sp-shadow:hover,
.sp-selfservice-article:hover,
.article-list-item:hover,
.sp-content a[href*="/knowledgebase/article/"]:hover {
    border-color: #0056b3 !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* Center-align article lists */
.sp-article-list {
    text-align: center !important;
}

.sp-article-list li {
    text-align: center !important;
    margin: 0 auto !important;
}

.sp-article-list a.article-card {
    display: inline-block !important;
    text-align: left !important;
    max-width: 600px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Center the article card content but keep text left-aligned inside */
.article-card-body {
    text-align: left !important;
}

/* Center pagination if present */
.sp-article-list + .pagination,
.sp-article-list + nav {
    text-align: center !important;
    margin-top: 2rem !important;
}

/* Remove borders from article links in Popular & Latest Articles */
.trending-articles .article-item a {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: none !important;
    padding: 0 !important;
}

/* Article Grid Layout Fixes */
.sp-article-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.sp-article-list li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

/* Fix container widths */
.sp-content {
    width: 100% !important;
    max-width: 100% !important;
}

.sp-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* Responsive article grid */
@media (max-width: 768px) {
    .sp-article-list {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 0 10px !important;
    }
}

/* Remove blue outline from related articles */
.sp-related-articles li a,
.sp-related-articles a,
ul.sp-related-articles li a {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    color: #333 !important;
    transition: color 0.3s ease !important;
}

.sp-related-articles li a:hover,
.sp-related-articles a:hover,
ul.sp-related-articles li a:hover {
    color: #007aff !important;
    text-decoration: underline !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Fix table of contents positioning and functionality */
.sp-sidebar-box {
    position: sticky !important;
    top: 20px !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

.sp-sidebar-box h2 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    color: #333 !important;
}

.sp-sidebar-box ul.sp-nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sp-sidebar-box ul.sp-nav li {
    margin-bottom: 10px !important;
}

.sp-sidebar-box ul.sp-nav li a {
    color: #666 !important;
    text-decoration: none !important;
    display: block !important;
    padding: 5px 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transition: color 0.3s ease !important;
}

.sp-sidebar-box ul.sp-nav li a:hover {
    color: #007aff !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Move sidebar to the left on article pages */
.sp-content-wrapper {
    display: flex !important;
    flex-direction: row-reverse !important;
    gap: 30px !important;
    align-items: flex-start !important;
}

.sp-sidebar {
    order: -1 !important;
}

/* Ensure smooth scrolling for table of contents links */
html {
    scroll-behavior: smooth !important;
}

/* Prevent scroll jump issues */
.sp-sidebar-box a[href^="#"] {
    cursor: pointer !important;
}

@media (max-width: 480px) {
    .sp-article-list {
        padding: 0 5px !important;
    }
    
    .sp-container {
        padding: 0 10px !important;
    }
}

/* Mobile mega-menu behaviour fix */
@media (max-width: 768px) {
    .dreamit-header .menu-list > li .mega-drop {
        display: none;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
        min-width: 100%;
    }

    .dreamit-header .menu-list > li.open > .mega-drop {
        display: block;
    }

    .dreamit-header .menu-list > li.drp > a {
        padding-right: 32px;
        position: relative;
    }

    .dreamit-header .menu-list > li.drp > a::after {
        right: 14px;
        top: 50%;
        transform: translateY(-30%);
    }

    .dreamit-header .menu-list > li.open > a::after {
        transform: translateY(-70%) rotate(180deg);
    }
}

/* Back-to-top button */
.dreamit-back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #0060ff;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 6px 16px rgba(0, 96, 255, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 9999;
}

.dreamit-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dreamit-back-to-top:hover {
    background: #014fcf;
}
