/* Styles khusus about.html */

/* Vertical Tabs Styles */
.about-container {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
}

.vertical-tabs {
    width: 280px;
    flex-shrink: 0;
}

.tab-button {
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tab-button:hover {
    background: rgba(0, 31, 63, 0.05);
    color: #001f3f;
}

.tab-button.active {
    background: rgba(0, 31, 63, 0.1);
    color: #001f3f;
    border-left-color: #001f3f;
}

.tab-button i {
    width: 20px;
    text-align: center;
}

.tab-content {
    flex-grow: 1;
    padding: 0 1rem;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

/* Content Styles */
.section-title {
    color: #001f3f;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #001f3f;
}

.about-image {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Updated Vision & Mission Box Styles */
.vision-box, .mission-box {
    background: transparent; /* Remove background color */
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    /* border: 1px solid rgba(0, 31, 63, 0.1); */
}

.vision-box h3, .mission-box h3 {
    color: #001f3f;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.vision-box p, .mission-box p {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.mission-list li::before {
    content: '•';
    color: #001f3f;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

.org-chart-image img, .culture-image img {
    border-radius: 12px;
    background-color: transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.legalitas-image img {
    border-radius: 12px;
    background-color: transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

/* Updated Subsidiary Card Styles */
.subsidiaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    max-width: 800px; /* Limit maximum width of the grid */
    margin-left: auto;
    margin-right: auto;
}

/* Handle different numbers of cards */
.subsidiaries-grid:has(.subsidiary-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    max-width: 600px;
}

.subsidiaries-grid:has(.subsidiary-card:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    max-width: 700px;
}

.subsidiaries-grid:has(.subsidiary-card:nth-child(4):last-child) {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.subsidiary-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid rgba(0, 31, 63, 0.1);
    height: 100%;
    width: 100%; /* Ensure card takes full width of its grid cell */
}

.subsidiary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.subsidiary-card img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    padding: 0.25rem;
}

.subsidiary-card .card-body {
    padding: 0.25rem;
    text-align: center;
    width: 100%;
}

.subsidiary-card .card-title {
    color: #001f3f;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.subsidiary-card .card-text {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Updated Shareholder Chart Styles */
.shareholder-chart {
    /* background: #fff; */
    background-color: transparent;
    padding: 2rem;
    border-radius: 12px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 31, 63, 0.1); */
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    
    .vertical-tabs {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .tab-button {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .tab-button.active {
        border-left: none;
        border-bottom-color: #001f3f;
    }
    
    .tab-content {
        padding: 1rem 0;
    }
}

/* Responsive adjustments for subsidiary cards */
@media (max-width: 768px) {
    .subsidiaries-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
        max-width: 100%;
    }

    .subsidiaries-grid:has(.subsidiary-card:nth-child(2):last-child),
    .subsidiaries-grid:has(.subsidiary-card:nth-child(3):last-child),
    .subsidiaries-grid:has(.subsidiary-card:nth-child(4):last-child) {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .subsidiary-card {
        padding: 0.5rem;
    }
    
    .subsidiary-card img {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
    }
    
    .subsidiary-card .card-title {
        font-size: 0.85rem;
    }
    
    .subsidiary-card .card-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .subsidiaries-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
    }

    .subsidiaries-grid:has(.subsidiary-card:nth-child(2):last-child),
    .subsidiaries-grid:has(.subsidiary-card:nth-child(3):last-child),
    .subsidiaries-grid:has(.subsidiary-card:nth-child(4):last-child) {
        grid-template-columns: 1fr;
    }
}

/* Container untuk video dengan aspect ratio 16:9 */
.video-container {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    background-color: transparent;
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none; /*1px solid rgba(255, 255, 255, 0.1);*/
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
}

.video-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Video Styles */
.company-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    margin: 0 auto;
    image-rendering: auto;
    filter: brightness(1.05) contrast(1.15) saturate(1.1);
    transform: translateZ(0);
    image-rendering: crisp-edges;
}

/* Optional Enhancement untuk Kontrol */
.company-video::-webkit-media-controls {
    /* background-color: rgba(255, 255, 255, 0.1); */
    background-color: transparent;
    border-radius: 0 0 16px 16px;
    backdrop-filter:none;
    -webkit-backdrop-filter:none; /* blur(10px)*/
}

.company-video::-webkit-media-controls-panel {
    background-color: transparent;
}

.company-video::-webkit-media-controls-play-button {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.company-video::-webkit-media-controls-play-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Info di bawah video */
.video-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;  /*blur(10px)*/
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.video-info:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.video-info h4 {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.video-info p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Responsive Style (Mobile) */
@media (max-width: 992px) {
    .video-container {
        max-width: 100%;
        border-radius: 16px;
    }
    
    .video-info {
        margin-top: 1rem;
        padding: 0.75rem;
    }
}

/* Management Table Styles */
.management-table {
    width: 100%;
    margin: 1rem 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.management-table > table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.management-table th {
    background: #001f3f;
    color: #fff;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

.management-table thead th:first-child {
    border-top-left-radius: 8px;
}

.management-table thead th:last-child {
    border-top-right-radius: 8px;
}

.management-table td {
    padding: 1rem;
    border-bottom: 2px solid #e0e6ed; /* warna abu muda, lebih tegas */
}

.management-table tr:last-child td {
    border-bottom: none;
}

.management-table tr:hover {
    background: rgba(0, 31, 63, 0.02);
}

.management-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.management-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.management-name {
    font-weight: 600;
    color: #001f3f;
    margin-bottom: 0.25rem;
}

.management-position {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .management-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .management-table th,
    .management-table td {
        padding: 0.75rem;
    }
    
    .management-image {
        width: 40px;
        height: 40px;
    }
}

/* Custom Video Controls */
.custom-video-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .custom-video-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.control-btn i {
    color: white;
    font-size: 1rem;
}

/* Responsive adjustments for custom controls */
@media (max-width: 768px) {
    .custom-video-controls {
        bottom: 30px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
    }
    
    .control-btn i {
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-section .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section .hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section:hover .hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.3));
}

.hero-section:hover .hero-overlay::before {
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

.hero-section .hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 4rem 0;
    color: white;
    text-align: center;
}

.hero-section .hero-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-section .hero-content .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.hero-section .hero-content .breadcrumb-item,
.hero-section .hero-content .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-section .hero-content .breadcrumb-item a:hover {
    color: white;
}

.hero-section .hero-content .breadcrumb-item.active {
    color: white;
}

.hero-section .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-section .hero-content .lead {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .hero-section .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .hero-content .lead {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 40vh;
    }
    
    .hero-section .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-section .hero-content .lead {
        font-size: 1.1rem;
    }
} 