/* ===== ROOT WRAPPER ===== */
.aedu,
.aedu * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.aedu {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    background: #f4f6f9;
    color: #333;
}

/* ===== Container ===== */
.aedu .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===== Header ===== */
.aedu-header {
    background: #2c3e50;
    color: #fff;
    padding: 12px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.aedu-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== Logo ===== */
.aedu-logo img {
    height: 40px;
}

/* ===== Navigation ===== */
.aedu-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.aedu-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.25s ease;
    white-space: nowrap;
}

.aedu-nav a:hover {
    color: #1abc9c;
}

/* ===== Buttons (Header Safe) ===== */
.aedu-login-btn,
.aedu-demo-btn {
    display: inline-block;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s ease;
}

/* Login Button */
.aedu-login-btn {
    padding: 6px 14px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff !important;
}

.aedu-login-btn:hover {
    background: #fff;
    color: #2c3e50 !important;
}

/* Demo Button */
.aedu-demo-btn {
    padding: 7px 16px;
    background: #1abc9c;
    color: #fff !important;
    font-weight: 600;
    border: none;
    margin-left: 6px;
}

.aedu-demo-btn:hover {
    background: #16a085;
}

/* ===== Dropdown ===== */
.aedu-dropdown {
    position: relative;
}

.aedu-dropdown-content {
    display: none;
    position: absolute;
    top: 38px;
    left: 0;
    background: #fff;
    min-width: 180px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    z-index: 999;
}

.aedu-dropdown-content a {
    display: block;
    color: #333;
    padding: 10px 14px;
    font-size: 14px;
}

.aedu-dropdown-content a:hover {
    background: #f4f6f9;
}

.aedu-dropdown:hover .aedu-dropdown-content {
    display: block;
}

/* ===== Mobile Menu ===== */
.aedu-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

/* ===== Hero ===== */
.aedu-hero {
    min-height: 80vh;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    color: #fff;
}

.aedu-hero h1 {
    font-size: 42px;
    margin-bottom: 12px;
    font-weight: 700;
}

.aedu-hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 22px;
}

/* ===== Common Button ===== */
.aedu-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #fff;
    color: #333;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.aedu-btn:hover {
    background: #1abc9c;
    color: #fff;
}

/* ===== Features ===== */
.aedu-features {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

.aedu-features h2 {
    margin-bottom: 20px;
}

.aedu-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.aedu-card {
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #fff;
    transition: 0.3s;
}

.aedu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ===== Footer ===== */
.aedu-footer {
    text-align: center;
    padding: 18px;
    background: #2c3e50;
    color: #fff;
    margin-top: 40px;
}

/* ===== Login Page ===== */
.aedu-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aedu-login-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.aedu-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.aedu-error {
    background: #ffe6e6;
    color: #d8000c;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .aedu-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .aedu-menu-toggle {
        display: block;
    }

    .aedu-nav {
        display: none;
        flex-direction: column;
        background: #2c3e50;
        width: 100%;
        margin-top: 10px;
        padding: 12px;
        border-radius: 6px;
    }

    .aedu-nav.active {
        display: flex;
    }

    .aedu-nav a {
        padding: 8px 0;
    }

    .aedu-dropdown-content {
        position: static;
        box-shadow: none;
        background: #34495e;
    }

    .aedu-dropdown-content a {
        color: #fff;
    }

    .aedu-feature-grid {
        grid-template-columns: 1fr;
    }

    .aedu-hero h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .aedu-btn {
        width: 100%;
        text-align: center;
    }
}