/* ==========================================
   PT MODERNLAND REALTY - ABOUT PAGE STYLES
   Styles khusus untuk halaman About
   ========================================== */

/* === ABOUT SECTION === */

.about-section {
    padding: 5rem 0;
    background: white;
}

.about-container {
    max-width: 1296px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 384px 1fr;
    gap: 3rem;
}

/* === SIDEBAR NAVIGATION === */
.about-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    max-width: 384px;
}

.sidebar-link {
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
}

.sidebar-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 85%;
    height: 1px;
    background: #000;
}

.sidebar-link.active {
    color: #dc2626;
    font-weight: 600;
}

.sidebar-link:hover {
    color: #dc2626;
    padding-left: 0.5rem;
}

.sidebar-link:focus {
    outline: none;
}

/* === MAIN CONTENT AREA === */
.about-content {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

/* === CONTENT SECTIONS === */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* === SECTION HEADER === */
.section-header {
    margin-bottom: 2rem;
    position: relative;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    min-width: 120px;
    height: 3px;
    background: #dc2626;
}

/* === TAB NAVIGATION === */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    margin-left: 0;
    position: relative;
}

.tab-navigation::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
    z-index: 0;
}

.tab-button {
    flex: 0 0 calc(50% - 1rem);
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
    white-space: nowrap;
}

.tab-button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -0.5rem;
    right: -0.5rem;
    height: 2px;
    background: transparent;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #dc2626;
}

.tab-button.active {
    color: #000;
    font-weight: 600;
}

.tab-button.active::after {
    height: 8px;
    background: #dc2626;
    border-radius: 8px 8px 0 0;
    z-index: 2;
}

.tab-button:focus {
    outline: none;
}

/* === TAB CONTENT === */
.tab-content-wrapper {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === CONTENT STYLING === */
.content-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.content-text {
    text-align: justify;
}

.text-paragraph {
    font-size: 1rem;
    line-height: 1.75;
    color: #000;
    margin-bottom: 1.5rem;
}

.text-paragraph:last-child {
    margin-bottom: 0;
}

.text-paragraph strong {
    font-weight: 600;
}

/* === VISION, MISSION, CORPORATE CULTURE STYLES === */
.section-main-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 2.5rem;
    padding-bottom: 12px;
    position: relative;
}

.section-main-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 3px;
    background: #dc2626;
}

.vmcc-card {
    background: #f9fafb;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #dc2626;
}

.vmcc-icon {
    width: 48px;
    height: 48px;
    color: #dc2626;
    margin-bottom: 1rem;
}

.vmcc-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
}

.vmcc-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
    text-align: justify;
}

.vmcc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vmcc-list li {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.vmcc-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: 600;
}

/* Corporate Culture Grid */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.culture-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.culture-item:hover {
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

.culture-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.culture-item-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #6b7280;
}

/* === STRUCTURE AND ORGANIZATION STYLES === */
.structure-content {
    max-width: 100%;
}

.structure-image-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.structure-image-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.structure-image-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    margin-bottom: 1rem;
}

.structure-org-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.structure-image-caption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    margin: 0;
    padding-top: 0.5rem;
}

/* === MANAGEMENT SECTION STYLES === */
.management-content {
    max-width: 100%;
}

.management-tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
    margin-left: 0;
    position: relative;
}

.management-tab-navigation::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
    z-index: 0;
}

.management-tab-button {
    flex: 0 0 calc(50% - 0.5rem);
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
    white-space: nowrap;
}

.management-tab-button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0rem;
    right: 0rem;
    height: 2px;
    background: transparent;
    transition: all 0.3s ease;
}

.management-tab-button:hover {
    color: #dc2626;
}

.management-tab-button.active {
    color: #000;
    font-weight: 600;
}

.management-tab-button.active::after {
    height: 8px;
    background: #dc2626;
    border-radius: 8px 8px 0 0;
    z-index: 2;
}

.management-tab-button:focus {
    outline: none;
}

.management-tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.management-tab-pane.active {
    display: block;
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

.management-grid .management-card {
    max-width: 380px;
}

.management-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    height: 100%;
}

.management-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.management-card-image {
    width: 100%;
    /* Aspect ratio 3:4 sesuai ukuran foto 1200x1600 */
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f9fafb;
    position: relative;
}

.management-card-image img {
    width: 100%;
    height: 100%;
    /* contain = tampilkan full foto tanpa potong */
    object-fit: contain;
    object-position: bottom center;
    transition: transform 0.3s ease;
}

.management-card:hover .management-card-image img {
    transform: scale(1.03);
}

.management-card-footer {
    padding: 1.5rem;
    background: white;
}

.management-card-position {
    font-size: 1rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.management-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}

/* === AWARDS SECTION STYLES === */
.awards-content-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
    overflow: hidden;
}

.awards-content-home.slide-exit-left {
    animation: slideExitLeft 0.2s ease forwards;
}

.awards-content-home.slide-exit-right {
    animation: slideExitRight 0.2s ease forwards;
}

.awards-content-home.slide-enter-right {
    transform: translateX(60px);
    opacity: 0;
}

.awards-content-home.slide-enter-left {
    transform: translateX(-60px);
    opacity: 0;
}

.awards-content-home.slide-active {
    transform: translateX(0);
    opacity: 1;
    transition:
        transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.35s ease;
}

