/* Modern CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* Replace with your preferred font */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #ffffff;
    color: #333;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

/* Images */
img {
    max-width: 100%;
    display: block;
}

/* Buttons */
button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Inputs, Buttons, Textareas, and Selects */
input,
button,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* Headings */
h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 16px;
    margin-bottom: 16px;
    text-shadow: 0px 0px 2px gray;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

h5 {
    font-size: 1.25em;
}

h6 {
    font-size: 1em;
}

/* Paragraphs */
p {
    font-size: 1em;
    margin-bottom: 1.5em;
    line-height: 1.7;
}

/* Links */
a {
    text-decoration: none;
    color: #007AFF;
    transition: color 0.3s ease;
}

    a:hover,
    a:focus {
        color: #005ECB;
    }

/* Lists */
ul,
ol {
    list-style: none;
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
}

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

/* Grid System */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.grid-item {
    flex: 1;
}

    /* Grid Variations */
    .grid-item.half {
        flex: 0 0 50%;
    }

    .grid-item.third {
        flex: 0 0 33.3333%;
    }

    .grid-item.quarter {
        flex: 0 0 25%;
    }

/* Sections */
.section {
    padding: 60px 0;
}

.section-light {
    background-color: #f7f7f7;
}

.section-dark {
    background-color: #333;
    color: #fff;
}

