/* Global styles */
*,
*::before,
*::after {
    box-sizing: border-box; /* Apply box-sizing to all elements */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
      header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #FF0000;
            color: #fff;
            padding: 10px 20px;
            height: 60px;
            box-sizing: border-box;
        }

        .logo {
            width: 150px;
            height: 100%;
            object-fit: contain;
        }

        .nav-menu,
        .nav-mobile ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .nav-menu {
            display: flex;
            gap: 20px;
            position: relative;
        }

        .nav-menu li,
        .nav-mobile li {
            position: relative;
        }

        .nav-menu a,
        .nav-mobile a {
            color: #fff; 
            text-decoration: none;
            font-size: 16px;
        }

        .nav-menu a:hover,
        .nav-mobile a:hover {
            text-decoration: underline;
        }

        .nav-mobile {
            display: none;
            position: fixed;
            top: 0;
            left: -250px;
            height: 100%;
            width: 250px;
            background-color: #FF0000;
            padding-top: 20px;
            transition: left 0.3s ease;
            z-index: 10;
        }

        .nav-mobile li {
            padding: 15px;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            left: 0;
            background-color: red;
            min-width: 180px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            z-index: 10;
            border-radius: 4px;
            padding: 10px 15px;
        }

        .nav-menu li:hover .dropdown-content {
            display: block;
        }

        .dropdown-content a,
        .nav-mobile .dropdown-content-mobile a {
            color: white;
            text-decoration: none;
            display: block;
            padding: 10px 15px;
        }

        .dropdown-content a:hover,
        .nav-mobile .dropdown-content-mobile a:hover {
            background-color: rgba(0, 0, 0, 0.1);
        }

        .dropdown-arrow {
            color: white;
            margin-left: 5px;
            vertical-align: middle;
        }

        .mobile-menu-icon {
            display: none;
            font-size: 30px;
            color: white;
            cursor: pointer;
        }

        @media (max-width: 768px) {
            .nav-menu {
                display: none;
            }
            .mobile-menu-icon {
                display: block;
            }
            .nav-mobile {
                display: block;
            }
        }
/* Container styling */
.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100vh; /* Ensure container height fills the viewport */
}

/* Centered container styling */
.centered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

/* Header styling */
h1 {
    text-align: left;
    color: #333;
    margin: 20px 0; /* Add some margin for spacing */
    font-size: 2em;
}

/* Brand header styling */
.brand-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    width: 100%;
}

.brand-image-container {
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 10px;
}

.brand-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Download buttons styling */
.download-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 20px;
}

.download-buttons a {
    display: block;
    margin: 5px 0;
    padding: 10px;
    font-size: 16px;
    color: #ffffff;
    background-color: red;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.download-buttons a:hover {
    background-color: #0056b3;
}

/* Ad banner styling */
.ad-banner {
    width: 100%;
    max-width: 300px;
    margin: 20px 0;
    text-align: center;
}

.ad-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 20px;
}

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

th {
    background-color: #FF0000;
    color: #ffffff;
}

td {
    font-size: 0.9em;
}

.bold {
    font-weight: bold;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Color boxes and copy button styling */
.color-box-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.color-box {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-right: 10px;
}

.copy-button {
    background-color: black;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: 10px;
}

/* Related posts styling */
.related-posts {
    margin-top: 20px;
}

.related-posts-container,
.recent-posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
}

.related-post,
.recent-post {
    width: 150px;
    height: 150px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.related-post-thumbnail,
.recent-post-thumbnail {
    object-fit: contain;
    padding-top: 10px;
}

.related-post-thumbnail {
    width: 100px;
    height: 100px;
}

.recent-post-thumbnail {
    width: 110px;
    height: 110px;
}

.related-post p,
.recent-post p {
    margin: 0;
    padding: 10px;
    font-size: 12px;
    color: #333;
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        align-items: center;
        text-align: center;
    }

    .brand-header {
        flex-direction: column;
        align-items: center;
    }

    .brand-image-container {
        margin-bottom: 20px;
        width: 100%;
    }

    .download-buttons,
    .ad-banner,
    .search-container {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .brand-header {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 20px;
    }

    .ad-banner {
        grid-column: 2;
    }

    .brand-image-container {
        grid-column: 1;
    }

    .download-buttons {
        grid-column: 3;
    }
}

/* ----------------------------------- */
/*           Logo Evolution            */
/* ----------------------------------- */

/* Ensure the logo-evolution section takes full width */
#logo-evolution {
    width: 100%;
    max-width: 100%; /* Ensure it doesn't exceed the body's width */
    margin: 0 auto; /* Center horizontally */
    padding: 0 20px; /* Padding to avoid content touching edges */
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

/* Ensure the timeline-table uses the full width of its container */
.timeline-table {
    width: 100%; /* Full width of the parent container (#logo-evolution) */
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    table-layout: auto; /* Allows the table to adjust its width based on content */
    overflow-x: auto; /* Add horizontal scrolling if necessary */
    box-sizing: border-box; /* Ensure it doesn't exceed its container */
}

/* Table cell styling */
.timeline-table th,
.timeline-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.timeline-table th {
    background-color: #FF0000;
    color: #ffffff;
}

.timeline-table td {
    font-size: 0.9em;
}

/* Logo styling */
.timeline-table img {
    max-width: 100px; /* Default logo size */
    height: 100px; /* Fixed height to prevent layout shift */
    display: block;
    margin: 0 auto;
    transition: opacity 0.3s ease; /* Smooth transition */
}

/* Hover effect for logos */
.timeline-table td img:hover {
    opacity: 0.7; /* Slightly fade out the image on hover */
}

/* Responsive Styles */
@media (max-width: 768px) {
    #logo-evolution {
        padding: 0 10px; /* Adjust padding on smaller screens */
    }

    .timeline-table {
        font-size: 14px; /* Adjust font size for mobile */
    }

    .timeline-table img {
        max-width: 150px; /* Adjust logo size for mobile */
    }
}

