/* --- Global Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0d1117; /* Deep dark background from graphic */
    color: #e0e6ec; /* Light text for readability */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on small devices */
}


a {
    text-decoration: none;
    color: #38e1a7; /* Accent green for links */
    transition: color 0.3s ease;
}
/* Desktop Sidebar */
.main-container { flex-grow: 1; display: flex; flex-direction: column; }


a:hover {
    color: #00c6a8; /* Darker green on hover */
}

ul {
    list-style-type: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #e0e6ec;
    margin-top: 0;
    margin-bottom: 0.8em;
}

h1 { font-size: 3.2rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 800; }
h3 { font-size: 1.8rem; font-weight: 700; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-sm {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, #38e1a7, #00c6a8); /* Green gradient from graphic */
    color: #161b22; /* Dark text for contrast */
    border: none;
    box-shadow: 0 5px 15px rgba(0, 198, 168, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 198, 168, 0.6);
    opacity: 0.9;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: #161b22; /* Dark background, slightly lighter than body */
    padding: 15px 0;
    border-bottom: 1px solid #30363d; /* Subtle line */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Styling */
.logo a {
    display: flex;
    align-items: center;
    color: inherit; /* Inherit text color for logo */
}

.sherwood-logo {
    height: 50px; /* Adjust as needed */
    width: auto;
    margin-right: 15px;
}

.logo-text {
    text-align: left;
    line-height: 1.2;
}

.logo-text .sherwood {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #e0e6ec;
}

.logo-text .tech {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    background: -webkit-linear-gradient(90deg, #38e1a7, #00c6a8); /* Green gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px rgba(56, 225, 167, 0.3); /* Subtle glow */
}

.logo-text .tagline {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    color: #c9d1d9;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card {
	background-color: #161b22;
}
/* Main Navigation */
.main-nav ul {
    display: flex;
}

.main-nav li {
    position: relative;
    margin-left: 30px;
}

.main-nav a {
    display: block;
    padding: 10px 0;
    color: #e0e6ec;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #38e1a7;
}

.sub-nav ul {
    display: flex;
}

.sub-nav li {
    position: relative;
    margin-left: 30px;
}

.sub-nav a {
    display: block;
    padding: 10px 0;
    color: #e0e6ec;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    transition: color 0.3s ease;
}

.sub-nav a:hover {
    color: #38e1a7;
}

/* Underline effect for nav items */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #38e1a7, #00c6a8);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.sub-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #38e1a7, #00c6a8);
    transition: width 0.3s ease;
}

.sub-nav a:hover::after {
    width: 100%;
}

/* Dropdown specific styles */
.dropdown .dropbtn {
    display: flex;
    align-items: center;
}

.dropdown .dropbtn i {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1f242e; /* Darker background for dropdown */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden; /* For rounded corners */
    border: 1px solid #30363d;
}

.dropdown-content a {
    color: #e0e6ec;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #00c6a8; /* Green highlight on dropdown hover */
    color: #161b22; /* Dark text for contrast */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #38e1a7; /* Green for visibility */
    cursor: pointer;
    padding: 5px;
}

.menu-toggle i {
    transition: transform 0.3s ease;
}

/* --- Main Content Sections --- */
.hero-section {
    background: linear-gradient(rgba(13, 17, 23, 0.8), rgba(13, 17, 23, 0.8)), url('../img/stlogo-mini.png') no-repeat center center/contain; /* Placeholder, replace with actual image */
    text-align: center;
    padding: 100px 0;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(90deg, #38e1a7, #00c6a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(56, 225, 167, 0.5);
}

.hero-section p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #c9d1d9;
}

section {
    padding: 80px 0;
    text-align: center;
}

.section-dark {
    background-color: #161b22;
}

.section h2 {
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #38e1a7, #00c6a8);
    border-radius: 2px;
}

/* Feature/Service Cards */
.features-grid, .service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card, .service-card {
    background-color: #1f242e;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #30363d;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover, .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 198, 168, 0.2);
    border-color: #00c6a8; /* Green border on hover */
}

.feature-icon, .service-icon {
    font-size: 3.5rem;
    color: #38e1a7;
    margin-bottom: 20px;
}

.feature-card h3, .service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #e0e6ec;
	text-decoration-line: none !important;
}

.feature-card p, .service-card p {
    font-size: 1rem;
    color: #c9d1d9;
}

.page-body-list {
	text-align: justify;
	list-style-position: outside;
}


.question-row {
	display: inline-flex;
	width: 100%;
	text-align: left;
}

.question-row label {
	width: 25%;
	margin-top:1rem;
}

.question-holder {
	width: 75%;
	padding-top: 1rem;
}

/* --- Footer --- */
.site-footer {
    background-color: #161b22; /* Matches header background */
    padding: 30px 0;
    border-top: 1px solid #30363d;
    color: #c9d1d9;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap; /* Allow nav items to wrap */
    justify-content: center; /* Center nav items when wrapped */
}

.footer-nav li {
    margin: 0 15px; /* Spacing between footer links */
}

.footer-nav a {
    color: #c9d1d9; /* Lighter color for footer links */
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}

.footer-nav a:hover {
    color: #38e1a7;
}

/* Underline effect for footer nav items */
.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #38e1a7, #00c6a8);
    transition: width 0.3s ease;
}

