/* Main Description Wrapper */
.gv-main-description-wrapper {
    width: 100%;
    margin-bottom: 1.5em;
    background: transparent;
    color: #fff;
    /* Default text color */
}

/* Title Styling */
.gv-main-desc-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0.8em 0 0.8em 0;
    color: #fff;
    font-family: inherit;
}

/* Bordered Box Styling */
.gv-main-desc-box {
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Visible grey/white border */
    border-radius: 16px;
    /* Rounded corners */
    padding: 1.4em;
    background: transparent;
    /* Requested transparent bg */
}

.gv-main-desc-content {
    line-height: 1.6;
    font-size: 15px;
}

/* Basic formatting for content usually injected by editors */
.gv-main-desc-content h2,
.gv-main-desc-content h3 {
    color: #fff;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.gv-main-desc-content p {
    color: #e0e0e0;
}

/* Attributes for seamless video loop */
.gv-main-desc-content video {
    pointer-events: none !important;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /* Optional rounding */
    outline: none;
    user-select: none;
    /* FIX: Remove spacing */
    display: block;
    margin: 0 auto;
    line-height: 0;
}

/* FIX: Remove margins from paragraphs containing videos (if JS doesn't catch them all) */
.gv-main-desc-content p:has(video) {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* Fallback for older browsers (approximate) */
.gv-main-desc-content p video {
    margin-bottom: -10px;
    /* Counteract line-height if needed */
}

/* Hide controls just in case */
.gv-main-desc-content video::-webkit-media-controls {
    display: none !important;
}

.gv-main-desc-content video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Force Hide MediaElement.js Controls (WordPress Player) */
.gv-main-desc-content .mejs-controls,
.gv-main-desc-content .mejs-overlay-play,
.gv-main-desc-content .mejs-overlay-loading,
.gv-main-desc-content .mejs-overlay-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.gv-main-desc-content .mejs-container {
    background: transparent !important;
    pointer-events: none !important;
}

h5.bb_tag {
    margin: 0;
    color: #7a7a7a !important;
    margin-bottom: 0.8em;
}

p.bb_paragraph {
    margin: 0;
    color: #7a7a7a !important;
    margin-bottom: 0.5em;
}

.wp-video {
    margin-bottom: 1.5em;
}

/* Collapsible Box Logic */
.gv-main-desc-box {
    position: relative;
    transition: max-height 0.6s ease;
    overflow: hidden;
    z-index: 1;
    /* Low base z-index */
}

.gv-main-desc-box.collapsed {
    max-height: 18em;
}

/* Blur Mask - "The Mask Effect" */
.gv-main-desc-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 350px;
    /* "Make it go a little more up" */
    z-index: 10;
    pointer-events: none;

    /* Blur Effect - "Increase blurness" */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    /* Darkness Effect - "Add darkness" */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);

    /* Fade the blur/darkness in from top to bottom */
    mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%);

    /* Transition for removal */
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Hide mask when expanded */
.gv-main-desc-box:not(.collapsed) .gv-main-desc-mask {
    opacity: 0;
    pointer-events: none;
}

/* --- Trigger Section (Line + Arrow) --- */
/* --- Trigger Section (Line + Arrow) --- */
.gv-main-desc-trigger {
    display: flex;
    align-items: center;
    justify-content: center;

    /* Position Absolute at Bottom of Box */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    z-index: 10;
    /* Super high to ensure it's on top */
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s;

    padding-bottom: 20px;
    /* Space from bottom edge */
    pointer-events: auto;
    /* Force clickability */
}

/* Hide trigger if not needed (JS can handle this, but for now CSS handles hover) */
.gv-main-desc-trigger:hover {
    opacity: 1;
}

/* The Lines */
.gv-desc-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 15px;
}

/* The Arrow Circle */
.gv-desc-arrow-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, background 0.3s;
}

.gv-main-desc-trigger:hover .gv-desc-arrow-wrapper {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* The Chevron Icon */
.gv-desc-arrow-icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: -3px;
    /* visual adjustment */
    transition: transform 0.4s ease;
}

/* Rotate arrow when expanded - FIX SELECTOR */
.gv-main-description-wrapper.expanded .gv-desc-arrow-icon {
    transform: rotate(225deg);
    margin-top: 3px;
}

/* Hide lines when expanded */
.gv-main-description-wrapper.expanded .gv-desc-line {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wp-video {
    margin-bottom: 1.5em;
}