:root {
    --background-color: #10243C; /* Dark navy blue for page background */
    --primary-color: #5fb26a; /* Vibrant green for CTAs and accents */
    --secondary-color: #f8f1df; /* Light cream for cards and headers */
    --text-color: #ffffff; /* White for primary text */
    --accent-text-color: #e1e3e6; /* Light gray for secondary text */
    --border-color: #2c3e50; /* Darker navy for borders */
    --font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    border-right: 8px solid var(--border-color);
    background: linear-gradient(to bottom, #10243C, #1a2e4a);
    width: 260px;
    padding: 28px 20px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
}

.sidebar .navbar-brand {
    font-size: 26px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar .navbar-brand:hover {
    color: #4a8f54;
}

.sidebar .nav {
    flex-grow: 1;
    gap: 12px;
}

.sidebar .nav-link {
    color: var(--text-color);
    font-size: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(95, 178, 106, 0.1);
    transform: translateX(4px);
    color: #4a8f54;
}

.sidebar .selector-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar .custom-selector {
    width: 100%;
    font-size: 15px;
    padding: 8px 16px;
}

.sidebar .settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #2c2f33, #23272a);
    border-radius: 50%;
    border: none;
    color: var(--primary-color);
    font-size: 18px;
    box-shadow: 3px 3px 8px #1a1c1f, -2px -2px 8px #3a3d42;
    transition: all 0.2s ease-in-out;
}

.sidebar .settings-btn:hover {
    background: linear-gradient(145deg, #23272a, #2c2f33);
    box-shadow: inset 2px 2px 4px #1a1c1f, inset -2px -2px 4px #3a3d42;
    color: #4a8f54;
}

.sidebar .logout-btn {
    align-self: flex-start;
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.content {
    margin-left: 260px;
    flex-grow: 1;
    background-color: #1a2e4a;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.content::after {
    content: 'Watermark not loaded';
    display: none;
    color: var(--accent-text-color);
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
    z-index: 1;
}

header {
    background-color: var(--secondary-color);
    padding: 24px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 900;
}

header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--background-color);
    margin-bottom: 16px;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

nav a:hover {
    color: #4a8f54;
    transform: translateY(-1px);
}

main {
    margin: 56px 0;
}

section {
    margin-bottom: 72px;
}

section h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-color);
}

section p {
    font-size: 17px;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.card {
    background-color: var(--border-color);
    border: 1px solid var(--secondary-color);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--background-color);
    margin-bottom: 16px;
}

.card p {
    font-size: 16px;
    color: var(--background-color);
    margin-bottom: 20px;
}

.card ul {
    list-style: none;
    padding-left: 20px;
}

.card ul li {
    position: relative;
    font-size: 16px;
    color: var(--background-color);
    margin-bottom: 12px;
}

.card ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: -20px;
    font-size: 20px;
}

ol {
    padding-left: 32px;
    margin-bottom: 24px;
}

ol li {
    font-size: 17px;
    color: var(--accent-text-color);
    margin-bottom: 14px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(145deg, #5fb26a, #4a8f54);
    color: var(--text-color);
    padding: 14px 36px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background: linear-gradient(145deg, #4a8f54, #5fb26a);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

footer {
    background-color: var(--secondary-color);
    padding: 28px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

footer p {
    font-size: 15px;
    color: var(--background-color);
}

#hero {
    text-align: center;
    padding: 30px 30px;
    position: relative;
    background: linear-gradient(180deg, rgba(95, 178, 106, 0.1), transparent);
    border-radius: 30px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: end;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -2;
    pointer-events: none;
}

.icon {
    width: 100%;
    height: 100%;
    background-image: url('/css/image/wabiHead.png');
}

.watermark {
    position: absolute;
    top:auto;
    left: 0;
    margin: 0 0;
    width: 60%;
    height: 60%;
    background-image: url('/css/image/wabifil.png');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 0;
    text-align: right;
}

#hero h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#hero p {
    font-size: 18px;
    color: var(--secondary-color);
    margin: 0 auto 32px;
    max-width: 600px;
    line-height: 1.8;
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: -20px;
    margin-bottom: 24px;
}

.hero-title span {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
    padding: 0;
}

.hero-svg {
    width: 120px;
    height: 60px;
    fill: var(--primary-color);
    vertical-align: middle;
    filter: invert(100%);
    margin: 0;
    padding: 0;
}

#hero .cta-button {
    padding: 16px 40px;
    font-size: 18px;
    background: linear-gradient(145deg, #5fb26a, #4a8f54);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#hero .cta-button:hover {
    background: linear-gradient(145deg, #4a8f54, #5fb26a);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.video-content {
    border-radius: 20px;
}

.banner-text {
    font-size: 40px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.25;
    padding: 40px;
}

.banner-image {
    width: 100%;
    max-width: 1080px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    margin: 0 auto;
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    width: 200%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 50%;
    flex-shrink: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-nav button {
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.carousel-nav button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.carousel-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: var(--text-color);
}

#hero0 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#hero0 .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
}

#hero0 .text-content {
    flex: 1;
    padding-right: 20px;
}

#hero0 h1 {
    color: #ffebee;
    font-size: 80px;
    line-height: 1.2;
}

#hero0 p {
    font-size: 18px;
    color: var(--text-color);
    margin: 20px 0;
}

#hero0 .video-content {
    flex: 1;
    text-align: right;
}

#hero0 video {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
    }

    .watermark {
        background-size: 100% auto;
        opacity: 0.6;
    }

    .sidebar-toggle {
        display: block;
    }

    #hero {
        padding: 40px 16px;
        min-height: 350px;
    }

    .hero-background {
        background-size: cover;
        opacity: 0.25;
    }

    .watermark {
        background-size: 80% auto;
        opacity: 0.5;
    }

    #hero h2 {
        font-size: 34px;
    }

    #hero p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    header {
        padding: 20px 0;
    }

    header h1 {
        font-size: 28px;
    }

    nav {
        gap: 20px;
    }

    nav a {
        font-size: 16px;
    }

    section h2 {
        font-size: 26px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 24px;
    }

    #hero h2 {
        font-size: 30px;
    }

    #hero p {
        font-size: 16px;
    }

    #hero0 .row {
        flex-direction: column;
        text-align: center;
    }

    #hero0 .text-content {
        padding-right: 0;
        margin-bottom: 20px;
    }

    #hero0 .video-content {
        text-align: center;
    }

    #hero0 h1 {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }

    nav {
        flex-direction: column;
        gap: 14px;
    }

    section {
        margin-bottom: 56px;
    }

    section h2 {
        font-size: 22px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    #hero {
        padding: 24px 12px;
        min-height: 250px;
    }

    #hero h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    #hero p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    #hero .cta-button {
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
    }
}