/* === CSS VARIABLES & RESET === */
:root {
    --primary-red: #d3122c;
    --primary-red-hover: #b00f24;
    --dark-bg: #010101;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --container-width: 1200px;
    --light-red: #FBECEE;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
}

picture {
    line-height: 0;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-red {
    color: var(--primary-red);
}

.bold {
    font-weight: 700;
}

p~p {
    margin-top: 1rem;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.95rem;
    align-self: flex-start;
}

.btn-dark {
    background-color: var(--dark-bg);
    color: var(--white);
}

.btn-dark:hover {
    background-color: #333;
}

.btn-red {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-red);
}

.btn-white:hover {
    background-color: #cccccc;
    color: var(--dark-bg);
}

.btn-red:hover {
    background-color: var(--primary-red-hover);
}

.btn-outline-red {
    background-color: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-outline-red:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

.btn-red-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Spacing between text and icon */
    color: var(--primary-red);
    font-weight: 800;
    font-size: 1rem;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
    align-self: flex-start;
}

/* =========================================
   DOWNLOAD TEXT LINK (External SVG)
   ========================================= */
.btn-download-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Spacing between text and icon */
    color: var(--primary-red);
    font-weight: 800;
    font-size: 1rem;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
    align-self: flex-start;
}

/* Injects the SVG via CSS Mask */
.btn-download-text::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;

    /* currentColor forces the mask to use the text color */
    background-color: currentColor;

    /* Load your saved SVG file here */
    -webkit-mask: url('../images/download-icon.svg') no-repeat center / contain;
    mask: url('../images/download-icon.svg') no-repeat center / contain;

    transition: transform 0.2s ease;
}

/* Hover effects */
.btn-download-text:hover {
    color: var(--primary-red-hover);
    /* The SVG will automatically turn dark red too! */
}

.btn-download-text:hover::after {
    transform: translateY(2px);
}

/* Enable native smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Fixed Back to Top Button Base Styles */
.back-to-top {
    position: fixed;
    /* Locks it to the screen */
    bottom: 70px;
    right: 14px;
    width: 45px;
    height: 45px;
    background-color: #cc0000;
    /* CWNP Red */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    /* Ensures it sits on top of everything */

    /* Hidden state by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    /* Pushes it down slightly for the fade-in animation */
    transition: all 0.3s ease;
}

/* The 'show' class that JavaScript will add when scrolled */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* Returns to normal position */
}

/* Hover effects */
.back-to-top:hover {
    background-color: #a00000;
    transform: translateY(-3px);
    /* Subtle lift */
}

/* === STICKY FLOATING HEADER === */
.site-header {
    position: sticky;
    top: 20px;
    width: 100%;
    z-index: 1000;
}

.site-header .container,
.footer-top.container,
.footer-bottom .container {
    max-width: 100%;
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.header-inner {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    background-color: var(--white);
    border-radius: 50px;
    padding: 10px 20px 10px 30px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    box-shadow: var(--shadow-md);
    position: relative;
}

@media (max-width: 991px) {
    .header-inner {
        display: flex;
        /* Changes the grid back to a standard flex row on mobile */
        justify-content: space-between;
    }
}

/* Desktop layout rules */
@media (min-width: 992px) {
    .nav-actions-wrapper {
        display: contents;
    }
}

/* flex */
.flexbox {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

/* Logo Styling */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    justify-self: start;
}

.logo-wrapper img {
    max-height: 34px;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    color: var(--dark-bg);
}

.logo-main .wifi-bars {
    color: var(--primary-red);
    font-weight: 700;
    letter-spacing: -2px;
    margin-left: 2px;
}

.logo-divider {
    width: 1px;
    height: 35px;
    background-color: #d1d1d1;
}

.logo-text {
    font-size: 0.65rem;
    line-height: 1.2;
    color: var(--text-gray);
    font-weight: 500;
}

/* Container for the search icon and dropdown */
.search-menu-wrapper {
    position: relative;
    display: inline-block;
}

/* Hide the dropdown by default and position it below the icon */
.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    /* Aligns the dropdown to the right edge of the icon */
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #eee;
    z-index: 1000;
    min-width: 250px;
}

/* Show the dropdown when hovering over the wrapper */
.search-menu-wrapper:hover .search-dropdown {
    display: block;
}