/* Ad banner styling */
.ad-banner {
    width: 300px; /* Fixed width */
    height: 300px; /* Fixed height */
    overflow: hidden; /* Hide overflowing content */
}

.ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area */
}

/* Fancybox content styling */
.fancybox-content {
    background-color: white !important; /* White background */
    max-width: 90vw; /* Limit to 90% of the viewport width */
    max-height: 90vh; /* Limit to 90% of the viewport height */
}

.fancybox-image {
    max-width: 200%!important; /* Allow image to take full width */
    max-height: 200%; /* Allow image to take full height */
    width: auto; /* Allow width to be auto */
    height: auto; /* Allow height to be auto */
    display: block; /* Ensure block display for centering */
    margin: 0 auto; /* Center the image */
}

/* Brand image container styling */
.brand-image-container {
    position: relative; /* Ensure positioning works relative to this container */
    display: inline-block; /* Ensure it only takes as much space as needed */
    width: 300px; /* Set fixed width */
    height: 300px; /* Set fixed height */
}

/* Pinterest button styling */
.pinterest-button {
    position: absolute; /* Position the button absolutely within the container */
    top: 10px; /* Adjust as needed */
    right: 10px; /* Adjust as needed */
    z-index: 10; /* Ensure it appears on top */
}

.pinterest-button img {
    width: 30px; /* Adjust size of the icon as needed */
    height: auto; /* Maintain aspect ratio */
    transition: transform 0.3s; /* Smooth transition */
}

.pinterest-button img:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Search bar styling */
.search-bar-container {
    display: flex;
    justify-content: center;
    padding: 10px 20px;
    background-color: #f8f8f8;
    position: relative; /* Positioning for dropdown */
}

.search-form {
    position: relative;
    max-width: 600px;
    width: 100%;
}

.search-bar {
    width: 100%;
    padding: 10px 40px 10px 20px;
    font-size: 16px;
    border-radius: 25px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.search-icon {
    width: 24px;
    height: 24px;
}

/* Dropdown styling */
.dropdown {
    width: 100%;
    max-width: 600px;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    position: absolute;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 10px 0;
    transition: opacity 0.3s ease-in, transform 0.3s ease-in; /* Updated transition */
    opacity: 0;
    transform: translateY(-10px);
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px; /* Reduced space */
    top: calc(100% + 5px); /* Adjusted for reduced space */
}

.dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0) translateX(-50%);
}

.dropdown-item {
    display: flex; /* Align items in a row */
    align-items: center;
    padding: 10px 15px; /* Padding for items */
    cursor: pointer;
    transition: background 0.3s; /* Smooth background change */
}

.dropdown-item:hover {
    background: #f0f0f0; /* Change on hover */
}

/* Thumbnail styling */
.thumbnail {
    width: 50px; /* Thumbnail size */
    height: 50px; /* Thumbnail size */
    object-fit: contain; /* Ensure the image fits nicely in the square without cutting */
    border-radius: 4px; /* Slightly rounded corners for modern look */
    margin-right: 10px; /* Space between image and text */
}

/* Responsive styles */
@media (max-width: 600px) {
    .search-bar {
        padding: 10px 30px 10px 15px;
    }

    .search-icon {
        width: 20px;
        height: 20px;
    }

    .dropdown {
        width: calc(100% - 40px); /* Adjust width for smaller screens */
        max-width: none; /* Remove max-width constraint */
    }
}