/* =====================================================
   Capabilities Page - Specific Styles
   ===================================================== */

/* =====================================================
   Hero Section - Capabilities
   ===================================================== */
.capabilities-hero {
    position: relative;
    height: 950px;
    max-height: 950px;
    display: flex;
    align-items: center;
    background-image: url('../images/capabilities-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 0;
}

.capabilities-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 50%);
}

.capabilities-hero .hero-content {
    position: relative;
    z-index: 1;
    margin-left: 10%;
    margin-top: 40px;
}

.capabilities-hero h1 {
    font-size: 64px;
    font-weight: 500;
    color: var(--color-white);
    line-height: 68px;
    width: 500px;
    max-width: 100%;
}

/* =====================================================
   Responsive, Reliable Section
   ===================================================== */
.responsive-section {
    background-color: var(--color-white);
    margin-left: 10%;
    margin-right: 10%;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.08);
}

.responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.responsive-image {
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.responsive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.responsive-content {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.responsive-content .section-heading {
    font-size: 24px;
    font-weight: 500;
    line-height: 27px;
    margin-bottom: 25px;
}

.responsive-content p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.responsive-content p:last-of-type {
    margin-bottom: 0;
}

.btn-full {
    display: block;
    text-align: center;
    width: 100%;
    padding: 28px 45px;
}

/* =====================================================
   Your Goals Section
   ===================================================== */
.goals-section {
    background-color: var(--color-white);
    padding: 80px 0;
    text-align: center;
    margin-left: 10%;
    margin-right: 10%;
}

.goals-section .container {
    max-width: 900px;
}

.goals-section .section-heading {
    font-size: 24px;
    font-weight: 500;
    line-height: 27px;
    margin-bottom: 25px;
}

.goals-section p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--color-text-dark);
}

/* =====================================================
   Full Width Image Section
   ===================================================== */
.fullwidth-image-section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.fullwidth-image-section img {
    width: 100%;
    height: auto;
    display: block;
}

/* =====================================================
   Capabilities Cards Section
   ===================================================== */
.capabilities-cards-section {
    background-color: var(--color-white);
    margin-left: 10%;
    margin-right: 10%;
    padding: 0;
}

.capabilities-container {
    display: flex;
    flex-direction: column;
}

.capability-row {
    display: flex;
    flex-direction: row;
    min-height: auto;
}

.capability-row .capability-icon,
.capability-row .capability-content {
    flex: 1;
    width: 50%;
}

.capability-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--color-white);
    position: relative;
    min-height: 555px;
}

.main-card {
    position: relative;
    width: 100%;
    height: 100%;
}

.text-box {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.capability-content .section-heading {
    font-size: 24px;
    font-weight: 500;
    line-height: 27px;
    margin-bottom: 20px;
}

.capability-content p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--color-text-dark);
    margin-bottom: 25px;
}

.learn-more-link {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.learn-more-link:hover {
    color: var(--color-text-dark);
}

/* Overlay Description Styles */
.overlay-description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

/* Show overlay when show-overlay class is present */
.main-card.show-overlay .overlay-description {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.overlay-inner {
    padding: 60px 50px;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-wrapper {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-white);
    max-width: 550px;
}

.close-box {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--color-white);
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-transform: uppercase;
    cursor: pointer;
}

.close-box:hover {
    opacity: 0.8;
}

.capability-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    /* Transparent background - grid pattern is embedded in SVGs */
}

.capability-icon img {
    width: 100%;
    height: 555px;
    object-fit: contain;
}

/* =====================================================
   Platforms Section - 2-Column Layout (Live Match)
   ===================================================== */
.platforms-section {
    background-color: var(--color-white);
    margin-left: 10%;
    margin-right: 10%;
    padding: 0;
}

.platforms-row {
    display: flex;
    flex-wrap: wrap;
    max-width: 1110px;
    margin: 0 auto;
}

.platforms-text-col {
    width: 50%;
    display: flex;
    align-items: center;
}

.platforms-text-box {
    max-width: 467px;
    padding: 15px;
}

.platforms-heading {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 27px;
    margin: 0;
}

.platforms-logos-col {
    width: 50%;
}

.platforms-grid {
    display: flex;
    flex-wrap: wrap;
}