/* blog */
.content-pad h1,
.content-pad h2,
.content-pad h3,
.content-pad h4,
.content-pad h5,
.content-pad h6 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-pad {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--text-gray);
    margin-bottom: 30px;
}

/* Layout for the form itself */
.search-form {
    display: flex;
    align-items: center;
}

.search-form .input-hold {
    flex-grow: 1;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

.search-form input[type="search"]:focus {
    border-color: #cc0000;
    /* CWNP Red Focus State */
}

.search-form .btn-search {
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 8px;
    color: #333;
}

/* Ensure the wrapper maintains the correct height/width in your header grid */
.search-menu-wrapper {
    position: relative;
    width: 36px;
    /* Matches standard icon button width */
    height: 36px;
    display: flex;
    align-items: center;
}

/* The expanding form */
.search-form-expandable {
    position: absolute;
    right: 0;
    /* Anchors the form to the right so it expands leftwards */
    top: 50%;
    transform: translateY(-50%);
    /* Keeps it perfectly vertically centered */
    display: flex;
    align-items: center;
    width: 36px;
    /* Starts collapsed, showing only the button */
    height: 36px;
    background-color: transparent;
    border-radius: 20px;
    /* Pill shape when expanded */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    /* High z-index forces it to overlay the main menu */
}

/* State when hovered OR when the user is typing inside (focus) */
.search-menu-wrapper:hover .search-form-expandable,
.search-form-expandable:focus-within {
    width: 300px;
    /* Expands to the left, covering the nav */
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    /* Slightly darker shadow for depth */

    /* UPDATED: Thicker, highly visible border (CWNP Red) */
    border: 2px solid #cc0000;

    padding-left: 15px;
}

/* Hide the input container initially */
.search-form-expandable .input-hold {
    flex-grow: 1;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* Fade in the input field slightly after the width starts expanding */
.search-menu-wrapper:hover .input-hold,
.search-form-expandable:focus-within .input-hold {
    opacity: 1;
    transition-delay: 0.15s;
}

/* Reset standard input styles */
.search-form-expandable input[type="search"] {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #333;
}

/* Style the submit button to look like your header icons */
.search-form-expandable .btn-search {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Prevents the button from being squished when resizing */
    color: #333;
}

.search-form-expandable .btn-search:hover {
    color: #cc0000;
    /* CWNP Red hover effect */
}

/* =========================================
   MOBILE SEARCH BAR OVERRIDE 
   ========================================= */
@media (max-width: 991px) {

    /* Allow the action container to wrap items */
    .header-actions {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 15px;
        padding-top: 15px;
    }

    /* 1. Force the wrapper to take full width and move to the top */
    .search-menu-wrapper {
        width: 100%;
        height: 45px;
        order: -1;
        /* This pushes the search bar above the cart/user/contact icons */
        margin-bottom: 10px;
    }

    /* 2. Disable the absolute positioning and make it permanently expanded */
    .search-form-expandable,
    .search-menu-wrapper:hover .search-form-expandable,
    .search-form-expandable:focus-within {
        position: relative;
        width: 100% !important;
        /* Forces it to fill the mobile menu width */
        height: 45px;
        transform: none;
        /* Removes the vertical centering trick used for absolute positioning */
        border: 1px solid #cccccc;
        background-color: #f9f9f9;
        padding-left: 15px;
        box-shadow: none;
        border-radius: 8px;
        /* Gives it a standard mobile input shape */
    }

    /* 3. Make the text input permanently visible */
    .search-form-expandable .input-hold {
        opacity: 1;
    }

    /* 4. Adjust the search button to fit the new height */
    .search-form-expandable .btn-search {
        height: 45px;
        width: 45px;
    }
}

/* Nav & Actions Wrapper (For Desktop & Mobile Toggle) */
.nav-actions-wrapper {
    display: contents;
}

/* Nav Styling */
.main-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-bg);
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s;
    font-family: 'Roboto Condensed', sans-serif;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-red);
}

/* =========================================
   SUB-MENU DROPDOWN (Desktop)
   ========================================= */
.main-nav .has-dropdown {
    position: relative;
    padding-bottom: 10px;
    /* Expands the hover area so the mouse doesn't lose focus */
    margin-bottom: -10px;
}

