/* ============================================
   LEFT SIDEBAR NAVIGATION
   ============================================ */

.sidebar-nav {
    width: max-content;
    min-width: 200px;
    max-width: 320px;
    flex-shrink: 0;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    padding: 0 0 20px 0;
    overflow: visible;
}

.sidebar-spacer {
    height: 10px;
    background: #f8f9fa;
}

.sidebar-nav h3.sidebar-title {
    margin: 0 0 15px 0 !important;
    padding: 15px;
    background: #1a3d2a;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.sidebar-title i {
    margin-right: 8px;
}

.category-nav {
    padding: 0 15px;
    margin-top: 10px;
}

.nav-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.nav-section:last-child {
    border-bottom: none;
}

.nav-heading {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: #2d5a3d;
    color: #fff;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.nav-heading:hover {
    background: #1a3d2a;
}

.nav-heading a {
    color: #fff;
    text-decoration: none;
    flex: 1;
}

.nav-heading a:hover {
    color: #fff;
}

.toggle-icon {
    display: inline-block;
    width: 20px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    margin-right: 5px;
}

/* Collapsed state */
ul.collapsed {
    display: none;
}

/* Sub-heading for nested items */
.sub-heading {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 2px 10px;
    font-weight: 500;
    font-size: 18px;
    color: #2d5a3d;
}

.sub-heading:hover {
    background: #e8f5e9;
}

.sub-heading a {
    flex: 1;
    color: #2d5a3d;
    text-decoration: none;
}

.sub-heading .toggle-icon {
    font-size: 14px;
    width: 16px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0;
}

.nav-list li a {
    display: block;
    padding: 6px 10px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-list li a:hover {
    background: #e8f5e9;
    border-left-color: #2d5a3d;
    color: #2d5a3d;
}

/* Nested navigation for Course Materials */
.nav-list-nested > li.has-children {
    margin: 0;
    padding: 0;
}

.nav-list-nested > li.has-children > a {
    font-weight: 500;
    color: #2d5a3d;
}

.nav-list-nested > li.has-children > ul {
    list-style: none;
    margin: 0;
    padding: 0 0 0 15px;
}

.nav-list-nested > li.has-children > ul li a {
    font-size: 12px;
    padding: 4px 10px;
}

/* Sidebar search */
.sidebar-search {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
}

.sidebar-search form {
    display: flex;
}

.sidebar-search input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 13px;
    outline: none;
}

.sidebar-search input[type="text"]:focus {
    border-color: #2d5a3d;
}

.sidebar-search button {
    padding: 8px 12px;
    background: #2d5a3d;
    border: 1px solid #2d5a3d;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    color: #fff;
}

.sidebar-search button:hover {
    background: #1a3d2a;
}

/* Supply Chain Locations - Scrolling */
.supply-chain-box {
    margin: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.supply-chain-title {
    margin: 0;
    padding: 10px;
    background: #ccc;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.marquee-container {
    height: 300px;
    overflow: hidden;
    background: #fff;
}

.marquee-content {
    list-style: none;
    margin: 0;
    padding: 10px;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content li {
    padding: 3px 0;
    font-size: 12px;
    color: #333;
}

.marquee-content li.state-heading {
    font-weight: bold;
    color: #f60;
    margin-top: 10px;
    font-size: 13px;
}

@keyframes marquee-scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* ============================================
   CONTENT WRAPPER WITH LEFT SIDEBAR
   ============================================ */

.content-wrapper.with-sidebar {
    display: flex;
    min-height: calc(100vh - 200px);
    overflow: visible;
}

.content-wrapper.with-sidebar .main-content {
    flex: 1;
    padding: 0 30px 30px 30px;
    min-width: 0;
}

.content-wrapper.with-sidebar .main-content h2:first-child {
    margin-top: 0;
}

/* ============================================
   REDUCE TOP SPACING ON ALL PAGES
   ============================================ */

/* Remove padding/margin from first heading on any page */
.main-content h1:first-child,
.main-content h2:first-child,
.main-content h3:first-child,
.content h1:first-child,
.content h2:first-child,
.content h3:first-child,
#body-wrapper h1:first-child,
#body-wrapper h2:first-child,
#body-wrapper h3:first-child,
.default-content h1:first-child,
.default-content h2:first-child,
.default-content h3:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Reduce top margin after header */
.content-wrapper {
    padding-top: 0;
    margin-top: 0;
}

/* Remove extra spacing from hero sections */
#hero,
.hero-section,
.hero {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Compact the main content area */
.main-content,
.content,
.default-content {
    padding-top: 15px;
}

/* Reduce top spacing */
#body-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
    overflow: visible !important;
}

#body-wrapper .container {
    overflow: visible;
}

#start {
    padding-top: 0;
    margin-top: 0;
    overflow: visible !important;
}

