/* ====================================
   PATENTS PAGE - MOBILE FIRST RESPONSIVE DESIGN
   ==================================== */

/* ====================================
   HERO SECTION
   =====================    }
}

/* ====================================
   HERO SECTION
   ==================================== */

/* Mobile-first: Default styles for mobile */
.patents-hero {
    background: linear-gradient(to right, #000000, #4d0166);
    padding: calc(80px + var(--ap-spacing-l)) var(--ap-spacing-s) var(--ap-spacing-l) var(--ap-spacing-s);
}

/* Mobile: Ensure vertical stacking */
.patents-hero-layout {
    display: block;
}

.patents-hero-content h1 {
    color: var(--ap-color-text-secondary);
    margin-bottom: var(--ap-spacing-m);
}

.patents-hero-text p {
    color: var(--ap-color-text-secondary);
    margin-bottom: var(--ap-spacing-m);
}

.patents-hero-text p:last-child {
    margin-bottom: 0;
}

/* Mobile: Hide desktop stacked images on mobile */
.patents-hero-images-desktop {
    display: none;
}

/* ====================================
   PATENT PORTFOLIO SECTION
   ==================================== */

.patents-portfolio {
    background: var(--ap-color-primary-bg);
    padding: var(--ap-spacing-l) var(--ap-spacing-s);
}

.patents-portfolio h2 {
    color: var(--ap-color-text-primary);
    margin-bottom: var(--ap-spacing-m);
}

/* Mobile-first: Patent cards stacked vertically */
.patents-grid {
    display: flex;
    flex-direction: column;
    gap: var(--ap-spacing-m);
}

/* Mobile-first: Patent card styling */
.ap-patent-card {
    background: transparent;
    border: 3px solid var(--ap-color-accent-pink);
    border-radius: var(--ap-radius-xl);
    padding: var(--ap-spacing-s);
    display: flex;
    flex-direction: column;
    gap: var(--ap-spacing-s);
}

/* Mobile: Hide thumbnails */
.ap-patent-thumbnail {
    display: none;
}

/* Mobile: Patent content layout */
.ap-patent-content {
    display: flex;
    flex-direction: column;
    gap: var(--ap-spacing-xs);
}

/* Mobile: Header stacked vertically */
.ap-patent-header {
    display: flex;
    flex-direction: column;
    gap: var(--ap-spacing-xs);
}

/* Mobile: Patent info */
.ap-patent-info h3 {
    color: var(--ap-color-text-secondary);
    font-weight: bold;
    margin: 0;
}

.ap-patent-info p {
    color: var(--ap-color-text-secondary);
    margin: 0;
}

.ap-patent-date {
    color: var(--ap-color-text-secondary);
    margin: 0;
}

.ap-patent-abstract {
    color: var(--ap-color-text-secondary);
    margin: 0;
}

.ap-patent-inventors {
    color: var(--ap-color-text-secondary);
    margin: 0;
}

/* ====================================
   TABLET BREAKPOINT (min-width: 769px)
   ==================================== */

@media (min-width: 769px) {
    /* Hero adjustments for tablet+ */
    .patents-hero {
        padding: calc(80px + var(--ap-spacing-xl)) var(--ap-spacing-m) var(--ap-spacing-xl) var(--ap-spacing-m);
    }
    
    /* Desktop: Side-by-side layout with content on left, images on right */
    .patents-hero-layout {
        display: flex;
        align-items: flex-start;
        gap: calc(var(--ap-spacing-xl) * 2);
    }
    
    .patents-hero-content {
        flex: 1;
        max-width: 50%;
    }
    
    /* Desktop: Show stacked images */
    .patents-hero-images-desktop {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        flex-shrink: 0;
        width: 350px;
        height: 400px;
        position: relative;
        margin-left: var(--ap-spacing-l);
    }
    
    .patents-hero-images-desktop img {
        grid-area: 1/1;
        width: 200px;
        height: 200px;
        object-fit: cover;
        border-radius: var(--ap-radius-l);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
    
    /* Create the offset stacking effect with margins - matching original pattern */
    .patents-hero-images-desktop img:nth-child(1) {
        margin-left: 50px;
        margin-top: 0px;
        z-index: 4;
    }
    
    .patents-hero-images-desktop img:nth-child(2) {
        margin-left: 30px;
        margin-top: 40px;
        z-index: 3;
    }
    
    .patents-hero-images-desktop img:nth-child(3) {
        margin-left: 10px;
        margin-top: 80px;
        z-index: 2;
    }
    
    .patents-hero-images-desktop img:nth-child(4) {
        margin-left: -10px;
        margin-top: 120px;
        z-index: 1;
    }
    
    /* Portfolio adjustments for tablet */
    .patents-portfolio {
        padding: var(--ap-spacing-xl) var(--ap-spacing-m);
    }
    
    /* Tablet: Show thumbnails */
    .ap-patent-thumbnail {
        display: block;
        flex-shrink: 0;
        width: 120px;
    }
    
    .ap-patent-thumbnail img {
        width: 100%;
        height: auto;
        border-radius: var(--ap-radius-m);
    }
    
    /* Tablet: Horizontal card layout */
    .ap-patent-card {
        flex-direction: row;
        gap: var(--ap-spacing-m);
        padding: var(--ap-spacing-m);
    }
    
    /* Tablet: Show header button */
    .ap-patent-header .ap-button--feature-outline {
        display: flex;
        flex-shrink: 0;
    }
    
    /* Tablet: Horizontal header layout */
    .ap-patent-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: var(--ap-spacing-m);
    }
    
    .ap-patent-info {
        flex: 1;
    }
    
    /* Tablet: Hide pseudo-element button */
    .ap-patent-content::after {
        display: none;
    }
}

/* ====================================
   DESKTOP BREAKPOINT (min-width: 1024px)
   ==================================== */

@media (min-width: 1024px) {
    /* Desktop: Enhanced container padding */
    .patents-hero {
        padding: calc(80px + var(--ap-spacing-xxl)) var(--ap-spacing-l) var(--ap-spacing-xxl) var(--ap-spacing-l);
    }
    
    /* Desktop: Larger spacing between content and images */
    .patents-hero-layout {
        gap: calc(var(--ap-spacing-xxl) * 1.5);
    }
    
    /* Desktop: Larger grid container for bigger images */
    .patents-hero-images-desktop {
        width: 400px;
        height: 450px;
        margin-left: var(--ap-spacing-xl);
    }
    
    .patents-hero-images-desktop img {
        width: 220px;
        height: 220px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    }
    
    /* Enhanced offset stacking effect with larger margins - matching original direction */
    .patents-hero-images-desktop img:nth-child(1) {
        margin-left: 50px;
        margin-top: 0px;
    }
    
    .patents-hero-images-desktop img:nth-child(2) {
        margin-left: 25px;
        margin-top: 45px;
    }
    
    .patents-hero-images-desktop img:nth-child(3) {
        margin-left: 0px;
        margin-top: 90px;
    }
    
    .patents-hero-images-desktop img:nth-child(4) {
        margin-left: -25px;
        margin-top: 135px;
    }
    
    .patents-portfolio {
        padding: var(--ap-spacing-xxl) var(--ap-spacing-l);
    }
    
    /* Desktop: Larger thumbnail */
    .ap-patent-thumbnail {
        width: 150px;
    }
    
    /* Desktop: More spacing */
    .ap-patent-card {
        padding: var(--ap-spacing-l);
    }
}

/* ====================================
   UTILITY STYLES
   ==================================== */

/* Remove link underlines */
a.ap-button.ap-button--feature-outline {
    text-decoration: none;
}

a.ap-button.ap-button--feature-outline:hover,
a.ap-button.ap-button--feature-outline:focus {
    text-decoration: none;
}
