* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    color: #1f2937;
    background: #2C4E7E; /* Slate Blue */
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: min(1400px, 90%);
    margin: 0 auto;
}

.top-strip {
    background: #2C4E7E;
    color: #e2e8f0;
    font-size: 15px;
    padding: 10px 0;
}

.top-strip .container,
.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.main-nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 30px;
    font-weight: 700;
    color: #e26939; /* Use the logo orange as primary accent */
}

.brand-subtitle {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.login-shortcut-btn {
    display: none; /* Hidden on desktop */
    background: #e26939;
    color: #fff !important;
    border-radius: 4px;
    padding: 10px 20px !important;
    margin-left: 10px;
}

.login-shortcut-btn:hover {
    background: #d35400 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 105, 57, 0.3);
}

.login-shortcut-btn::after {
    display: none !important;
}

.menu a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 12px;
    transition: all 0.3s ease;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #e26939;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu a:hover {
    color: #e26939;
}

.menu a:hover::after {
    width: 100%;
}

.search-strip {
    background: #2C4E7E;
    padding: 20px 0;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    width: min(850px, 100%);
    margin: 0 auto;
}

.search-form input {
    height: 48px;
    border: none;
    border-radius: 4px;
    padding: 0 18px;
    font-size: 16px;
}

.search-form button {
    border: none;
    border-radius: 4px;
    background: #e26939;
    color: #fff;
    padding: 0 32px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    height: 48px;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: #d35400;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(226, 105, 57, 0.3);
}

.content-section {
    background: #fff;
    margin: 24px auto;
    width: min(1100px, 92%);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.section-header h2 {
    margin: 0 0 10px;
    color: #1e293b;
    font-size: 30px;
}

.section-header p {
    margin: 0;
    color: #6b7280;
}

/* Karibu Onepeak EDOS Section Styles */
.karibu-section {
    background: #2C4E7E;
    padding: 50px 0 40px;
    color: white;
    font-family: 'Nunito Sans', sans-serif;
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding-top: 90px;
    position: relative;
}

.karibu-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Left Section Styles */
.left-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Left Logo Container Styles */
.logo-container-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 10px;
}

.logo-with-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-watermark {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    user-select: none;
    position: relative;
    z-index: 5;
}

.karibu-title {
    font-size: 48px;
    font-weight: 700;
    margin: 20px 0 0;
    text-align: left;
    text-shadow: 2px 3px 12px rgba(0, 0, 0, 0.24);
    line-height: 1.04;
}

.karibu-title span {
    font-weight: 400;
    opacity: 0.92;
}

.location-line {
    text-align: left;
    margin-bottom: 6px;
}

.location-text {
    color: #ffffff;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-get-started {
    display: inline-block;
    background: #e26939;
    color: #fff;
    padding: 14px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-get-started:hover {
    background: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Discover More Section */
.discover-more-section {
    background: #ffffff;
    padding: 20px 0 30px;
    text-align: center;
}

.discover-title {
    color: #e67e22;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.discover-text {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    max-width: 700px;
}

.module-item {
    display: flex;
    gap: 14px;
    align-items: start;
    background: transparent;
    padding: 0;
}

.date-box {
    background: #e26939;
    color: white;
    border-radius: 1px;
    text-align: center;
    min-width: 44px;
    padding: 6px 4px 4px;
}

.date-box .day {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.date-box .month {
    display: block;
    font-size: 10px;
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
}

.module-content h3 {
    margin: 0 0 3px;
    font-size: 30px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.06;
}

.module-content p {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.88);
}

/* Right Section Styles */
.right-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 80px;
}

.registration-form {
    background: #ffffff;
    border: 2px dashed #e26939;
    border-radius: 0;
    padding: 20px 18px 24px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 12px 36px rgba(8, 21, 70, 0.24);
    position: relative;
    z-index: 10;
}

.login-copyright {
    margin-top: 40px;
    text-align: center;
    width: 100%;
}

.login-copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
    font-weight: 400;
}



/* Hide Modules Grid */
.modules-grid {
    display: none;
}

/* System Features Card Styles */
.system-features-card {
    background: #ffffff;
    border-radius: 0;
    padding: 25px 30px;
    margin: 0;
    width: 100%;
    max-width: 750px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 380px;
    left: 155px;
    transform: none;
    z-index: 1;
}

.features-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.features-left,
.features-right {
    flex: 1;
}

