/* =========================================
   About Page - Custom Styles
   ========================================= */

/* Hero Section */
.about-hero {
    background: linear-gradient(135deg, #0071BC 0%, #005a96 50%, #003d66 100%);
    padding: 80px var(--container-padding) 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="2.5" fill="rgba(255,255,255,0.08)"/><circle cx="90" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 150px;
    animation: floatBg 20s linear infinite;
}

@keyframes floatBg {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 150px 150px;
    }
}

.about-hero h1 {
    color: white;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.about-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Navigation Cards Grid - Redesigned */
.nav-cards-section {
    padding: 60px var(--container-padding);
    background: linear-gradient(180deg, #f0f7ff 0%, #f8faff 100%);
}

.nav-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 113, 188, 0.08);
    border: 1px solid rgba(0, 113, 188, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

/* RGB Border Effect on Hover */
.nav-card::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 400%;
    height: 400%;
    background: conic-gradient(#ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    z-index: -2;
    animation: spin 3s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-card:hover::before {
    opacity: 1;
}

.nav-card::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: white;
    border-radius: 17px;
    z-index: -1;
}

.nav-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 113, 188, 0.2);
}

/* Card Icon */
.nav-card .card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0091ea 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(0, 113, 188, 0.3);
}

.nav-card:hover .card-icon {
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 0 12px 35px rgba(0, 113, 188, 0.4);
}

/* Card Content */
.nav-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-card .card-content h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.nav-card .card-content p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
    line-height: 1.5;
}

/* Arrow Icon */
.nav-card .arrow {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(0, 113, 188, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.nav-card:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Company Info Section */
.company-section {
    padding: 70px var(--container-padding);
    background: white;
}

.company-container {
    max-width: 1200px;
    margin: 0 auto;
}

.company-header {
    text-align: center;
    margin-bottom: 50px;
}

.company-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 20px;
}

.company-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.company-info-table {
    background: #f8faff;
    border-radius: 16px;
    padding: 30px;
}

.info-row {
    display: flex;
    padding: 18px 0;
    border-bottom: 1px solid #e8eef5;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 140px;
    min-width: 140px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.info-value {
    color: var(--text-dark);
    flex: 1;
}

.info-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    background: linear-gradient(135deg, #f8faff 0%, #eef6ff 100%);
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0ebf5;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 113, 188, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

/* Philosophy Section */
.philosophy-section {
    padding: 70px var(--container-padding);
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.philosophy-container {
    max-width: 1000px;
    margin: 0 auto;
}

.philosophy-header {
    text-align: center;
    margin-bottom: 50px;
}

.philosophy-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 800;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.philosophy-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
}

.philosophy-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.philosophy-card h3 i {
    font-size: 1.5rem;
}

.philosophy-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

/* Values Grid */
.values-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.values-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8faff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.value-item:hover {
    background: #eef6ff;
    transform: translateX(5px);
}

.value-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.value-item span {
    font-weight: 600;
    color: var(--text-dark);
}

/* CTA Section */
.cta-section {
    padding: 60px var(--container-padding);
    background: linear-gradient(135deg, var(--primary-color) 0%, #005a96 100%);
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .about-hero {
        padding: 60px 20px 40px;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero p {
        font-size: 1rem;
    }

    .nav-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .nav-card {
        padding: 25px 20px;
        min-height: 180px;
    }

    .nav-card .card-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
        margin-bottom: 15px;
    }

    .company-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-row {
        flex-direction: column;
        gap: 8px;
    }

    .info-label {
        width: 100%;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2rem;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Mobile Menu Fixes for Subpages */
@media (max-width: 768px) {
    .nav-links>li.accordion-open .mega-menu-content {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .nav-links>li.accordion-open .mega-column {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    .nav-links>li.accordion-open .mega-column.promo-column {
        display: none !important;
    }

    .nav-links>li.accordion-open .mega-title {
        font-size: 13.5px !important;
        font-weight: 700 !important;
        color: var(--primary-color) !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        padding: 8px 15px !important;
        margin-top: 5px !important;
        margin-bottom: 0 !important;
        background: linear-gradient(90deg, #e3f2fd 0%, #ffffff 100%) !important;
        border-left: 4px solid var(--primary-color) !important;
        border-bottom: 1px solid rgba(0, 113, 188, 0.05) !important;
        border-radius: 0 8px 8px 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        cursor: pointer !important;
        line-height: 1.4 !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
    }

    .column-toggle-icon {
        font-size: 12px !important;
        color: var(--primary-color) !important;
        transition: transform 0.3s ease !important;
        margin-left: auto !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 24px !important;
        height: 24px !important;
        line-height: 1 !important;
    }

    .mega-column.column-expanded .column-toggle-icon {
        transform: rotate(180deg) !important;
    }

    .nav-links>li.accordion-open .mega-column:nth-child(1) .mega-title {
        background: linear-gradient(90deg, #e3f2fd 0%, #ffffff 100%) !important;
        border-left-color: var(--primary-color) !important;
        color: var(--primary-color) !important;
    }

    .nav-links>li.accordion-open .mega-column:nth-child(2) .mega-title {
        background: linear-gradient(90deg, #e0f2f1 0%, #ffffff 100%) !important;
        border-left-color: #009688 !important;
        color: #00796b !important;
    }

    .nav-links>li.accordion-open .mega-column:nth-child(3) .mega-title {
        background: linear-gradient(90deg, #f3e5f5 0%, #ffffff 100%) !important;
        border-left-color: #9c27b0 !important;
        color: #7b1fa2 !important;
    }

    .nav-links>li.accordion-open .mega-column:nth-child(4) .mega-title {
        background: linear-gradient(90deg, #fff3e0 0%, #ffffff 100%) !important;
        border-left-color: #ff9800 !important;
        color: #ef6c00 !important;
    }

    .nav-links>li.accordion-open .mega-column:nth-child(2) .mega-title .column-toggle-icon {
        color: #00796b !important;
    }

    .nav-links>li.accordion-open .mega-column:nth-child(3) .mega-title .column-toggle-icon {
        color: #7b1fa2 !important;
    }

    .nav-links>li.accordion-open .mega-column:nth-child(4) .mega-title .column-toggle-icon {
        color: #ef6c00 !important;
    }
}