/*
Theme Name: NRDS Business Theme
Theme URI: https://www.n0kmo.com
Description: Based custom coding for NRDS Business Theme.
Version: 2.0
Author: Jeremiah Bagula
Author URI: http://www.nrds.life/
Tags: white, two-columns, fullwidth-template, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, theme-options, threaded-comments, translation-ready
*/

/* Import the CSS from othere files */
@import "assets/css/header.css";
@import "assets/css/footer.css";
@import "assets/css/navigation.css";
@import "assets/css/comments.css";
@import "assets/css/social-icons.css";
/* 
@import "assets/css/sidebar.css";
@import "assets/css/content.css";
@import "assets/css/widgets.css"; 
*/

/* Fullscreen mode: remove max-width and padding from site content */
.nrds-fullscreen #site-content {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100vw !important;
}
.nrds-fullscreen #main {
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.nrds-fullscreen #left-sidebar.sidebar,
.nrds-fullscreen #right-sidebar.sidebar {
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

:root {
    --nrd-navy:        #1d3547;
    --nrd-navy-dark:   #132634;
    --nrd-navy-deep:   #0d1b25;
    --nrd-orange:      #e8641c;
    --nrd-orange-dark: #c9520f;
    --nrd-red:         #d62828;
    --nrd-cream:       #f7f3ee;
    --nrd-gray-100:    #f4f6f8;
    --nrd-gray-300:    #d5dce2;
    --nrd-gray-600:    #5b6b78;
    --nrd-white:       #ffffff;
    --nrd-text:        #1d3547;
    --nrd-black:       #000000;

    --nrd-font-head: "Oswald", "Arial Narrow", sans-serif;
    --nrd-font-body: "Roboto", Arial, sans-serif;

    --nrd-max:    1200px;
    --nrd-gutter: 24px;
    --nrd-radius: 6px;
    --nrd-shadow: 0 10px 30px rgba(13, 27, 37, .12);

    --nrd-header-shadow: 0 2px 16px rgba(0,0,0,0.07);

    --primary-color: #ff0000; 
    --secondary-color: #00ff00;     
    --background-color: #fff;
    --text-color: #000;
    --menu-underline-color: #f00;
    --menu-hover-bg-color: rgba(255, 0, 0, 0.75);
    --menu-hover-border-color: #f00;
    --menu-focus-bg-color: rgba(255, 0, 0, 0.2);
    --content-max-width: 1440px;
    --content-padding: clamp(1rem, 4vw, 3.5rem);
    --section-gap: clamp(1.5rem, 4vw, 3.5rem);
    --card-radius: 1.5rem;
    --card-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
}

/* header {
    background-color: inherit; 
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    max-height: 20%;
    padding: 20px 0;
    text-align: center;
} */

/* Topbar styling and Header styling */
.nrd-topbar { 
    height: 6px; 
    background: var(--nrd-orange); 
}

.nrd-header {
    background-color: var(--background-color);
    position: absolute;
    top: 6px; left: 0; right: 0;
    z-index: 50;
}

.nrd-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
}

/* Layout lives on .nrd-header__inner; this block only styles the bar itself */
/* .nrd-header {
    background-color: var(--background-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    width: 100%;
} */



.sticky-header {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    left: 0;
    position: fixed;
    transition: all 0.3s ease-in-out;
    top: 32px;
    width: 100%;
    z-index: 999; 
}

body:not(.admin-bar) .nrd-header.sticky-header {
    top: 0;
}



h1 {
    margin: 0;
}

/* Navigation styling */
nav.social-navigation {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

/*nav {
    margin: 20px 0;
}*/

/* nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
}

nav a:hover {
    background: #555;
} */

/* Basic Navigation Bar Styling */
#main-navigation {
    background-color: #fff;
    padding: 10px 0;
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    font-size: 1.25rem;
    justify-content: center; 
}

.main-menu li {
    margin: 0 15px; 
}

.main-menu li a {
    color: #000; 
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    transition: background-color 0.3s ease;
}

.main-menu li a:focus,
.main-menu li a:active {
    outline: none;
    background-color: rgba(255, 0, 0, 0.2); 
}

.main-menu li a:hover {
    background-color: rgba(255, 0, 0, 0.75);
    border-color: #f00;
}

/* Styling for Sub-Menus (if applicable) */
.main-menu ul.sub-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    padding: 10px 0;
    list-style: none;
    min-width: 150px;
    z-index: 10;
}

.main-menu li:hover > ul.sub-menu {
    display: block;
}

.main-menu ul.sub-menu li {
    margin: 0;
}

.main-menu ul.sub-menu li a {
    padding: 8px 15px;
}

/* Layout for Main Content and Sidebar */
#site-content {
    display: flex;
    flex-direction: row;
    flex-basis: 100%;
    flex-grow: 1;
    background-color: inherit;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: var(--content-padding);
    box-sizing: border-box;
    gap: var(--section-gap);
    width: 100vw;
    min-height: 70vh;
}

/* Sidebars */
#left-sidebar.sidebar,
#right-sidebar.sidebar {
    display: flex;
    flex-direction: column;
    width: clamp(180px, 16vw, 260px);
    min-width: 140px;
    max-width: 260px;
    background-color: #f7f7f7;
    border-radius: var(--card-radius);
    /* box-shadow removed for non-fullscreen */
    padding: 1.5rem 1rem;
    margin: 0;
    box-sizing: border-box;
    height: fit-content;
}

#main {
    flex-grow: 1;
    background-color: #fff;
    border-radius: var(--card-radius);
    /* box-shadow removed for non-fullscreen */
    padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2.5rem);
    margin: 0;
    min-width: 0;
    box-sizing: border-box;
    min-height: 60vh;
}

.site-branding {
    text-align: center;
    /* margin-bottom: clamp(1.5rem, 4vw, 3.5rem); */
}

.site-branding .site-title {
    font-size: 2.5em;
    margin: 0;
}

.site-branding .site-title a {
    color: #000;
    text-decoration: none;
}

.site-branding .site-title a:hover {
    text-decoration: underline;
}

.custom-logo-link img {
    max-width: 200px;
    height: auto;
}

#colophon {
    background: #222;
    color: #fff;
    text-align: center;
    padding: clamp(1.5rem, 4vw, 3.5rem) 0 1rem 0;
    margin-top: clamp(1.5rem, 4vw, 3.5rem);
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}
/* Responsive adjustments for mobile/tablet */
@media (max-width: 900px) {
    #site-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0.5rem;
    }
    #left-sidebar.sidebar,
    #right-sidebar.sidebar {
        max-width: 100vw;
        width: 100%;
        min-width: 0;
        margin-bottom: 1.5rem;
        border-radius: var(--card-radius);
        /* box-shadow removed for non-fullscreen */
    }
    #main {
        padding: 1.5rem 0.5rem;
        min-height: 40vh;
    }
}
@media (max-width: 600px) {
    #site-content {
        padding: 0.5rem 0.25rem;
        gap: 1rem;
    }
    #main {
        padding: 1rem 0.25rem;
    }
    #colophon {
        padding: 1.2rem 0 0.5rem 0;
        margin-top: 1.2rem;
    }
}

/* Site footer styles */
footer {
    background: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    width: 100%;
}

/* Footer columns are styled in assets/css/footer.css */

/* Site Copyright */
footer .site-copyright {
    flex-basis: 100%;
    font-size: 0.9em;
    margin-top: 10px;
}

/* All the post related styling */
.post > header {
    border-bottom: 2px solid var(--primary-color);
    /* margin-bottom: 20px; */
    /* padding-bottom: 10px; */
}