.section {
    padding-top: 0;
    padding-bottom: 1rem;
    overflow: visible !important;
}

#body-wrapper.section {
    padding-top: 0;
}

/* ============================================
   HEADER / TOP BLACK BAR
   ============================================ */

/* Fixed header - stays visible on scroll */
.header-fixed #header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-fixed #body-wrapper {
    padding-top: 40px !important;
}

#header {
    background: #1a1a1a;
    height: auto;
    padding: 8px 0;
}

#header .navbar-section.logo a {
    color: #ffffff;
}

#header .navbar {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

#header .navbar-section {
    height: auto;
}

#header .navbar-section.logo {
    flex-shrink: 0;
}

#header .navbar-section.desktop-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

/* Top bar navigation links */
#header .dropmenu ul {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

#header .dropmenu ul li {
    margin: 0;
}

#header .dropmenu ul li a {
    color: #ffffff;
    padding: 6px 10px;
    display: block;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

#header .dropmenu ul li a:hover {
    color: #aaaaaa;
}

/* ============================================
   GENERAL IMPROVEMENTS
   ============================================ */

/* Better table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table th,
table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background: #2d5a3d;
    color: #fff;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Image styling */
img {
    max-width: 100%;
    height: auto;
}

/* Order Now button image - add spacing after */
a[href="/order-form"] img,
a[href*="order-form"] img {
    margin-bottom: 30px;
}


/* Add spacing before product headings that follow images */
a[href="/order-form"] + strong,
a[href*="order-form"] + strong,
a[href="/order-form"] + h2,
a[href*="order-form"] + h2,
a[href="/order-form"] + h3,
a[href*="order-form"] + h3 {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

/* Image-text row layout */
.image-text-row {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: flex-start;
}

.image-text-row .thumbnail-link {
    flex-shrink: 0;
}

.image-text-row .thumbnail {
    width: 150px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-text-row .thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.image-text-row .image-text {
    flex: 1;
}

.image-text-row .image-text h3 {
    margin-top: 0;
}

@media (max-width: 576px) {
    .image-text-row {
        flex-direction: column;
    }

    .image-text-row .thumbnail {
        width: 120px;
    }
}

/* Link colors */
a {
    color: #2d5a3d;
}

a:hover {
    color: #1a3d2a;
}

/* ============================================
   RESPONSIVE SIDEBAR
   ============================================ */

@media (max-width: 992px) {
    .content-wrapper.with-sidebar {
        flex-direction: column;
    }

    .sidebar-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .category-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-section {
        flex: 1 1 200px;
        margin-bottom: 10px;
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 576px) {
    .category-nav {
        flex-direction: column;
    }

    .nav-section {
        flex: 1 1 100%;
    }

    .content-wrapper.with-sidebar .main-content {
        padding: 15px;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */

#footer {
    background: #4a4a4a !important;
    color: #ffffff;
    padding: 30px 0;
}

#footer p {
    color: #ffffff;
    margin: 5px 0;
    font-size: 14px;
}

#footer a {
    color: #cccccc;
}

#footer a:hover {
    color: #ffffff;
}

/* ============================================
   TOP BAR LAYOUT
   ============================================ */

/* Brand name in logo section */
.brand-with-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-with-text svg {
    width: 35px;
    height: auto;
}

#header .navbar-section.logo {
    margin-right: 0;
}