.platform-logo {
    width: 50%;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.platform-logo img {
    width: 119px;
    height: auto;
    max-height: 110px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.platform-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Platforms Section Responsive */
@media (max-width: 1024px) {
    .platforms-text-col,
    .platforms-logos-col {
        width: 100%;
    }
    
    .platforms-text-box {
        max-width: 100%;
        text-align: center;
        padding: 40px 15px;
    }
    
    .platforms-grid {
        justify-content: center;
    }
    
    .platform-logo {
        width: 25%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .platform-logo {
        width: 33.333%;
    }
    
    .platform-logo img {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .platform-logo {
        width: 50%;
    }
    
    .platform-logo img {
        width: 80px;
    }
}

/* =====================================================
   Responsive Styles - Capabilities
   ===================================================== */

/* Extra Large Desktop */
@media (min-width: 1600px) {
    .responsive-section,
    .goals-section,
    .capabilities-cards-section,
    .platforms-section {
        margin-left: 15%;
        margin-right: 15%;
    }
    
    .capabilities-hero .hero-content {
        margin-left: 15%;
    }
}

/* Large Desktop */
@media (max-width: 1400px) {
    .responsive-section,
    .goals-section,
    .capabilities-cards-section,
    .platforms-section {
        margin-left: 8%;
        margin-right: 8%;
    }
    
    .capabilities-hero .hero-content {
        margin-left: 8%;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .capabilities-hero h1 {
        font-size: 54px;
    }
    
    .capability-row {
        min-height: 450px;
    }
    
    .text-box {
        padding: 50px 40px;
    }
    
    .overlay-inner {
        padding: 50px 40px;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Landscape */
@media (max-width: 992px) {
    .capabilities-hero {
        height: 650px;
        max-height: 650px;
    }
    
    .capabilities-hero h1 {
        font-size: 48px;
        line-height: 1.15;
    }
    
    .capabilities-hero .hero-content {
        margin-left: 8%;
        margin-right: 8%;
    }
    
    .responsive-grid {
        grid-template-columns: 1fr !important;
    }
    
    .responsive-section {
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        box-shadow: none;
        padding: 0;
    }
    
    .responsive-image {
        min-height: 350px;
    }
    
    .responsive-content {
        padding: 50px 40px;
    }
    
    .capability-row {
        flex-direction: column;
        min-height: auto;
    }
    
    .capability-row .capability-icon,
    .capability-row .capability-content {
        width: 100%;
    }
    
    /* Force text to display before graphics in mobile */
    .capability-row .capability-content {
        order: 1;
    }
    
    .capability-row .capability-icon {
        order: 2;
    }
    
    .capability-icon {
        min-height: 300px;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 40px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .capabilities-hero {
        height: 550px;
        max-height: 550px;
    }
    
    .capabilities-hero h1 {
        font-size: 40px;
        line-height: 1.2;
    }
    
    .capabilities-hero .hero-content {
        margin-left: 6%;
        margin-right: 6%;
    }
    
    .capabilities-hero h1 {
        font-size: 40px;
        width: 400px;
    }
    
    .capabilities-hero .hero-content {
        margin-left: 5%;
    }
    
    .responsive-section,
    .goals-section,
    .capabilities-cards-section,
    .platforms-section {
        margin-left: 0;
        margin-right: 0;
    }
    
    .responsive-section {
        margin-top: 0;
        box-shadow: none;
        padding: 0;
    }
    
    .goals-section {
        padding: 60px 20px;
    }
    
    .capability-icon {
        padding: 0;
        min-height: 250px;
    }
    
    .capability-content {
        min-height: auto;
    }
    
    .text-box {
        padding: 40px 30px;
    }
    
    .overlay-inner {
        padding: 40px 30px;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platforms-heading {
        text-align: center;
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .capabilities-hero {
        height: 500px;
        max-height: 500px;
    }
    
    .capabilities-hero h1 {
        font-size: 32px;
        line-height: 1.25;
        width: 100%;
    }
    
    .capabilities-hero .hero-content {
        margin-left: 5%;
        margin-right: 5%;
    }
    
    .responsive-section,
    .goals-section,
    .capabilities-cards-section,
    .platforms-section {
        margin-left: 0;
        margin-right: 0;
    }
    
    .responsive-section {
        padding: 0;
    }
    
    .capabilities-hero .hero-content {
        margin-left: 3%;
        padding-right: 3%;
    }
    
    .responsive-content {
        padding: 40px 25px;
    }
    
    .text-box {
        padding: 30px 25px;
    }
    
    .overlay-inner {
        padding: 30px 25px;
    }
    
    .text-wrapper {
        font-size: 15px;
    }
    
    .close-box {
        top: 15px;
        right: 15px;
        font-size: 12px;
    }
    
    .btn-full {
        padding: 22px 30px;
        font-size: 14px;
    }
    
    .platforms-section {
        padding: 60px 0;
    }
    
    .platforms-grid {
        gap: 25px 30px;
    }
    
    .platform-logo img {
        max-height: 40px;
    }
}

/* Extra Small */
@media (max-width: 360px) {
    .capabilities-hero h1 {
        font-size: 28px;
    }
}
