/*
 * Board Template #2 - Ornate Frame Chalkboard
 * 
 * Elegant ornate frame design with decorative border image.
 * Features classic chalkboard aesthetic with beautiful typography.
 * 
 * CUSTOMIZATION VARIABLES:
 * 
 * --board-zoom: Scale the entire board (default: 0.85 = 85%)
 *   Examples: 1.0 = 100%, 0.85 = 85%, 0.75 = 75%, 1.1 = 110%
 * 
 * --border-width: Thickness of ornate frame border (default: 120px)
 *   Examples: 100px = thinner, 120px = original, 140px = thicker
 *   Note: Larger values = more ornate frame visible
 */

:root {
    --board-zoom: 0.85;
    --border-width: 120px;
}

/* Main Menu Container */
.cmp-board-2 {
    display: inline-block;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    transform: scale(var(--board-zoom));
    transform-origin: center top;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Picture Frame Drop Shadow - makes it pop off the page */
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4))
            drop-shadow(0 8px 15px rgba(0, 0, 0, 0.3))
            drop-shadow(0 3px 8px rgba(0, 0, 0, 0.2));
}

/* Ornate Border Frame */
.cmp-board-2 .menu-border {
    position: relative;
    border-style: solid;
    border-width: var(--border-width);
    border-image-source: url('menu-border-small.png');
    border-image-slice: 116 110 117 111;
    border-image-repeat: stretch;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Chalkboard Background */
.cmp-board-2 .menu-background {
    padding: 60px;
    background-color: #000000;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('back-big-blackboard-BW.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Menu Sections Container - Each section is now independent */
.cmp-board-2 .menu-section {
    display: block;
    width: 100%;
}

/* Menu Items Column */
.cmp-board-2 .menu-items {
    display: inline-block;
    vertical-align: top;
    flex: 0 1 calc(33.333% - 40px);
    min-width: 250px;
    max-width: calc(33.333% - 40px);
    padding: 0px 20px 30px 20px;
    list-style-type: none;
    margin: 0;
}

.cmp-board-2 .menu-items li {
    list-style-type: none;
    text-align: -webkit-center;
    display: table;
    margin: 0px auto 0px auto;
}

/* Section Headings */
.cmp-board-2 .heading {
    font-size: 32px !important;
    padding-bottom: 18px !important;
    color: #a3b518 !important;
    text-align: center;
    width: fit-content;
    margin: 0 0 12px 0;
    font-family: "Brilon", "Poppins", sans-serif;
    font-weight: 400;
    text-transform: capitalize;
}

/* Menu Item Text */
.cmp-board-2 .menu-items p {
    text-align: center;
    width: fit-content;
    color: #ffffff;
    padding: 4px 0px;
    font-size: 18px;
    letter-spacing: 4px;
    font-family: "Brilon", "Poppins", sans-serif;
    margin: 0;
    line-height: 1.7;
}

/* Menu Item Links */
.cmp-board-2 .menu-item-link {
    display: block;
    text-align: center;
    width: fit-content;
    color: #ffffff;
    padding: 4px 0px;
    font-size: 18px;
    letter-spacing: 4px;
    font-family: "Brilon", "Poppins", sans-serif;
    margin: 0;
    line-height: 1.7;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.cmp-board-2 .menu-item-link:hover {
    color: #a3b518;
    transform: translateX(3px);
}

.cmp-board-2 .menu-item-link:focus {
    outline: 2px solid #a3b518;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cmp-board-2 .menu-border {
        border-width: calc(var(--border-width) * 0.42);
        border-image-slice: 58 55 59 56;
    }
    
    .cmp-board-2 .menu-background {
        padding: 30px 20px;
    }
    
    .cmp-board-2 .menu-items {
        display: block;
        width: 100%;
        min-width: 100%;
        padding: 0px 15px 20px 15px;
    }
    
    .cmp-board-2 .heading {
        font-size: 26px;
        letter-spacing: 3px;
    }
    
    .cmp-board-2 .menu-items p {
        font-size: 15px;
        letter-spacing: 1.2px;
    }
}

/* Tablet Adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .cmp-board-2 .menu-border {
        border-width: calc(var(--border-width) * 0.625);
        border-image-slice: 87 83 88 84;
    }
    
    .cmp-board-2 .menu-background {
        padding: 35px 25px;
    }
    
    .cmp-board-2 .menu-items {
        width: calc(50% - 20px);
    }
    
    .cmp-board-2 .heading {
        font-size: 28px;
        letter-spacing: 3.5px;
    }
    
    .cmp-board-2 .menu-items p {
        font-size: 16px;
    }
}