.brand-name {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.brand-name i {
    color: #f60;
    margin-right: 5px;
}

.top-nav-links {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-nav-links li {
    margin: 0;
}

.top-nav-links li a {
    color: #ffffff;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-nav-links li a:hover {
    color: #f60;
}

.top-nav-links li a i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .brand-with-text {
        flex-direction: column;
        gap: 5px;
    }

    .brand-name {
        font-size: 14px;
    }

    .top-nav-links {
        justify-content: center;
    }
}

/* ============================================
   PRODUCT CATEGORY GRID
   ============================================ */

.category-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: visible;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: #2d5a3d;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


.product-card-inner {
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.product-title-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.product-icon {
    width: 36px;
    height: 36px;
    background: #e8f5e9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-icon i {
    font-size: 18px;
    color: #2d5a3d;
}

.product-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.product-title-link:hover h3 {
    color: #2d5a3d;
}

.product-body-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card h3 a {
    color: #333;
    text-decoration: none;
}

.product-card:hover h3 a {
    color: #2d5a3d;
}

.product-body {
    flex: 1;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Order Icon Button - Inline with title */
.btn-order-icon {
    position: relative;
    width: 32px;
    height: 32px;
    background: #2d5a3d;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.btn-order-icon:hover {
    background: #f60;
    transform: scale(1.1);
}

.btn-order-icon i {
    font-size: 14px;
}

.order-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 20;
}

.order-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 12px;
    border: 6px solid transparent;
    border-bottom-color: #333;
}

.btn-order-icon:hover .order-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Simple nav link (no expandable submenu) */
.nav-simple .nav-link-only {
    cursor: default;
}

.nav-simple .nav-link-only a {
    flex: 1;
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-footer {
        flex-direction: column;
    }
}

/* ============================================
   FORM STYLES
   ============================================ */

.feedback-form,
.contact-form {
    max-width: 600px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2d5a3d;
    outline: none;
}

.feedback-form button,
.contact-form button {
    background: #2d5a3d;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.feedback-form button:hover,
.contact-form button:hover,
.order-form button:hover {
    background: #1a3d2a;
}

/* Order Form */
.order-form {
    max-width: 700px;
    margin: 20px 0;
}

.order-form .form-row {
    display: flex;
    gap: 15px;
}

.order-form .form-row .form-group {
    flex: 1;
}

.order-form .form-group {
    margin-bottom: 15px;
}

.order-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.order-form input,
.order-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.order-form input:focus,
.order-form textarea:focus {
    border-color: #2d5a3d;
    outline: none;
}

/* Order Form Product Card */
.order-product-card {
    background: #fff;
    border: 2px solid #2d5a3d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-product-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.order-product-icon {
    width: 60px;
    height: 60px;
    background: #e8f5e9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order-product-icon i {
    font-size: 28px;
    color: #2d5a3d;
}

.order-product-title {
    flex: 1;
}

.order-product-title h2 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #333;
}

.view-product-link {
    font-size: 13px;
    color: #2d5a3d;
    text-decoration: none;
}

.view-product-link:hover {
    text-decoration: underline;
}

.order-product-body {
    margin: 0;
}

.order-product-desc {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 576px) {
    .order-product-header {
        flex-direction: column;
        text-align: center;
    }
}

.order-form .checkbox-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.order-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.order-form .checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.order-form .form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.order-form button {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

.order-form .btn-submit {
    background: #2d5a3d;
    color: #fff;
}

.order-form .btn-submit:hover {
    background: #1a3d2a;
}

.order-form .btn-reset {
    background: #888;
    color: #fff;
}

.order-form .btn-reset:hover {
    background: #666;
}

@media (max-width: 576px) {
    .order-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ============================================
   COURIER TRACKING GRID
   ============================================ */

.courier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.courier-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.courier-card:hover {
    border-color: #2d5a3d;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.courier-card i {
    font-size: 40px;
    color: #2d5a3d;
    margin-bottom: 12px;
}

.courier-card:hover i {
    color: #f60;
}

.courier-card span {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 576px) {
    .courier-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .courier-card {
        padding: 15px 10px;
    }

    .courier-card i {
        font-size: 30px;
    }
}

/* ============================================
   CONTACT INFO GRID
   ============================================ */

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.contact-address,
.contact-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2d5a3d;
}

.contact-address i,
.contact-details i {
    color: #2d5a3d;
    margin-right: 8px;
}

.contact-details a {
    color: #2d5a3d;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.slideshare-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background: #0077b5;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.slideshare-link:hover {
    background: #005582;
    color: #fff;
}

.slideshare-link i {
    color: #fff !important;
    margin-right: 8px;
}

.map-container {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ============================================
   GOOGLE TRANSLATE WIDGET
   ============================================ */

#google_translate_element {
    margin-left: 10px;
    flex-shrink: 0;
}

.goog-te-gadget {
    font-family: inherit !important;
    font-size: 12px !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: #fff !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    color: #fff !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* ============================================
   ORDER NOW BUTTON
   ============================================ */

.btn-order {
    display: inline-block;
    padding: 12px 25px;
    background: #2d5a3d;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin: 15px 0;
}

.btn-order:hover {
    background: #3d7a4d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-order i {
    margin-right: 8px;
}

/* Product page order icon (top-right) */
.product-content-wrapper {
    position: relative;
}

.product-order-icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: #2d5a3d;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-order-icon:hover {
    background: #3d7a4d;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.product-order-icon i {
    font-size: 18px;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.image-gallery img {
    width: calc(25% - 10px);
    max-width: 200px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .image-gallery img {
        width: calc(50% - 10px);
    }
}