.features-title {
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.features-list li {
    margin: 12px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.features-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.features-list a {
    color: #374151;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.features-list a:hover {
    color: #e26939;
}

.feature-arrow {
    color: #e26939;
    font-weight: bold;
    font-size: 18px;
    margin-right: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.features-list li:hover .feature-arrow {
    transform: translateX(3px);
    color: #d35400;
}

/* Logo Circle Styles */
.logo-circle {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 5px solid #e26939;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(226, 105, 57, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.logo-circle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(226, 105, 57, 0.4);
}

.logo-image {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
}

.form-title {
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.15;
}

.form-title .small {
    display: block;
    font-size: 11px;
    color: #6b7280;
    letter-spacing: 1.5px;
}

.form-title .big {
    display: block;
    color: #e26939;
    font-size: 56px;
    line-height: 1;
    margin: 6px 0 4px;
}

.admission-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.action-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-btn {
    background: #e26939;
    color: #ffffff;
}

.signup-btn {
    background: #2C4E7E;
    color: #ffffff;
}

.admission-btn {
    background: #e26939;
    color: #ffffff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 8px;
    gap: 5px;
    margin-bottom: 15px;
}

.input-icon {
    width: 20px;
    min-width: 20px;
    color: #6b7280;
    font-size: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group label {
    font-size: 13px;
    color: #4b5563;
}

.form-group label span {
    color: #ef4444;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    font-size: 13px;
    font-family: inherit;
    color: #374151;
    height: auto;
    background: #fff;
    box-sizing: border-box;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group-full {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 8px 12px;
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.form-group-full:hover {
    border-color: #9ca3af;
}

.form-group-full input {
    width: 100%;
    padding: 0;
    border: none !important;
    background: transparent;
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

.form-group-full input:focus {
    outline: none;
}

.form-group-full input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-group-full:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group-underline {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.form-group-underline input {
    width: 100%;
    padding: 10px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    background: #fff !important;
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
    outline: none !important;
    box-sizing: border-box;
}

.form-group-underline input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}
.form-group-underline input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}
/* Global input styling for boxed borders and rounded corners */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select {
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    padding: 8px 12px;
    box-sizing: border-box;
    outline: none;
    background-color: #fff;
    color: #374151;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Ensure form-group-underline inputs are boxed as well */
.form-group-underline input {
    background: #fff !important;
    width: 100%;
}

/* Alternative dotted style option - uncomment to use dots instead of solid line */
/*
.form-group-underline {
    border-bottom-style: dotted;
    border-bottom-width: 1px;
}
*/

.id-options {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.id-option-btn {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.id-option-btn:hover {
    border-color: #e26939;
    background: #fef2f2;
}

.id-option-btn:focus {
    outline: none;
    border-color: #e26939;
    box-shadow: 0 0 0 3px rgba(226, 105, 57, 0.1);
}

.parent-section {
    margin-top: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 4px solid #e26939;
}

.parent-section h3 {
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 16px;
}

.parent-section p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.blue-text {
    color: #6b7280 !important;
    font-weight: 400;
}

.blue-text a {
    color: #374151 !important;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 21, 70, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Login Popup Square Style - Only for this section */
.popup-form,
.popup-form input,
.popup-form button,
.popup-form .details-grid,
.popup-form .student-details-preview img {
    border-radius: 0 !important;
}

.popup-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 420px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.popup-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.student-preview img {
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
    transition: transform 0.3s ease;
}

.student-preview img:hover {
    transform: scale(1.05);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.validation-message {
    margin-top: 15px;
    padding: 12px;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    border-radius: 8px;
    border-left: 4px solid #f43f5e;
}

.validation-message p {
    margin: 0;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.5;
}

.discover-content {
    padding: 40px 0;
}

.discover-title {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 36px;
    font-weight: 700;
}

.discover-text {
    margin: 0 0 30px 0;
    color: #4b5563;
    font-size: 20px;
    line-height: 1.6;
}

.features-section {
    margin: 0;
}

.features-row {
    display: flex;
    gap: 40px;
    margin: 15px 0;
}

.feature-item {
    color: #374151;
    font-size: 15px;
    font-weight: 500;
}

.separator {
    color: #e26939;
    font-size: 24px;
    font-weight: 300;
    margin: 10px 0;
}


.copyright-section {
    background: #111827;
    color: #9ca3af;
    padding: 0;
    text-align: center;
    margin-top: 0;
    display: none;
}

.copyright-section p {
    margin: 0;
    font-size: 14px;
}

.submit-btn {
    background: #e26939;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 105, 57, 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(226, 105, 57, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .karibu-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .karibu-title {
        font-size: 40px;
        text-align: center;
        margin-top: 8px;
    }

    .location-line {
        text-align: center;
    }

    .location-text {
        font-size: 24px;
    }

    .registration-form {
        max-width: 560px;
    }

    .right-section {
        justify-content: center;
        margin-top: 40px;
    }

    .modules-grid {
        max-width: 100%;
    }

    /* Footer responsive styles for tablets */
    .footer-section {
        padding: 25px 4%;
    }

    .footer-grid {
        gap: 3%;
    }

    .footer-column {
        padding: 0 1%;
    }

    .footer-column::after {
        background: linear-gradient(to bottom, transparent, #94a3b8, transparent);
        box-shadow: 0 0 6px rgba(148, 163, 184, 0.25);
    }

    .brand-name {
        font-size: 26px;
    }

    .brand-description {
        font-size: 14px;
    }

    .footer-heading {
        font-size: 17px;
    }

    .system-features-card {
        padding: 25px;
        width: 100%;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 30px 0;
        z-index: 1;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .features-content {
        flex-direction: column;
        gap: 20px;
    }

}

@media (max-width: 576px) {
    .karibu-section {
        padding: 40px 0 48px;
    }

    .karibu-title {
        font-size: 31px;
    }

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

    .module-item {
        align-items: center;
        text-align: left;
    }

    .module-content h3 {
        font-size: 24px;
    }

    .registration-form {
        padding: 16px 12px 18px;
    }

    .logo-circle {
        width: 76px;
        height: 76px;
        border: 4px solid #e26939;
    }

    .logo-image {
        width: 70px;
        height: 70px;
    }

    .logo-watermark {
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    .logo-with-text {
        gap: 10px;
    }

    .system-features-card {
        padding: 20px;
        width: calc(100% - 20px);
        margin: 20px auto;
    }

    .features-content {
        gap: 25px;
    }

    .features-title {
        font-size: 18px;
    }

    .features-list a {
        font-size: 15px;
    }

    .form-title .big {
        font-size: 38px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .action-btn {
        padding: 14px;
        font-size: 14px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    /* Footer responsive styles */
    .footer-section {
        padding: 20px 3%;
    }

    .footer-grid {
        flex-direction: column;
        gap: 30px;
    }

    .footer-column {
        padding: 0;
        text-align: center;
    }

    .footer-column::after {
        display: none;
    }

    .footer-column:first-child {
        text-align: center;
    }

    .brand-name {
        font-size: 24px;
    }

    .brand-description {
        font-size: 14px;
    }

    .footer-heading {
        font-size: 16px;
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }
}