/* ulog-serve.css */

/* Hero buttons: move down 3 lines and add gap between buttons */
.hero-buttons {
    display: flex !important;
    gap: 20px !important;
    margin-top: 3rem !important;
}

/* Restaurant videos section */
.restaurant-videos {
    padding: 80px 0;
    background-color: var(--white);
}

.restaurant-videos .section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* Video cards grid */
.restaurant-videos .video-grid {
    display: flex;
    gap: 24px;
    justify-content: center; /* fra forrige override */
    flex-wrap: wrap;         /* fra forrige override */
    padding-bottom: 12px;
}

/* Hvert videokort – samme "card-look" som resten av siten */
.restaurant-videos .video-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 320px;
    max-width: 420px;  /* Økt fra 360px til 420px for bredere kort */
    flex: 1;  /* Gjør at kortene vokser for å fylle tilgjengelig plass */
    cursor: auto !important;  /* Fjern cursor: pointer fra video-kort */
}

.restaurant-videos .video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Bilde/thumbnail i toppen av kortet */
.restaurant-videos .video-card .video-container img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Tekstdel i kortet */
.restaurant-videos .video-info {
    padding: 16px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.restaurant-videos .video-info h3 {
    font-size: 1.05rem;
    margin: 0;
}

.restaurant-videos .video-info p {
    font-size: 1rem;  /* Økt fra 0.95rem til 1rem for å matche andre seksjoner */
    margin: 0;
    line-height: 1.6;  /* Bedre lesbarhet */
}

/* Tag + varighet nederst i kortet */
.restaurant-videos .video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.85rem;
}

.restaurant-videos .video-tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--light);
}

.restaurant-videos .video-duration {
    opacity: 0.7;
}

/* Mobiltilpasning – én kolonne og full bredde */
@media (max-width: 768px) {
    .restaurant-videos .video-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .restaurant-videos .video-card {
        max-width: 100%;
        width: 100%;
    }
}

.video-benefits .video-container video {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Override for desktop: video til høyre, tekstbokser til venstre */
/* Viktig: styles.css setter order: 2 på benefits-list og order: 1 på video-container */
/* Vi må reversere dette */
.video-benefits-container {
    display: flex !important;
    gap: 60px !important;
    align-items: center !important;
    margin-top: 2rem !important;
}

.video-benefits-container .benefits-list {
    order: 1 !important;  /* Tekstbokser til venstre */
    flex: 0 0 40%;  /* 40% bredde */
}

.video-benefits-container .video-container {
    order: 2 !important;  /* Video til høyre */
    flex: 0 0 60%;  /* 60% bredde */
}

/* På mobil: tilbake til én kolonne */
@media (max-width: 768px) {
    .video-benefits-container {
        flex-direction: column !important;
    }
    
    .video-benefits-container .benefits-list,
    .video-benefits-container .video-container {
        flex: 0 0 100% !important;  /* Full bredde på mobil */
    }
}

/* Feature-card hover effects and icon styling */
.features-grid .feature-card {
    transition: all 0.3s ease !important;
}

.features-grid .feature-card:hover {
    transform: translateY(-5px) !important;
}

.features-grid .feature-card .feature-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: flex-start !important;
}

.features-grid .feature-card .feature-content h3 {
    margin: 0 !important;
    font-size: 1.15rem !important;
}

.features-grid .feature-card .feature-icon {
    width: 60px !important;
    height: 60px !important;
    background-color: rgba(0,169,165,0.1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
    margin-right: 12px !important;
}

.features-grid .feature-card .feature-content > div:first-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}

.features-grid .feature-card:hover .feature-icon {
    background-color: var(--turquoise) !important;
    transform: scale(1.1) !important;
}

.features-grid .feature-card:hover .feature-icon svg {
    fill: var(--white) !important;
}

.features-grid .feature-card .feature-icon svg {
    width: 30px !important;
    height: 30px !important;
    fill: var(--secondary) !important;
    transition: all 0.3s ease !important;
}

/* Benefit items: only hover effects, no layout changes */
.benefits-list .benefit-item {
    transition: all 0.3s ease !important;
}

.benefits-list .benefit-item:hover {
    transform: translateY(-5px) !important;
}

.benefits-list .benefit-item:hover .benefit-item-icon {
    background-color: var(--turquoise) !important;
    transform: scale(1.1) !important;
}

.benefits-list .benefit-item:hover .benefit-item-icon svg {
    fill: var(--white) !important;
}

.benefits-list .benefit-item-icon {
    transition: all 0.3s ease !important;
}

.benefits-list .benefit-item-icon svg {
    transition: all 0.3s ease !important;
}

/* Specs section: Robot til venstre, spesifikasjonsbokser til høyre */
.specs .specs-container {
    display: flex !important;
    gap: 60px !important;
    align-items: flex-start !important;
}

.specs .specs-left {
    flex: 0 0 45% !important;
}

.specs .specs-right {
    flex: 0 0 55% !important;
}

.specs .specs-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

.specs .spec-box {
    background: var(--light) !important;
    padding: 20px !important;
    border-radius: 12px !important;
    text-align: center !important;
}

.specs .spec-box h4 {
    margin: 0 0 10px 0 !important;
    font-size: 1rem !important;
}

.specs .spec-box p {
    margin: 0 !important;
    font-size: 0.95rem !important;
}

/* Mobiltilpasning for specs */
@media (max-width: 768px) {
    .specs .specs-container {
        flex-direction: column !important;
    }

    .specs .specs-left,
    .specs .specs-right {
        flex: 0 0 100% !important;
    }

    .specs .specs-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Fix for specs image alignment - match height with text content using absolute positioning */
.specs .specs-container {
    display: flex !important;
    align-items: stretch !important;
    position: relative !important;
    gap: 30px !important; /* Reduced gap from 60px to 30px */
}

.specs .specs-image {
    flex: 0 0 40% !important; /* Reduced width slightly to give more space to text if needed */
    position: relative !important; /* Anchor for absolute image */
    min-height: 1px; /* Prevent collapse */
}

.specs .specs-content {
    flex: 0 0 60% !important; /* Increased width slightly */
}

.specs .specs-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: right center !important; /* Align image to the right, closer to text */
}

@media (max-width: 768px) {
    .specs .specs-container {
        flex-direction: column !important;
    }

    .specs .specs-image, 
    .specs .specs-content {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
    
    .specs .specs-image {
        height: auto !important;
        min-height: 300px !important; /* Give it some height on mobile */
    }

    .specs .specs-image img {
        position: static !important; /* Reset absolute positioning on mobile */
        width: 100% !important;
        height: auto !important;
        max-height: 400px !important;
    }
}