.awards-text {
    padding-right: 2rem;
}

.award-year {
    font-size: 1.25rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.award-event {
    font-size: 1.25rem;
    font-weight: 600;
    color: #71717a;
    margin-bottom: 1rem;
}

.award-description {
    font-size: 1rem;
    color: #000;
    line-height: 1.5;
}

.carousel-nav {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #000;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-btn-prev {
}

.carousel-btn-prev:hover:not(:disabled) {
    background: #1f1f1f;
}

.carousel-btn-next:hover:not(:disabled) {
    background: #1f1f1f;
    transform: scale(1.05);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #000;
}

.carousel-icon {
    width: 20px;
    height: 20px;
}

.awards-image {
    width: 100%;
    height: 420px;
    max-height: 420px;
    overflow: hidden;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    flex-shrink: 0;
}

.awards-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* === CAROUSEL NAVIGATION === */
.carousel-nav {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #000;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #666;
}

.carousel-icon {
    width: 24px;
    height: 24px;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .about-container {
        padding: 0 2rem;
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }

    .tab-button {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .management-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .awards-content-home {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .awards-text {
        padding-right: 0;
    }

    .awards-image {
        max-height: 280px;
    }

    .awards-image img {
        object-fit: contain;
    }

    .award-year {
        font-size: 1.0625rem;
    }

    .award-event {
        font-size: 1.0625rem;
        margin-bottom: 0.75rem;
    }

    .award-description {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 2rem 0;
    }

    .about-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 2rem;
    }

    .about-sidebar {
        position: static;
        top: auto;
    }

    .sidebar-nav {
        max-width: 100%;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 0.5rem;
    }

    .sidebar-link {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        border-radius: 6px;
    }

    .sidebar-link::after {
        display: none;
    }

    .sidebar-link.active {
        background: rgba(220, 38, 38, 0.1);
    }

    .sidebar-link:hover {
        padding-left: 1rem;
        background: rgba(220, 38, 38, 0.05);
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .tab-navigation {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        margin-bottom: 2rem;
    }

    .tab-navigation::-webkit-scrollbar {
        display: none;
    }

    .tab-navigation::after {
        display: none;
    }

    .tab-button:not(.active)::after {
        display: block;
        background: #000;
        height: 2px;
        left: 0;
        right: 0;
    }

    .tab-button {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }

    .tab-button::after {
        left: 0;
        right: 0;
    }

    .tab-button.active::after {
        height: 4px;
    }

    .profile-image {
        height: 250px;
    }

    .text-paragraph {
        font-size: 0.9375rem;
    }

    .section-main-title {
        font-size: 1.25rem;
    }

    .vmcc-card {
        padding: 1.5rem;
    }

    .vmcc-title {
        font-size: 1.25rem;
    }

    .vmcc-text {
        font-size: 0.9375rem;
    }

    .culture-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .structure-image-card {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .management-tab-navigation {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        margin-bottom: 2rem;
    }

    .management-tab-navigation::-webkit-scrollbar {
        display: none;
    }

    .management-tab-navigation::after {
        display: none;
    }

    .management-tab-button:not(.active)::after {
        display: block;
        background: #000;
        height: 2px;
        left: 0;
        right: 0;
    }

    .management-tab-button {
        flex: 0 0 auto;
        min-width: 180px;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }

    .management-tab-button::after {
        left: 0;
        right: 0;
    }

    .management-tab-button.active::after {
        height: 4px;
    }

    .management-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
        margin: 0 auto;
    }

    .management-card-footer {
        padding: 1.25rem;
    }

    .management-card-position {
        font-size: 0.9375rem;
    }

    .management-card-name {
        font-size: 1.125rem;
    }

    .awards-content-home {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .awards-image {
        max-height: 280px;
    }

    .awards-image img {
        object-fit: contain;
    }

    .award-year {
        font-size: 1.0625rem;
    }

    .award-event {
        font-size: 1.0625rem;
        margin-bottom: 0.75rem;
    }

    .award-description {
        font-size: 0.875rem;
    }

    .carousel-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 1.5rem 0;
    }

    .about-container {
        padding: 0 0.75rem;
        gap: 1.5rem;
    }

    .sidebar-link {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }

    .section-header h2 {
        font-size: 1.375rem;
    }

    .tab-button {
        min-width: 130px;
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .profile-image {
        height: 200px;
    }

    .text-paragraph {
        font-size: 0.875rem;
    }

    .vmcc-card {
        padding: 1.25rem;
    }

    .vmcc-title {
        font-size: 1.125rem;
    }

    .vmcc-text {
        font-size: 0.875rem;
    }

    .management-tab-button {
        min-width: 160px;
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .management-card-footer {
        padding: 1rem;
    }

    .management-card-position {
        font-size: 0.875rem;
    }

    .management-card-name {
        font-size: 1rem;
    }

    .awards-content-home {
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .awards-image {
        max-height: 220px;
        border-radius: 0.375rem;
    }

    .awards-image img {
        object-fit: contain;
        padding: 0.5rem;
    }

    .award-year {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }

    .award-event {
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }

    .award-description {
        font-size: 0.8125rem;
        line-height: 1.45;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-icon {
        width: 20px;
        height: 20px;
    }
}

html {
    scroll-behavior: smooth;
}

.content-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f4f6;
    border-top-color: #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