.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    /* Centers it and pushes it down slightly */
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    min-width: 220px;
    padding: 15px 0;

    /* Hidden by default with smooth animation */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1100;

    display: flex;
    flex-direction: column;
    gap: 0;
    /* Overrides the 25px gap from the main nav */
}

/* Show the menu on hover */
.main-nav .has-dropdown:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Sub-menu link styling */
.main-nav .sub-menu a {
    display: block;
    padding: 10px 25px;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
}

.main-nav .sub-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary-red);
}

/* =========================================
   SUB-MENU DROPDOWN (Mobile Override)
   ========================================= */
@media (max-width: 991px) {
    .main-nav .has-dropdown {
        padding-bottom: 0;
        margin-bottom: 0;
        width: 100%;
        text-align: center;
    }

    .main-nav .sub-menu {
        position: static;
        /* Removes the floating effect */
        transform: none;
        box-shadow: none;
        background-color: transparent;
        padding: 15px 0 0 0;
        min-width: 100%;

        /* Mobile specific hiding mechanism */
        display: none;
        opacity: 1;
        visibility: visible;
    }

    /* Expanding the sub-menu on mobile touch/hover */
    .main-nav .has-dropdown:hover .sub-menu {
        display: flex;
        transform: none;
    }

    .main-nav .sub-menu a {
        padding: 12px 10px;
        background-color: #f5f5f5;
        /* Light gray to distinguish from main links */
        margin-bottom: 5px;
        border-radius: 8px;
    }
}

/* === USER DROPDOWN MENU === */
.user-menu-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.user-dropdown {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    /* Aligns dropdown to the right edge of the icon */
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    width: 220px;
    z-index: 1100;
    flex-direction: column;
    padding: 15px 0;
}

/* Toggled via the existing JavaScript */
.user-dropdown.active {
    display: flex;
}

.user-dropdown a {
    padding: 10px 25px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    text-align: center;
    /* This centers the text */
}

.user-dropdown a:hover {
    background-color: var(--light-bg);
    color: var(--primary-red);
}

.user-dropdown hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #eaeaea;
}

/* === DESKTOP HIDE CLOSE BUTTON === */
.close-user-btn {
    display: none;
    /* Hidden by default on desktop */
}

/* === MOBILE USER MENU OVERLAY === */
@media (max-width: 992px) {

    /* 1. Remove relative positioning from the wrapper so the dropdown anchors to the main menu instead */
    .user-menu-wrapper {
        position: static;
    }

    /* 2. Stretch the dropdown to cover the entire main menu */
    .user-dropdown {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 20px;
        /* Matches the curve of your mobile menu */
        background-color: var(--light-red);
        padding: 20px 30px;
        z-index: 100;
        transform: none;
        /* Removes the centering transform from earlier */
        overflow-y: auto;
        /* Keeps scrolling just in case it's needed */
    }

    /* 3. Style the close button */
    .close-user-btn {
        display: block;
        align-self: center;
        /* Changed from flex-end to center */
        background: none;
        border: none;
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-gray);
        cursor: pointer;
        padding: 10px 0;
        margin-bottom: 10px;
    }

    /* Hide the tooltip arrow if you added it previously */
    .user-dropdown::before {
        display: none;
    }
}

/* Actions & Icons Styling */
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-self: end;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    transition: opacity 0.2s;
}

.icon-btn:hover {
    opacity: 0.7;
}

.user-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-red);
    color: var(--primary-red);
}

.btn-contact {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background-color 0.3s;
}

.btn-contact:hover {
    background-color: #333;
}

/* Hamburger Menu Button (Hidden on Desktop) */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-bg);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.aboutcontact-us {
    background-color: #EDEFF4;
}