/* Header */
.header {
    background-color: #333;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    color: #bbb;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Sidebar */
.sidebar {
    flex: 0 0 300px;
    padding: 20px;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
}

    .footer a {
        color: #bbb;
    }

        .footer a:hover {
            color: #fff;
        }

/* Buttons */
.button {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: 12px 24px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    background-color: #007AFF;
    color: #fff;
}

    .button:hover {
        background-color: #005ECB;
        transform: translateY(-1px);
    }

    .button:active {
        transform: translateY(1px);
    }

/* Input Fields */
.input-field {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

    .input-field:focus {
        border-color: #007AFF;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 122, 255, 0.25);
    }

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #333;
}

.navbar-logo img {
    width: 30px;
    height: 30px;
}

.navbar-title {
    margin: 0 15px;
    flex-grow: 1;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0px 0px 2px gray;
}

.navbar a {
    margin: 0 15px;
    color: #bbb;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: none;
}

    .navbar a:hover {
        color: #007AFF;
    }

/* Responsive Navbar */
@media (min-width: 769px) {
    .navbar a {
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .navbar-title {
        flex-grow: 0;
    }

    .logo {
        order: 0;
        margin-left: 15px;
    }
}

/* Cards */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

    .card:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .card img {
        width: 100%;
        display: block;
    }

.card-content {
    padding: 20px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Utility Classes */
.spacing {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
}

.mt-4 {
    margin-top: 4px;
}

/* Add similar classes for mr, mb, ml, pt, pr, pb, pl with appropriate values */

/* Flexbox Utilities */
.d-flex {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

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

.flex-wrap {
    flex-wrap: wrap;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

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

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

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

/* Text Colors */
.text-primary {
    color: #007AFF;
}

.text-secondary {
    color: #005ECB;
}

.text-light {
    color: #f7f7f7;
}

.text-dark {
    color: #333;
}

.text-muted {
    color: #999;
}

/* Background Colors */
.bg-primary {
    background-color: #007AFF;
}

.bg-secondary {
    background-color: #005ECB;
}

.bg-light {
    background-color: #f7f7f7;
}

.bg-dark {
    background-color: #333;
}

.bg-muted {
    background-color: #999;
}

/* Animations & Transitions */
.transition {
    transition: all 0.3s ease-out;
}

.fade-hover:hover {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scale-hover:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Define the keyframes for the up and down motion */
@keyframes upDown {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Apply the keyframes to the hover state */
.slide-up-hover {
    text-shadow: 0px 0px 2px gray;
}

.slide-up-hover:hover {
    animation: upDown 1.0s ease-in-out infinite;
    text-shadow: 0px 0px 2px gray;
}

/* Page Load Fade-In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in-on-load {
    animation: fadeIn 0.5s ease forwards;
}

/* Spinner Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #007AFF;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Media Queries */
@media only screen and (max-width: 600px) {
    .container {
        padding: 0 10px;
    }

    h1, h2, h3 {
        font-size: 1.5em;
    }

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

        .navbar a {
            margin-bottom: 10px;
        }

    .grid-item {
        flex: 0 0 100%;
    }

    .sidebar {
        padding: 10px;
        flex: 0 0 100%;
    }
}

@media only screen and (min-width: 601px) and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    h1, h2 {
        font-size: 2em;
    }

    h3, h4 {
        font-size: 1.75em;
    }

    .grid-item.half {
        flex: 0 0 50%;
    }

    .grid-item.third {
        flex: 0 0 33.3333%;
    }

    .sidebar {
        padding: 15px;
    }
}

@media only screen and (min-width: 1025px) {
    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    h3 {
        font-size: 1.75em;
    }

    .grid-item.half {
        flex: 0 0 50%;
    }

    .grid-item.third {
        flex: 0 0 33.3333%;
    }

    .grid-item.quarter {
        flex: 0 0 25%;
    }
}

/* Color Palette */
:root {
    --primary-color: #007AFF;
    --secondary-color: #005ECB;
    --background-light: #f7f7f7;
    --background-dark: #333;
    --text-light: #f7f7f7;
    --text-dark: #333;
    --text-muted: #999;
    --border-color: #e0e0e0;
}

/* Shadows */
.box-shadow {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.box-shadow-hover:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Global Styles using the Theme */
body {
    background-color: var(--background-light);
    color: var(--text-dark);
}

a {
    color: var(--primary-color);
}

    a:hover {
        color: var(--secondary-color);
    }

hr {
    border-color: var(--border-color);
    margin: 20px 0;
}

/* Themed Components */
.button-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

    .button-primary:hover {
        background-color: var(--secondary-color);
    }

.card {
    border: 1px solid var(--border-color);
}

/* Blog Specific Styles */
.blog-post {
    margin-bottom: 30px;
}

    .blog-post a {
        font-weight: bold;
        color: var(--primary-color);
    }

        .blog-post a:hover {
            text-decoration: underline;
        }

/* Individual Blog Post Styles */
.blog-content {
    line-height: 1.8;
    margin-bottom: 20px;
}

    .blog-content img {
        margin: 20px 0;
    }

    .blog-content h2,
    .blog-content h3 {
        margin-top: 20px;
    }

/* Logo Styling */
.logo {
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px;
}

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

/* Hamburger Menu Styling */
.hamburger-menu {
    background: none;
    border: none;
    position: relative;
    width: 30px;
    height: 22px;
    cursor: pointer;
    outline: none;
}

    .hamburger-menu::before {
        content: "";
        position: absolute;
        top: -5px;
        right: -5px;
        bottom: -5px;
        left: -5px;
        z-index: -1;
        box-shadow: none;
        transition: box-shadow 0.3s ease;
    }

    .hamburger-menu:focus::before {
        box-shadow: 0 0 5px 2px #007AFF;
    }

    .hamburger-menu span {
        position: absolute;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--text-dark);
        transition: 0.3s;
        background-color: #bbb;
    }

        .hamburger-menu span:nth-child(1) {
            top: 0;
        }

        .hamburger-menu span:nth-child(2) {
            top: 50%;
            transform: translateY(-50%);
        }

        .hamburger-menu span:nth-child(3) {
            bottom: 0;
        }

/* Slide Out Menu Styling */
/*.slide-out-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    overflow-y: auto;
}

    .slide-out-menu nav {
        padding: 20px;
    }
*/

/* Slide-Out Menu Styles */
.slide-out-menu {
    position: fixed;
    top: 0;
    left: -300px; /* Width of the menu */
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    overflow-y: auto; /* In case the content exceeds the viewport height */
    display: flex;
    flex-direction: column;
    padding-top: 20px; /* Add padding at the top for the close button */
    z-index: 1100;
}

.close-menu {
    align-self: flex-end; /* Position the close button to the right */
    margin-right: 20px; /* Adjust as needed for spacing */
    background: none;
    border: none;
    font-size: 24px; /* Adjust as needed */
    cursor: pointer;
    position: relative;
    top: 10px; /* Adjust as needed */
}

    .close-menu:focus {
        outline: none;
        box-shadow: 0 0 5px #007AFF;
    }

/*nav {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between menu items 
    border-top: 1px solid #ccc; /* Divider line 
    margin-top: 10px; /* Space between the close button and menu items 
}
*/

/* General styles for nav links */
.nav-link {
    position: relative;
    color: var(--text-dark);
    text-decoration: none;
    padding: 15px 20px; /* Adjust padding for better spacing */
    display: block; /* Ensure links take full width */
    transition: color 0.3s ease;
}

    .nav-link:hover,
    .nav-link:focus,
    .nav-link.current {
        color: var(--primary-color);
    }

    /* Divider between nav links */
    .nav-link + .nav-link {
        border-top: 1px solid #ddd; /* Light gray border as a divider */
    }

    /* Underline effect */
    .nav-link::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--primary-color);
        visibility: hidden;
        transform: scaleX(0);
        transition: all 0.3s ease-in-out;
    }

    .nav-link:hover::after,
    .nav-link:focus::after,
    .nav-link.current::after {
        visibility: visible;
        transform: scaleX(1);
    }

/* Dark Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
    z-index: 1000; /* Ensure it is below the slide-out menu */
}

    /* Show overlay and slide-out menu */
    .overlay.show {
        visibility: visible;
        opacity: 1;
    }

.image-gallery {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* This makes the container a square */
    overflow: hidden;
    background-color: #000; /* Optional: to show a background when the image/video doesn't cover the whole container */
    border-radius: 25px;
    box-shadow: 0px 0px 40px 20px rgba(0, 0, 0, 0.25);
    /*box-shadow: 0px 0px 40px 20px white inset;*/
}

.main-image, .video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the image/video is contained within the box without stretching */
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease-in-out;
}

    .main-image.hidden, .video.hidden {
        opacity: 0;
        pointer-events: none;
    }

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    /*margin-left: 10px;
    margin-right: 10px;*/
}

    .gallery-thumbnails img, .gallery-thumbnails .video-thumbnail {
        width: 80px;
        height: auto;
        /**margin: 0 5px;*/
        cursor: pointer;
        border: 2px solid transparent;
        border-radius: 10px;
        box-shadow: 0px 0px 20px 10px rgba(0, 0, 0, 0.25);
        margin-left: 5px;
        margin-right: 5px;
    }

        .gallery-thumbnails img.active, .gallery-thumbnails .video-thumbnail.active {
            border: 2px solid #006aff;
        }

.arrow {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    transform: translateY(-50%);
}

    .arrow.left {
        left: 10px;
    }

    .arrow.right {
        right: 10px;
    }

/* This section below is for the blog builder images*/
    .image-frame {
        display: inline-block;
        margin: 10px;
        max-width: 50%;
      }
      
      .image-left {
        float: left;
        margin-right: 15px;
      }
      
      .image-right {
        float: right;
        margin-left: 15px;
      }
      
      .image-center {
        display: block;
        margin: 10px auto;
      }
      
      .blog-image {
        max-width: 33%;
        height: auto;
        margin: 10px;
      }
      
      .blog-image {
        margin: 10px;
        height: auto;
      }
      
      .blog-image.left {
        float: left;
        margin-right: 15px;
      }
      
      .blog-image.right {
        float: right;
        margin-left: 15px;
      }
      
      .blog-image.center {
        display: block;
        margin: 10px auto;
        float: none;
      }
      
      .image-caption {
        font-size: 0.9em;
        text-align: center;
        color: #555;
      }
      
      /* On mobile, images take full width */
      @media screen and (max-width: 768px) {
        .blog-image {
          float: none !important;
          display: block;
          max-width: 100% !important;
          margin: 10px auto;
        }
      }
      
      