.footer-nav a:hover::after {
    width: 100%;
}

.footer-info {
    text-align: right; /* Align text right for desktop */
}

.footer-info p {
    margin: 0;
    color: #8b949e; /* Subtler copyright text */
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: #c9d1d9;
    font-size: 1.3rem;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-links a:first-child {
    margin-left: 0; /* Remove left margin for first icon */
}

.social-links a:hover {
    color: #38e1a7;
}

.about-section{
	padding-bottom: 1.25rem;
}

.main-content{
	margin-bottom: 1.25rem;
}

/* Ensure the wrapper takes up the full available height */
.content-wrapper {
    display: flex;
    flex: 1; /* Fills remaining vertical space */
    padding: 20px;
    gap: 20px;
	color: #000 !important;
}

.content-wrapper.stacked {
    display: flex;
    flex-direction: column; /* Stack vertically */
    flex: 1;                /* Fill the rest of the main-container */
    padding: 20px;
    gap: 20px;
    height: calc(100vh - 60px); /* Subtracts the top-bar height */
}

.content-wrapper h2{
	color: #000 !important;
	text-align: left;
}

.content-wrapper ul{
	text-align: left;
}
/* Primary Data: 1/3 of the height */
.content-primary {
    flex: 1; 
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow-y: auto; /* Adds scroll if content overflows */
	min-height: 150px;
}

/* Secondary Info: 2/3 of the height */
.content-secondary {
    flex: 2; 
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow-y: auto;
	min-height:550px;
}

.content-left {
    flex: 2; /* Takes up 2/3 of the width */
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.content-right {
    flex: 1; /* Takes up 1/3 of the width */
    background: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
}

/* Utility for card content */
.card-content {
    /*margin-top: 15px;*/
    color: #718096;
    border: 2px dashed #e2e8f0;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
	padding-left:15px;
	padding-bottom:15px;
	padding-right:15px;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .content-wrapper.stacked {
        height: auto; /* Let it grow naturally on small screens */
    }
    
    .content-primary, .content-secondary {
        min-height: 200px; /* Ensure visibility on mobile */
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .header-container {
        padding: 0 15px;
    }
    .logo-text .sherwood, .logo-text .tech {
        font-size: 1.5rem;
    }
    .logo-text .tagline {
        font-size: 0.75rem;
    }

    .main-nav {
        display: none; /* Hide on small screens by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px; /* Below header */
        left: 0;
        background-color: #1f242e; /* Darker background for mobile menu */
        border-top: 1px solid #30363d;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        padding: 10px 0;
        transition: all 0.3s ease-in-out;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none; /* Disable interaction when hidden */
    }
		
    .main-nav.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto; /* Enable interaction when active */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
	
	.sub-nav ul {
        flex-direction: row;       
        padding: 0;
    }

    .main-nav li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #30363d; /* Separator for mobile links */
    }
	
    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        padding: 15px 20px;
        font-size: 1.1rem;
        color: #e0e6ec;
    }
    .main-nav a:hover {
        background-color: #0d1117; /* Darker background on hover */
        color: #38e1a7;
    }
    .main-nav a::after { /* Remove underline on mobile */
        display: none;
    }


    /* Mobile dropdown */
    .dropdown .dropbtn {
        justify-content: space-between; /* Push arrow to the right */
    }
    .dropdown-content {
		display: block;
        position: static; /* Stack below parent on mobile */
        box-shadow: none;
        border: none;
        background-color: #161b22; /* Even darker for nested dropdown */
        border-radius: 0;
        padding-left: 20px; /* Indent dropdown items */
    }
    .dropdown-content a {
        padding-left: 30px;
    }

    .menu-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .hero-section h1 { font-size: 3rem; }
    .hero-section p { font-size: 1.1rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav {
        margin-bottom: 20px;
    }
    .footer-nav ul {
        flex-direction: column;
        margin-bottom: 15px;
    }
    .footer-nav li {
        margin: 10px 0;
    }
    .footer-info {
        text-align: center;
    }
    .social-links {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .logo-text {
       /* display: none;  Hide tagline/text on very small screens, keep just logo image */
    }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section p { font-size: 1rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }
}

/* Custom Scrollbar (Optional) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #161b22;
}
::-webkit-scrollbar-thumb {
    background: #38e1a7;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00c6a8;
}


.stats-grid {
    display: inline-flex;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
	overflow:auto;
}

.stat-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.stat-card .label { font-size: 0.85rem; color: #64748b; text-transform: uppercase; }
.stat-card .value { font-size: 0.95rem; font-weight: bold; margin: 5px 0; color: #1e293b; }
.stat-card .trend { font-size: 0.85rem; font-weight: 600; }
.trend.positive { color: #10b981; }
.trend.negative { color: #ef4444; }

/* Data Table (Bottom Section) */
.table-header {
   /* display: flex;*/
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-container {
    width: 100%;
    overflow-x: auto; /* Scrollable table on mobile */
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 12px 15px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
}

td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #334155;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge.success { background: #dcfce7; color: #166534; }
.badge.pending { background: #fef9c3; color: #854d0e; }

/* "View All" Button Style */
.view-all {
    padding: 8px 16px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.form-inline-flex {
  display: flex;
  align-items: center; /* Vertically aligns items in the center */
  gap: 10px; /* Adds space between the items */
}