/* === HERO SECTION === */
.hero {
    /* Pull the hero section up underneath the sticky header */
    margin-top: -85px;
    /* Add enough padding so the header doesn't cover the hero text */
    padding-top: 180px;
    padding-bottom: 100px;
    background-color: #ffffff;
    color: var(--white);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.hero .subtitle {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.hero p {
    color: #ddd;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* === MAIN CONTENT & CARDS === */
.section-padding {
    padding: 50px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.card-red-text h2 {
    color: var(--primary-red);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.card-flex {
    display: flex;
    gap: 30px;
    align-items: center;
}

.card-flex-content {
    flex: 1;
}

.card-flex h2 {
    font-size: 2rem;
}

.card-flex p {
    color: var(--text-gray);
    margin-bottom: 25px;
}

.card-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.card-border {
    border-right: 1px solid var(--primary-red) !important;
    border-bottom: 1px solid var(--primary-red) !important;
}

/* =========================================
   WEBINAR CARDS & THUMBNAILS
   ========================================= */
.webinar-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Forces the button to the bottom of the card */
.webinar-card .mt-auto {
    margin-top: auto !important;
}

.webinar-thumb {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.webinar-thumb-wrapper {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

/* Subtle zoom effect on hover */
.webinar-thumb-wrapper:hover .webinar-thumb {
    transform: scale(1.05);
}

.webinar-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   GENERIC GRID SYSTEM
   ========================================= */
.grid-row {
    display: grid;
    gap: 30px;
    /* Standard spacing between columns */
    margin-bottom: 40px;
    /* Standard spacing below the row */
}

/* Column Definitions */
.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Remove bottom margin for the last row in a container */
.grid-row:last-child {
    margin-bottom: 0;
}

/* =========================================
   GRID RESPONSIVENESS (Tablet & Mobile)
   ========================================= */
@media (max-width: 991px) {

    /* On tablets, 3 and 4 column layouts drop down to 2 columns */
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* On phones, ALL grids stack into a single column */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   OUR TEAM PAGE LAYOUTS
   ========================================= */
.intro-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Featured Team Member (Tom Carpenter) */
.team-featured-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 30px;
    /* Increased from 40px to 80px for better section spacing */
    align-items: flex-start;
}

.team-featured-card img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.team-info h2 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.team-title {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.team-info p {
    margin-bottom: 15px;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 3-Column Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.team-member-card {
    display: flex;
    flex-direction: column;
}

.team-member-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.team-member-card h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

/* Mobile Overrides for Team Page */
@media (max-width:600px) {

    .team-featured-card {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
        /* Stacks all 3 cards on mobile */
    }
}


/* Breadcrumb Styles */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Spacing between the icons and text */
    padding-top: 10px;
    padding-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

.breadcrumbs .breadcrumb-icon,
.breadcrumbs .breadcrumb-separator {
    display: flex;
    align-items: center;
    justify-content: center;
}

.breadcrumbs a.breadcrumb-icon:hover svg {
    stroke: #a00000;
    /* Darkens the red house slightly on hover */
}

.breadcrumbs .breadcrumb-parent,
.breadcrumbs .breadcrumb-current {
    color: #1a1a1a;
    /* Dark text matching the screenshot */
    font-weight: 500;
}

/* Style the parent when it acts as a link */
a.breadcrumb-parent {
    color: #1a1a1a;
    font-weight: 500;
    text-decoration: none;
    /* Removes the default underline */
    transition: color 0.2s ease;
}

a.breadcrumb-parent:hover {
    color: #cc0000;
    /* Turns CWNP red on hover */
}

/* Page Content */
.page-title h1 {
    font-size: 2.8rem;
    margin-bottom: 40px;
}

/* =========================================
   REUSABLE TWO-COLUMN PAGE LAYOUT 
   ========================================= */
.page-layout-sidebar {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

.page-sidebar {
    position: relative;
}

.page-layout-sidebar-reverse {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 30px;
    margin-bottom: 80px;
}

.page-main-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    margin-top: 40px;
}

.page-main-content h2:first-child {
    margin-top: 0;
}

/* Sidebar Card */
.sidebar-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.sidebar-card h3 {
    font-size: 1.6rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    line-height: 1.3;
}

.sidebar-card p {
    font-size: 0.9rem;
    margin-bottom: 30px;
    text-align: left;
}

/* =========================================
   SPACING UTILITIES
   ========================================= */
.error-content .hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
}

.ml-10 {
    margin-left: 10px !important;
}

.ml-20 {
    margin-left: 20px !important;
}

.ml-30 {
    margin-left: 30px !important;
}

.ml-40 {
    margin-left: 40px !important;
}

.ml-60 {
    margin-left: 60px !important;
}

.ml-80 {
    margin-left: 80px !important;
}

.mr-10 {
    margin-right: 10px !important;
}

.mr-20 {
    margin-right: 20px !important;
}

.mr-30 {
    margin-right: 30px !important;
}

.mr-40 {
    margin-right: 40px !important;
}

.mr-60 {
    margin-right: 60px !important;
}

.mr-80 {
    margin-right: 80px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.mt-40 {
    margin-top: 40px !important;
}

.mt-60 {
    margin-top: 60px !important;
}

.mt-80 {
    margin-top: 80px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mb-30 {
    margin-bottom: 30px !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.mb-60 {
    margin-bottom: 60px !important;
}

.mb-80 {
    margin-bottom: 80px !important;
}

/* =========================================
   MOBILE RESPONSIVENESS OVERRIDES
   ========================================= */
@media (max-width: 991px) {

    /* Stacks the main content and sidebar on tablet/mobile */
    .page-layout-sidebar {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Stacks the values graphic vertically on mobile */
    .values-graphic {
        flex-direction: column;
        gap: 15px;
        padding: 40px 20px;
    }

    .val-word {
        width: 100%;
        max-width: 300px;
    }
}

/* =========================================
   MAIN CONTENT PADDING (Desktop)
   ========================================= */
.section-padding {
    /* Uses 50px top/bottom, and 20px left/right to keep content off the edges */
    padding: 50px 20px;
}

/* =========================================
   MAIN CONTENT PADDING (Mobile Override)
   ========================================= */
@media (max-width: 768px) {

    main.container,
    .section-padding {
        /* Reduces the vertical white space for smaller mobile screens */
        padding: 30px 15px;
    }
}

/* list */
.cert-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cert-link-list a {
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.cert-link-list a:hover {
    color: var(--primary-red-hover);
    text-decoration: underline;
}

/* tabs */
/* Custom styles for the desktop black filter tab bar */
.cert-filter-bar {
    background-color: var(--dark-bg);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 6px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.cert-filter-bar a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
    flex: 1;
    white-space: nowrap;
}

.cert-filter-bar a.active {
    background-color: var(--white);
    color: var(--primary-red);
}

.cert-filter-bar a.active::before {
    content: "\276F\00a0";
}

.cert-filter-bar a:hover:not(.active) {
    background-color: #333;
}

/* Custom styling for the Mobile Dropdown */
.cert-filter-mobile {
    display: none;
    /* Hidden on desktop */
    margin-bottom: 40px;
}

.cert-filter-mobile select {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    background-color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Custom SVG arrow for the dropdown */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 20px top 50%;
    background-size: 14px auto;
    outline: none;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

/* Toggle views at 991px */
@media (max-width: 991px) {
    .cert-filter-bar {
        display: none;
    }

    .cert-filter-mobile {
        display: block;
    }
}

/* Tab Content Logic */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Card Specific Styles */
.cert-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 40px 30px;
}

.cert-product-card .cert-badge {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
    object-fit: contain;
}

.cert-product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--dark-bg);
}

.cert-product-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.5;
}

.cert-product-card .learn-more {
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
    margin-top: auto;
    transition: color 0.2s;
}

.cert-product-card .learn-more:hover {
    color: var(--primary-red-hover);
}

/* === CWNP VALUES SECTION === */
.values-section {
    margin-bottom: 100px;
}

.values-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.values-graphic {
    position: relative;
    padding: 60px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: url('../images/wave-long-bg.svg') left/cover no-repeat;
}

.val-word {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    padding: 10px;
    background: linear-gradient(to bottom, #D11931, #101010);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-color: transparent;
}

/* 3. Recreating the semi-transparent box behind the gradient text */
.val-word::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 250, 250, 0.8);
    border-radius: 8px;
    z-index: -1;
}

/* === SUCCESS STORIES === */
.success-stories {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-red);
    padding: 3px;
    object-fit: cover;
}

.testimonial-card h4 {
    margin-bottom: 5px;
}

.testimonial-card .job {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
}

/* === FOOTER === */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
}

.footer-top {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
}

.footer-logo span {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: #aaa;
    margin-top: 5px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-col p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-verify {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.footer-verify input {
    padding: 10px 15px;
    border-radius: 50px;
    border: none;
    background: #333;
    color: #fff;
    width: 200px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.social-icons a {
    color: var(--white);
    font-size: 1.2rem;
    text-decoration: none;
}

.footer-bottom {
    background-color: var(--primary-red);
    padding: 15px 0;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === RESPONSIVE DESIGN & MOBILE MENU === */
@media (max-width: 992px) {
    .header-inner {
        display: flex;
        justify-content: space-between;
    }

    .grid-2,
    .success-stories {
        grid-template-columns: 1fr;
    }

    .card-flex {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Show Hamburger */
    .hamburger-btn {
        display: flex;
    }

    /* Hide the divider on mobile for cleaner look */
    .logo-divider,
    .logo-text {
        display: none;
    }

    /* Mobile Nav Dropdown Setup */
    .nav-actions-wrapper {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background-color: var(--white);
        border-radius: 20px;
        box-shadow: var(--shadow-md);
        flex-direction: column;
        margin-left: 0;
        padding: 30px 20px;
        gap: 30px;
    }

    /* Toggle class for JS */
    .nav-actions-wrapper.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .main-nav a {
        font-size: 1.1rem;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 25px;
    }

    /* Hamburger Animation Classes */
    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-verify {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-icons {
        margin-left: 0;
    }
}

/* === HERO CAROUSEL === */
.hero-carousel {
    margin-top: -85px;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.carousel-inner {
    width: 100%;
    display: grid;
}

.carousel-slide {
    grid-area: 1 / 1;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    display: block;
    text-decoration: none;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
    padding: 0 30px;
}

.carousel-prev,
.carousel-next {
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-red);
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid #ccc;
}

.carousel-dot.active {
    background: var(--primary-red);
}

.wavy-bg {
    position: relative;
}

.cube-bg {
    background: var(--light-red);
    background-image: url(../images/cube-build-bg.png);
    background-position: top right;
    background-repeat: no-repeat;
}

.interference-bg {
    background-image: url("../images/title-bg.png");
    background-position: right top;
    background-repeat: no-repeat;
    background-color: var(--white);
}

.wavy-bg:after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background-size: 150%;
    background-position: center;
    opacity: 0.4;
    background-image: url("../images/wavy-bg.svg");
    pointer-events: none;
}

.arch-bg {
    content: "";
    background-position: center right;
    background-image: url("../images/arch-bg.svg");
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .carousel-controls {
        top: auto;
        bottom: 20px;
        transform: none;
        padding: 0 20px;
    }

    .footer-top {
        padding: 40px;
    }

    .success-intro {
        padding: 40px;
    }
}

/* =======================================================
           CERTIFICATION PAGE SPECIFIC STYLES
           ======================================================= */

/* Dark Hero Banner */
.cert-hero {
    background-color: var(--dark-bg);
    background-image: url('../images/cwna-product-header.jpg');
    /* Reusing your wave asset */
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    color: var(--white);
    margin-top: -85px;
    /* Pull behind sticky header */
}

.course-overview {
    padding: 50px 0;
}

.cert-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.cert-hero p {
    font-size: 1.15rem;
    color: #cccccc;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
}

.cert-hero .breadcrumbs span,
.cert-hero .breadcrumbs a {
    color: #ffffff !important;
}

.hero-badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-badge-container img {
    max-width: 250px;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
}

/* Exam Details Sidebar Table */
.exam-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.exam-details-table th,
.exam-details-table td {
    padding: 15px 5px;
    border-bottom: 1px solid #eaeaea;
    font-size: 0.95rem;
    text-align: left;
}

.exam-details-table th {
    color: var(--dark-bg);
    font-weight: 700;
    width: 45%;
}

.exam-details-table td {
    color: var(--text-gray);
}

.exam-details-table tr:last-child th,
.exam-details-table tr:last-child td {
    border-bottom: none;
}

/* Checklists */
/* Numbered Step List */
.step-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    counter-reset: custom-counter;
}

.step-list li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.6;
    counter-increment: custom-counter;
}

.step-list li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-red);
    background-color: var(--light-red);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
}

/* FAQ Accordion */
details {
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

summary {
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-bg);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    color: var(--primary-red);
    font-size: 1.5rem;
}

details[open] summary::after {
    content: '-';
}

details p {
    margin-top: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.check-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--white);
    background-color: var(--primary-red);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Domain Grid */
.domain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.domain-card {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

.domain-card h4 {
    font-size: 1.1rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.domain-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .cert-hero {
        padding: 120px 0 60px;
    }

    .hero-badge-container {
        display: none;
        /* Hide huge badge on mobile for better text focus */
    }

    .domain-grid {
        grid-template-columns: 1fr;
    }
}