body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar Merah */
.navbar {
    background-color: #ca2124;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .brand {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.user-info {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Layout */
.main-content {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Content Area (Left) */
.content-area {
    flex: 1;
    padding: 2rem;
    background-color: white;
    margin: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Sidebar Navigation (Right) */
.sidebar {
    width: 280px;
    background-color: #fff;
    border-left: 1px solid #eee;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #555;
    border-bottom: 2px solid #ca2124;
    padding-bottom: 0.5rem;
    display: inline-block;
}

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

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #444;
    border-radius: 4px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-menu a:hover {
    background-color: #fff5f5;
    color: #ca2124;
    border-left-color: #ca2124;
}

.nav-menu a.active {
    background-color: #ca2124;
    color: white;
    border-left-color: #a01b1e;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column-reverse;
    }

    .sidebar {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #eee;
        padding: 1rem;
    }

    .content-area {
        margin: 1rem;
    }
}

/* Focus Section Styles */
.focus-section {
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    color: #333;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #ca2124;
    border-radius: 2px;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.focus-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.focus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 200px;
    overflow: hidden;
    background-color: #eee;
    /* Placeholder bg */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.focus-card:hover .card-image img {
    transform: scale(1.05);
    /* Zoom effect */
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: #ca2124;
    /* Theme color */
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .focus-grid {
        grid-template-columns: 1fr;
    }
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2.5rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Form Styles inside Modal */
.modal-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #ca2124;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
    border-color: #ca2124;
    outline: none;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-cancel,
.btn-save {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-cancel {
    background-color: #eee;
    color: #333;
}

.btn-cancel:hover {
    background-color: #ddd;
}

.btn-save {
    background-color: #ca2124;
    color: white;
}

.btn-save:hover {
    background-color: #a01b1e;
}

/* Custom Alert Styles */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    /* Green */
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    /* Above modal */
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
}

.custom-alert.show {
    transform: translateX(0);
}

.custom-alert .icon {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}


/* About Us Section Specifics */
.about-section {
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.bg-light {
    background-color: #f9f9f9;
    padding: 3rem 1rem;
    border-radius: 8px;
}

.ages-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.age-card,
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    border: 1px solid #eee;
}

.age-card:hover,
.feature-card:hover {
    transform: translateY(-5px);
    border-color: #ca2124;
}

.age-card h3 {
    color: #ca2124;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.age-range {
    display: block;
    font-weight: bold;
    color: #555;
    margin-bottom: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: #ca2124;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Timeline / Journey Section */
.timeline-block {
    margin-bottom: 3rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.timeline-header h3 {
    margin: 0;
    color: #b30000;
}

.btn-add {
    background-color: #ca2124;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.journey-item {
    display: flex;
    gap: 1.5rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    position: relative;
    cursor: move;
    transition: transform 0.2s, box-shadow 0.2s;
}

.journey-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.journey-item.ui-sortable-helper {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: #fff;
    opacity: 0.95;
    z-index: 9999;
}

.journey-icon-box {
    min-width: 35px;
    width: 35px;
    height: 35px;
    background-color: #ca2124;
    margin-right: 1rem;
    border-radius: 4px;
}

.journey-content {
    flex: 1;
}

.journey-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.journey-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.journey-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.btn-edit,
.btn-delete {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-edit {
    background-color: #f0f0f0;
    color: #333;
}

.btn-delete {
    background-color: #ffe6e6;
    color: #d32f2f;
}

.btn-edit:hover {
    background-color: #e0e0e0;
}

.btn-delete:hover {
    background-color: #ffcccc;
}

/* Custom Form Select */
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}


/* Course Section Specifics */
.course-section {
    padding: 3rem 0;
}

/* Location Grid - Simple descriptions */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.location-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #ca2124;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.location-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

/* Offline Grid - Icon, Title, Desc */
.offline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.offline-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.offline-card:hover {
    border-color: #ca2124;
    transform: translateY(-5px);
}

.offline-card h3 {
    margin: 1rem 0 0.5rem;
    color: #333;
    font-size: 1.25rem;
}

.offline-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.icon-square-red {
    width: 35px;
    height: 35px;
    background-color: #ca2124;
    margin-bottom: 1rem;
    border-radius: 4px;
}

/* Login Page Styles */
.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.login-header h1 {
    color: #333;
    margin-bottom: 20px;
}

.login-box {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.btn-login {
    width: 100%;
    padding: 0.75rem;
    background-color: #ca2124;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

.btn-login:hover {
    background-color: #a01b1e;
}

/* User Info Dropdown */
.user-info {
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    min-width: 150px;
    margin-top: 0.5rem;
    z-index: 100;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.user-dropdown a:hover {
    background-color: #f5f5f5;
    color: #ca2124;
}

.user-info.active .user-dropdown {
    display: block;
}

.main-content.full-width {
    display: block;
    max-width: 100%;
}

.main-content.full-width .content-area {
    margin: 0;
    box-shadow: none;
    background: transparent;
}