@font-face {
    font-family: 'Poppins';
    src: url('../font/Poppins-Regular.ttf');
}

/* General Styles */
* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-family: 'Poppins';
}
body {
    background-color: #121d2b;
}
/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #c95125;
    color: #ffffff;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
    width: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: 0s;
}

.btn a {
    color: white;
    display: block;
}

.btn:hover {
    background-color: transparent;
    transition: 0.3s;
    color: #000000;
    border: 1px solid #000000;
}
/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    padding: 0.8rem 6rem;
    width: 100%;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transition: background-color 0.6s, box-shadow 0.6s;
}

.logo img {
    height: 50px;
}

.nav-list {
    list-style: none;
    display: flex; 
    gap: 20px; 
    margin: 0;
    padding: 0;
    align-items: center; 
}
.nav-list li a {
    color: #fff;
    padding: 5px 10px;
    position: relative;
    transition: color 0.3s ease-in-out;
    text-decoration: none;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.nav-list li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-list li a:hover {
    color: #f0f0f0;
}
.dropdown{
    position: relative;
}
.dropdown-menu{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #121d2b;
    padding: 10px 0px;
    list-style: none;
    min-width: 150px;
    z-index: 999;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}
.dropdown-menu li a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 8px 16px;
}

.dropdown-menu li a:hover {
    background-color: #c95125;
}

.dropdown:hover .dropdown-menu {
    display: block;
}.dropdown > a {
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 20px;
}
.dropdown > a i.bx {
    margin-left: 8px; 
    font-size: 1rem; 
    transition: transform 0.3s ease; 
    color: #fff; 
}
.dropdown:hover > a i.bx {
    transform: rotate(180deg); 
}
.founder-container {
    display: flex;
    justify-content: center;
    gap: 5rem;
    align-items: center;
}
.founder-container {
    display: flex;
    justify-content: center;
    gap: 5rem;
    align-items: center;
    flex-wrap: wrap; 
}

.founder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 200px;
}

.founder-img img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 8px solid #f0f0f0;
    object-fit: cover;
}

.founder-text {
    text-align: center;
    color: #fff;
    margin-top: 1rem;
}

.founder-text h4 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.founder-text p {
    font-size: 1rem;
    color: #ccc;
}

.tree-timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem; 
}

.tree-timeline-container::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #c95125;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.tree-timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.tree-timeline-item.left {
    left: 0;
}

.tree-timeline-item.right {
    left: 50%;
}

.tree-timeline-item.left::before {
    content: ' ';
    position: absolute;
    top: 15px;
    right: -6px;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #c95125;
}

.tree-timeline-item.right::before {
    content: ' ';
    position: absolute;
    top: 15px;
    left: -6px;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent #c95125 transparent transparent;
}

.tree-timeline-content {
    padding: 1.5rem;
    background-color: #121d2b;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tree-timeline-content h4 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.tree-timeline-content p {
    margin: 10px 0 0;
    color: #e0e0e0;
}
.card-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
}
/* Card Styles */
.card {
    background-color: #1a2533;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    max-width: 550px ; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    margin: 0 auto; /* Center card when alone */
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    transition: left 0.4s ease;
}

.card:hover::before {
    left: 0;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Card Icon */
.card-icon {
    font-size: 3.5rem;
    color: #c95125;
    margin-bottom: 1.5rem;
    animation: bounce 1s infinite alternate;
}
/* Card Content */
.card-content h4 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: #e0e0e0;
    font-size: 1rem;
}
.footer {
    background-color: #0f2b4f66;
    color: #f6e9e9;
    padding: 50px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-about,
.footer-links,
.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.footer p {
    font-size: 1em;
    line-height: 1.6;
}

.footer-links ul,
.footer-social ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li,
.footer-social ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-social ul li a {
    color: #f6e9e9;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-links ul li a:hover,
.footer-social ul li a:hover {
    color: #878484;
}

.footer-social ul li i {
    font-size: 1.5em;
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2e3a59;
    font-size: 0.9em;
}
/* Additional Styles */
nav.scrolled {
    background-color: #121d2b;
    box-shadow: 0 2px 4px rgba(191, 185, 185, 0.093);
}

nav.scrolled ul li a:hover {
    color: #ffffff;
}

nav.scrolled ul li a {
    transition: color 0.3s;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
    text-align: center;
}
span {
    color: #c95125;
}
.desc-section {
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1rem;
}
@keyframes move {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(20px);
    }
}
@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px);
    }
}
/* Responsive */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1rem;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #121d2b;
        flex-direction: column;
        gap: 0;
        width: 100%;
        display: none;
        text-align: right;
        padding: 10px 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list li a {
        padding: 10px 20px;
        width: 100%;
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .nav-list.active {
        display: flex;
    }
}
@media (max-width: 1024px) {
    #sejarah {
        padding: 3rem 1.5rem; 
    }

    .section-title {
        font-size: 2.2rem;
    }

    .desc-section {
        font-size: 1.1rem;
    }

    .founder-container {
        gap: 2rem;
    }

    .founder-img img {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    #sejarah {
        padding: 2rem 1rem; 
    }

    .section-title {
        font-size: 2rem;
    }

    .desc-section {
        font-size: 1rem;
    }

    .founder-container {
        gap: 1.5rem;
    }

    .founder-img img {
        width: 180px;
        height: 180px;
    }

    .founder-text h4 {
        font-size: 1.4rem;
    }

    .founder-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #sejarah {
        padding: 0rem;
    }

    .section-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .desc-section {
        font-size: 0.9rem;
    }

    .founder-container {
        gap: 1rem;
        flex-direction: column; 
    }

    .founder-img img {
        width: 150px;
        height: 150px;
    }

    .founder-text h4 {
        font-size: 1.2rem;
    }

    .founder-text p {
        font-size: 0.8rem;
    }
}
@media (max-width: 768px) {
    .tree-timeline-container {
        padding: 1.5rem 0.5rem; 
    }

    .tree-timeline-item {
        width: 100%; 
        padding: 1rem;
        left: 0 !important; 
    }

    .tree-timeline-container::after {
        left: 20px; 
    }

    .tree-timeline-item.left::before,
    .tree-timeline-item.right::before {
        top: 50%; 
        left: -6px; 
        right: auto; 
        border-width: 10px 10px 10px 0; 
        border-color: transparent #c95125 transparent transparent; 
    }
}

@media (max-width: 480px) {
    .tree-timeline-container {
        padding: 1rem; 
    }

    .tree-timeline-content {
        padding: 1rem; 
    }

    .tree-timeline-content h4 {
        font-size: 1.2rem; 
    }

    .tree-timeline-content p {
        font-size: 0.9rem; 
    }
}
@media (max-width: 768px) {
    .card {
        padding: 1.2rem;
        max-width: 90%; /* Cards take up more space without being too wide */
    }

    .card-icon {
        font-size: 2.8rem;
        margin-bottom: 0.8rem;
    }

    .card-content h4 {
        font-size: 1.4rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 0.8rem;
        max-width: 100%; 
        margin-bottom: 1rem;
        flex-direction: column; 
        min-height: auto; 
    }

    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 0.6rem;
    }

    .card-content h4 {
        font-size: 1.2rem;
    }

    .card-content p {
        font-size: 0.85rem;
    }
}