/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== MAIN PAGE STYLES ===== */
body:not(.compliance-page) {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    overflow: auto;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #6d28d9 100%);
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem 2rem 4rem 2rem;
    position: relative;
}

.logo-section {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 0;
    margin-left: calc(50% - 400px - 200px);
    z-index: 10;
}

.logo {
    height: 234px;
    width: 234px;
    filter: brightness(0) invert(1);
    drop-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.suites-grid {
    display: grid;
    grid-template-columns: repeat(2, 506px);
    grid-template-rows: repeat(2, 177px);
    gap: 2rem;
    margin-top: 86px;
    margin-left: auto;
    margin-right: auto;
}

.suite-card {
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 506px;
    height: 177px;
    box-sizing: border-box;
}

.suite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.suite-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.suite-card:hover::before {
    opacity: 1;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
}

.card-icon {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suite-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-text {
    flex: 1;
}

.suite-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 71px;
    font-style: normal;
    font-weight: 400;
    line-height: 70px;
    margin-bottom: 0;
    color: currentColor;
}


/* Color themes */
.productivity { color: #97D941; }
.business { color: #ee3c96; }
.ops { color: #3de2e5; }
.compliance { color: #ffcd03; }

/* Responsive Design */
@media (max-width: 1200px) {
    .logo-section {
        margin-left: 2rem;
    }
    
    .suites-grid {
        grid-template-columns: repeat(2, 400px);
        grid-template-rows: repeat(2, 150px);
        gap: 1.5rem;
    }
    
    .suite-card {
        width: 400px;
        height: 150px;
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 136px;
        height: 136px;
    }
    
    .suite-title {
        font-size: 50px;
        line-height: 48px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 2rem 6rem 2rem;
    }
    
    .logo-section {
        position: static;
        margin-bottom: 2rem;
    }
    
    .logo {
        height: 234px;
        width: 234px;
    }
    
    .suites-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 1rem;
        margin-top: 2rem;
        max-width: 400px;
    }
    
    .suite-card {
        width: 100%;
        height: auto;
        min-height: 120px;
    }
    
    .card-content {
        gap: 1rem;
    }
    
    .card-icon {
    width: 100px;
    height: 100px;
    }
    
    .suite-title {
        font-size: 36px;
        line-height: 34px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 234px;
        width: 234px;
    }
    
    .suite-card {
        padding: 1rem;
        min-height: 100px;
    }
    
    .card-icon {
    width: 80px;
    height: 58px;
    }
    
    .suite-title {
        font-size: 28px;
        line-height: 26px;
    }
}

/* ===== COMPLIANCE SUITE PAGE STYLES ===== */

/* Compliance Page Body */
body.compliance-page {
    background: #FFCD03 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: auto;
    touch-action: manipulation;
}

.compliance-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    background: #FFCD03;
}

/* Header Section */
.compliance-header {
    margin-bottom: 3rem;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 10px;
}

    .compliance-logo {
        height: 58px;
        width: 58px;
    }

.compliance-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 70px;
    font-weight: 400;
    color: white;
    margin: 0;
    position: relative;
    top: 5px;
}

.title-underline {
    width: 1155px;
    height: 5px;
    background: white;
    margin-top: 1rem;
}

/* Main Content */
.compliance-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sections */
.compliance-section {
    background: transparent;
    margin-bottom: 0;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 90px;
    font-weight: 400;
    color: #DAAF00;
    text-align: center;
    white-space: nowrap;
}

.section-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

/* KORA LIMS has multiple items in a row */
.compliance-section:last-child .section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Compliance Items */
.compliance-item {
    background: white !important;
    border-radius: 40px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 170px;
    height: 170px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.compliance-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.item-icon {
    width: 136px;
    height: 136px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
}

.compliance-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.item-title {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 300;
    font-style: normal;
    color: white;
    text-align: center;
    margin: 0;
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Responsive Design for Compliance Page */
@media (max-width: 768px) {
    .compliance-container {
        padding: 1rem;
    }
    
    .header-top {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
    }
    
    .compliance-logo {
        height: 58px;
        width: 58px;
    }
    
.compliance-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 70px;
    font-weight: 400;
    color: white;
    margin: 0;
    position: relative;
    top: 5px;
}
    
    .title-underline {
        width: 100%;
        max-width: 600px;
    }
    
    .compliance-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 90px;
    font-weight: 400;
    color: #DAAF00;
    text-align: center;
    white-space: nowrap;
}
    
.compliance-item {
    background: white !important;
    border-radius: 40px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 170px;
    height: 170px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}
    
.item-icon {
    width: 136px;
    height: 136px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
}
    
.item-title {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 300;
    font-style: normal;
    color: white;
    text-align: center;
    margin: 0;
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
}

@media (max-width: 480px) {
.compliance-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 70px;
    font-weight: 400;
    color: white;
    margin: 0;
    position: relative;
    top: 5px;
}
    
.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: #DAAF00;
    text-align: center;
    white-space: nowrap;
    margin-bottom: 1rem;
}
    
.compliance-item {
    background: white !important;
    border-radius: 40px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 170px;
    height: 170px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}
    
.item-icon {
    width: 136px;
    height: 136px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
}
    
.item-title {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 300;
    font-style: normal;
    color: white;
    text-align: center;
    margin: 0;
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
    
    .compliance-section:last-child .section-grid {
        grid-template-columns: 1fr;
    }
}

/* Logo link styling */
.logo-link {
    text-decoration: none;
    display: inline-block;
}

.logo-link:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* ===== OPS SUITE PAGE STYLES ===== */
body.ops-page {
    background: #3DE2E5 !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: auto !important;
    height: auto !important;
    touch-action: manipulation;
}

body.ops-page .compliance-container {
    background: #3DE2E5 !important;
    min-height: 100vh;
}

body.ops-page .compliance-header {
    background: #3DE2E5 !important;
}

body.ops-page .compliance-main {
    background: #3DE2E5 !important;
}

/* Single item grid for ops page */
.single-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

/* Responsive design for ops page */
@media (max-width: 768px) {
    body.ops-page .compliance-main {
        padding: 0 1rem 2rem;
    }
    
    body.ops-page .section-title {
        font-size: 50px;
        margin-bottom: 1rem;
    }
    
    .item-icon {
        width: 116px;
        height: 116px;
    }
    
    body.ops-page .item-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body.productivity-page .item-title {
        font-size: 20px;
    }
    
    .item-icon {
        width: 116px;
        height: 116px;
    }
    
    body.ops-page .item-title {
        font-size: 20px;
    }
    
    body.ops-page .section-title {
        margin-bottom: 1rem;
        font-size: 40px;
    }
}

/* Section title color for ops page */
body.ops-page .section-title {
    color: #2DBCBF !important;
}


/* ===== BUSINESS SUITE PAGE STYLES ===== */
body.business-page {
    background: #EE3C96 !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: auto !important;
    height: auto !important;
    touch-action: manipulation;
}

body.business-page .compliance-container {
    background: #EE3C96 !important;
    min-height: 100vh;
}

body.business-page .compliance-header {
    background: #EE3C96 !important;
}

body.business-page .compliance-main {
    background: #EE3C96 !important;
}

/* Section title color for business page */
body.business-page .section-title {
    color: #C81F74 !important;
}

/* Responsive design for business page */
@media (max-width: 768px) {
    body.business-page .section-title {
        font-size: 60px;
    }
    

    
    body.business-page .item-title {
        font-size: 24px;
    }
    
    /* Mobile layout restructure */
    body.business-page .compliance-main {
        display: flex;
        flex-direction: column;
        padding: 0 1rem;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }
    
    /* Center KORA ERP title on mobile */
    body.business-page .compliance-section:first-child .section-title {
        text-align: center;
        margin-bottom: -3rem;
        grid-column: 1 / 3;
    }
    
    /* ERP items grid - 5 items in 2 columns */
    body.business-page .compliance-section:first-child {
        order: -2;
        justify-items: center;
        width: 100%;
        max-width: 600px;
    }
    
    /* Hide ERP section grid containers */
    body.business-page .compliance-section:first-child .business-row-2,
    body.business-page .compliance-section:first-child .business-row-3 {
        display: contents;
    }
    
    /* Bottom section with CRM and HCM - Single column layout */
    body.business-page .compliance-section:nth-child(2) {
        order: -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
        max-width: 600px;
        margin: 2rem 0 5rem;
    }
    
    /* CRM and HCM section titles */
    body.business-page .compliance-section:nth-child(2) .section-title {
        text-align: center;
        margin-bottom: 0;
    }
    
    /* CRM and HCM section items */
    body.business-page .compliance-section:nth-child(2) .section-grid {
        display: flex;
        justify-content: center;
    }
    
    /* Second section title (HCM) spacing */
    body.business-page .compliance-section:nth-child(2) .section-title:nth-child(2) {
        margin-top: 4rem;
    }
}

@media (max-width: 480px) {
    body.business-page .section-title {
        font-size: 40px;
        margin-bottom: 20px;
    }
    
    body.business-page .item-icon {
        width: 116px;
        height: 116px;
    }
    
    body.business-page .item-title {
        font-size: 20px;
    }
}

/* Business page specific row layouts */
.business-row-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.75rem; /* 60px horizontal spacing between items */
    margin-bottom: 5rem; /* Increased spacing to 50px below item names */
}

.business-row-3 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.75rem; /* 60px horizontal spacing between items */
    margin-bottom: 2rem;
}

