/* ===================================
   SwiftCap Loan Kenya - Global Styles (Scaled x0.9 again)
=================================== */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.296; /* 1.44 * 0.9 */
}

/* CONTAINER */
.container {
    width: 72.9%;      /* 81% * 0.9 */
    max-width: 972px;  /* 1080px * 0.9 */
    margin: auto;
}

/* HEADER */
header {
    background-color: #0d6efd;
    padding: 4.05px 0; /* 4.5px * 0.9 */
    color: #fff;
}

header .logo {
    font-size: 12.15px; /* 13.5px * 0.9 */
    font-weight: bold;
    float: left;
    margin: 0;
}

header, header * {
    line-height: 0.81; /* 0.9 * 0.9 */
}

nav {
    float: right;
    margin-top: 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 16.2px; /* 18px * 0.9 */
    font-size: 11.34px;  /* 12.6px * 0.9 */
    transition: 0.243s;  /* 0.27s * 0.9 */
}

nav a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* CLEAR FLOAT */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* HEADINGS */
h1, h2, h3 {
    margin-bottom: 12.15px; /* 13.5px * 0.9 */
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 8.1px 14.58px; /* 9px 16.2px * 0.9 */
    background-color: #0d6efd;
    color: white;
    border-radius: 4.05px; /* 4.5px * 0.9 */
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.243s;
}

.btn:hover {
    background-color: #0b5ed7;
}

/* FORMS */
form {
    background: #fff;
    padding: 20.25px; /* 22.5px * 0.9 */
    margin-top: 24.3px; /* 27px * 0.9 */
    border-radius: 6.48px; /* 7.2px * 0.9 */
    box-shadow: 0 0 8.1px rgba(0,0,0,0.0405); /* 0.045*0.9 */
}

label {
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 8.1px;      /* 9px * 0.9 */
    margin-top: 6.48px;  /* 7.2px * 0.9 */
    margin-bottom: 12.15px; /* 13.5px * 0.9 */
    border: 1px solid #ccc;
    border-radius: 4.05px; /* 4.5px * 0.9 */
    font-size: 11.34px;     /* 12.6px * 0.9 */
}

input:focus, select:focus, textarea:focus {
    border-color: #0d6efd;
    outline: none;
}

/* CARDS */
.card {
    background: #fff;
    padding: 16.2px; /* 18px * 0.9 */
    border-radius: 6.48px; /* 7.2px * 0.9 */
    margin-top: 16.2px;    /* 18px * 0.9 */
    box-shadow: 0 0 8.1px rgba(0,0,0,0.0405);
}

/* TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14.4px; /* 16px * 0.9 */
    background: #fff;
}

table th, table td {
    padding: 8.64px; /* 9.6px * 0.9 */
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #f1f1f1;
}

/* STATUS BADGES */
.badge {
    padding: 3.6px 7.2px; /* 4px 8px * 0.9 */
    border-radius: 14.4px; /* 16px * 0.9 */
    font-size: 8.64px;    /* 9.6px * 0.9 */
    color: white;
}

.badge-success {
    background-color: #28a745;
}

.badge-warning {
    background-color: #ffc107;
    color: #000;
}

.badge-danger {
    background-color: #dc3545;
}

/* FOOTER */
footer {
    background-color: #111;
    color: white;
    padding: 12.15px 0; /* 13.5px * 0.9 */
    margin-top: 32.4px;  /* 36px * 0.9 */
    text-align: center;
    font-size: 11.34px; /* 12.6px * 0.9 */
}

/* RESPONSIVE */
@media (max-width: 768px) {

    header .logo,
    nav {
        float: none;
        text-align: center;
    }

    nav {
        margin-top: 4.5px; /* 5px * 0.9 */
    }

    nav a {
        display: inline-block;
        margin: 8.1px; /* 9px * 0.9 */
    }

    .container {
        width: 76.95%; /* 85.5% * 0.9 */
    }

    .home-container {
        max-width: 810px; /* 900 * 0.9 */
        margin: 0 auto;
        padding: 16.2px; /* 18 * 0.9 */
    }

    .hero {
        text-align: center;
        padding: 40.5px 16.2px; /* 45 18 * 0.9 */
        background-color: #f2f2f2;
        border-radius: 6.48px; /* 7.2 * 0.9 */
    }

    .hero h1 {
        font-size: 2.025em; /* 2.25 * 0.9 */
        margin-bottom: 16.2px; /* 18 * 0.9 */
    }

    .hero p {
        font-size: 0.972em; /* 1.08 * 0.9 */
        margin-bottom: 24.3px; /* 27 * 0.9 */
    }

    .btn {
        background-color: #007bff;
        color: white;
        padding: 9.72px 20.25px; /* 10.8 * 22.5 * 0.9 */
        border: none;
        border-radius: 4.05px;
        margin: 4.05px; /* 4.5 * 0.9 */
        text-decoration: none;
    }

    .features {
        margin: 40.5px 0; /* 45 * 0.9 */
        text-align: center;
    }

    .feature-grid {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .feature {
        width: 24.3%; /* 27% * 0.9 */
        min-width: 202.5px; /* 225 * 0.9 */
        background-color: #e6e6e6;
        padding: 16.2px; /* 18 * 0.9 */
        margin: 8.1px;   /* 9 * 0.9 */
        border-radius: 6.48px; /* 7.2 * 0.9 */
    }

    .how-it-works {
        margin: 40.5px 0; /* 45 * 0.9 */
    }

    .how-it-works ol {
        margin-left: 16.2px; /* 18 * 0.9 */
    }

    .cta {
        text-align: center;
        padding: 32.4px 16.2px; /* 36 18 * 0.9 */
        background-color: #f8f9fa;
        border-radius: 6.48px; /* 7.2 * 0.9 */
    }
    
}