/* Center items in right column sections */
.business-page .compliance-section:nth-child(2) .section-grid {
    justify-content: center;
}

.business-page .compliance-section:nth-child(2) .single-item {
    display: flex;
    justify-content: center;
}

/* Responsive design for business rows */
@media (max-width: 768px) {
    .business-row-2,
    .business-row-3 {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .business-row-2,
    .business-row-3 {
        gap: 0.5rem;
    }
}

/* Add vertical spacing between rows in ops and compliance pages */
.ops-page .compliance-section:nth-child(3) {
    margin-top: 0; /* Removed 50px from previous 30px spacing - now minimal spacing */
}

.ops-page .compliance-section:nth-child(4) {
    margin-top: 0; /* Removed 50px from previous 30px spacing - now minimal spacing */
}

.ops-page .compliance-section:nth-child(5) {
    margin-top: 0; /* Removed 50px from previous 30px spacing - now minimal spacing */
}

.compliance-page .compliance-section:nth-child(3) {
    margin-top: 1.875rem; /* 30px spacing between first and second row (reduced by 30px) */
}

.compliance-page .compliance-section:nth-child(4) {
    margin-top: 1.875rem; /* 30px spacing for third section */
}

.compliance-page .compliance-section:nth-child(5) {
    margin-top: 1.875rem; /* 30px spacing for fourth section */
}

/* Productivity page styling */
body.productivity-page {
    background: #97D941; /* Green background color */
    touch-action: manipulation;
}

body.productivity-page .compliance-container {
    background-color: #97D941; /* Green background for container */
    position: relative;
}

body.productivity-page .compliance-main {
    position: relative;
    width: 100%;
}

body.productivity-page .section-title {
    color: #6BA82F; /* Darker green for section titles */
}

/* Productivity items layout - 3 items in a row without section titles */
.productivity-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6.25rem; /* 100px spacing between items */
    flex-wrap: nowrap; /* Keep items in same row */
    margin-top: 11.375rem; /* 2rem + 150px (9.375rem) = 11.375rem total */
    width: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive design for productivity items */
@media (max-width: 768px) {
    .productivity-items {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .productivity-items {
        gap: 0.5rem;
    }
}

/* Mobile responsiveness for all pages except index.html */
@media (max-width: 768px) {
    /* Center logo and reduce title font size for all suite pages */
    .compliance-header .header-top {
        flex-direction: column;
        gap: 1rem;
        margin: 0 auto;
    }
    
    .compliance-title {
        font-size: 60px !important; /* Reduce from 70px to 60px */
    }
    
    .compliance-logo {
        margin: 0 auto;
    }
    
    /* Productivity hub mobile layout - 2 items per row */
    body.productivity-page .productivity-items {
        position: static;
        transform: none;
        left: auto;
        margin-top: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 3.125rem 2rem; /* 50px vertical, 32px horizontal */
        justify-items: center;
        align-items: center;
        width: 100%;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 1rem;
    }
    
    /* Ensure third item goes to second row, first column */
    body.productivity-page .productivity-items .compliance-item:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }
}

@media (max-width: 480px) {
    .compliance-title {
        font-size: 50px !important; /* Further reduce for very small screens */
    }
    
    /* Adjust productivity hub for very small screens */
    body.productivity-page .productivity-items {
        gap: 5.5rem 1rem; /* Increase vertical gap, reduce horizontal gap */
        padding: 0 0.5rem;
    }
    
    .compliance-item {
        border-radius: 30px;
        width: 150px;
        height: 150px;
    }
    
    .item-title {
        font-size: 20px;
        bottom: -40px;
    }
}

@media (max-width: 480px) {
    .section-grid {
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .compliance-page .compliance-section:nth-child(3),
    .compliance-page .compliance-section:nth-child(4) {
        margin-top: 0;
    }
}

/* Business row with single item centered */
.business-row-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.75rem; /* 60px spacing */
    margin-bottom: 2rem;
}

/* Responsive design for business-row-1 */
@media (max-width: 768px) {
    .business-row-1 {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .business-row-1 {
        gap: 0.5rem;
    }
}

/* Mobile-only 2-column layout for KORA LIMS section in compliance page */
@media (max-width: 768px) {
    .compliance-page .compliance-section:last-child .section-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 4rem 1rem;
        justify-items: center;
        margin-bottom: 5rem;
    }
    
    /* Position items in grid: first two in top row, third in bottom row centered */
    .compliance-page .compliance-section:last-child .compliance-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    .compliance-page .compliance-section:last-child .compliance-item:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .compliance-page .compliance-section:last-child .compliance-item:nth-child(3) {
        grid-column: 1 / 3;
        grid-row: 2;
        justify-self: center;
    }
}

/* Center the third row (single item) in business suite mobile view */
@media (max-width: 768px) {
    body.business-page .compliance-section:first-child .business-row-3 .compliance-item:nth-child(3) {
        grid-column: 1 / 3;
        justify-self: center;
    }
    
    /* Make the business-row-3 a grid on mobile to enable centering */
    body.business-page .compliance-section:first-child .business-row-3 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5rem 1rem;
        justify-items: center;
    }
    
    /* Position first two items in the grid */
    body.business-page .compliance-section:first-child .business-row-3 .compliance-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    body.business-page .compliance-section:first-child .business-row-3 .compliance-item:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    /* Center the third item spanning both columns */
    body.business-page .compliance-section:first-child .business-row-3 .compliance-item:nth-child(3) {
        grid-column: 1 / 3;
        grid-row: 2;
        justify-self: center;
    }
}

/* Center the third item in productivity hub mobile view */
@media (max-width: 768px) {
    body.productivity-page .productivity-items .compliance-item:nth-child(3) {
        grid-column: 1 / 3;
        grid-row: 2;
        justify-self: center;
    }
    
    /* Update productivity items to use grid layout on mobile */
    body.productivity-page .productivity-items {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 4rem 1rem;
        justify-items: center;
    }
    
    /* Position first two items in the grid */
    body.productivity-page .productivity-items .compliance-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    body.productivity-page .productivity-items .compliance-item:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
}

/* Fix business-row-2 grid layout on mobile */
@media (max-width: 768px) {
    body.business-page .compliance-section:first-child .business-row-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem 1rem;
        justify-items: center;
        margin-top: 5rem;
    }
    
    /* Position items in the business-row-2 grid */
    body.business-page .compliance-section:first-child .business-row-2 .compliance-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    body.business-page .compliance-section:first-child .business-row-2 .compliance-item:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
}
