/* ================================================
   KKSSSN Website - Main Stylesheet
   Color Scheme: Blue (#003478), White (#FFFFFF), Gold (#D4AF37)
   ================================================ */

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

:root {
    --primary-blue: #003478;
    --dark-blue: #001f47;
    --light-blue: #1a5490;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --border-gray: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* ======= HEADER & NAVIGATION ======= */
header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top {
    background-color: var(--dark-blue);
    padding: 10px 20px;
    font-size: 13px;
    width: 100%;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.header-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-right: auto;
}

.header-contact a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

.header-contact a:hover {
    color: var(--white);
}

.header-top-right {
    white-space: nowrap;
    text-align: right;
}

.header-main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    padding: 15px 20px;
    background-color: var(--primary-blue);
    order: 1;
    flex-basis: auto;
}

.logo-img {
    width: 66px;
    height: 66px;
    border-radius: 50%;
}

.logo-text h1 {
    font-size: 18.7px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--gold);
    margin: 0;
    white-space: nowrap;
    word-break: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-text p {
    font-size: 11px;
    color: var(--white);
    margin: 0;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 24px;
    cursor: pointer;
    padding: 15px 20px;
    order: 1;
    flex: 1;
    text-align: right;
}

nav {
    display: flex;
    gap: 0;
    align-items: center;
    width: 100%;
    background-color: var(--primary-blue);
    padding: 0;
    order: 2;
    justify-content: center;
    flex-basis: 100%;
    border-top: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    width: 100%;
    justify-content: space-around;
}

nav li {
    position: relative;
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(212, 175, 55, 0.4);
}

nav li:last-child {
    border-right: none;
}

nav a {
    color: var(--white);
    text-decoration: none;
    padding: 15px 18px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
    font-size: 14px;
    font-weight: 500;
}

nav a:hover {
    background-color: var(--gold);
    color: var(--primary-blue);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-blue);
    list-style: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}

.dropdown-menu li a:hover {
    background-color: var(--gold);
    color: var(--primary-blue);
}

/* Hide the About Us leadership submenu item across all pages */
.dropdown-menu a[href$="#leadership"] {
    display: none;
}

.internet-Financial-btn {
    background-color: var(--gold);
    color: var(--primary-blue);
    padding: 10px 20px !important;
    border-radius: 5px;
    font-weight: 700;
    margin-left: 10px;
}

.internet-Financial-btn:hover {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(212,175,55,0.3);
}

/* ======= MOBILE MENU ======= */
@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 14px;
    }

    .nav-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-blue);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    nav.active {
        max-height: 500px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    nav a {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: rgba(0,0,0,0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }
}

/* ======= HERO SECTION ======= */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)" /></svg>');
    opacity: 0.5;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212,175,55,0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background-color: var(--gold);
    color: var(--primary-blue);
}

/* ======= MARQUEE ======= */
.marquee-section {
    background-color: var(--dark-blue);
    color: var(--gold);
    padding: 12px 0;
    overflow: hidden;
}

.marquee {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.marquee-item {
    padding: 0 40px;
    font-size: 16px;
    font-weight: 500;
}

/* ======= STATISTICS SECTION ======= */
.stats-section {
    background-color: var(--white);
    padding: 50px 20px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--dark-gray);
    font-weight: 600;
}

/* ======= MAIN CONTENT ======= */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--gold);
    display: inline-block;
}

.section-subtitle {
    font-size: 16px;
    color: var(--dark-gray);
    margin-bottom: 30px;
}

/* ======= LOAN CARDS GRID ======= */
.loans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.loan-card {
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    border: 2px solid var(--gold);
}

.loan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    background-color: var(--light-gray);
}

.loan-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--primary-blue);
}

.loan-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-gray);
}

.loan-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* ======= SERVICES GRID ======= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--gold);
    transition: all 0.3s;
    border: 1px solid var(--border-gray);
}

.service-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.service-item h4 {
    color: var(--primary-blue);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-item p {
    font-size: 14px;
    color: var(--dark-gray);
}

/* ======= ABOUT SECTION ON HOMEPAGE ======= */
.about-snippet {
    background-color: var(--white);
    padding: 40px 20px;
    margin: -40px -20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.about-snippet-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-snippet h3 {
    color: var(--primary-blue);
    font-size: 24px;
    margin-bottom: 15px;
}

.about-snippet p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

/* ======= FULL PAGE ======= */
.page-header {
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 40px 20px;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.page-header p {
    font-size: 16px;
    color: var(--dark-gray);
}

/* ======= FOOTER ======= */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--gold);
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    align-items: center;
}

.footer-logos img {
    height: 40px;
    opacity: 0.8;
}

/* ======= TABLE STYLES ======= */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

table thead {
    background-color: var(--primary-blue);
    color: var(--white);
}

table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-gray);
}

table tbody tr:hover {
    background-color: var(--light-gray);
}

/* ======= FORM STYLES ======= */
form {
    max-width: 600px;
    margin: 30px 0;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
}

input[type="text"],
input[type="email"],
input[type="phone"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 5px rgba(0,52,120,0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ======= UTILITIES ======= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-gold {
    color: var(--gold);
}

.text-primary {
    color: var(--primary-blue);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
    .header-top-content {
        flex-direction: column;
        gap: 10px;
    }

    .header-main {
        flex-direction: column;
        padding-left: 15px;
        padding-right: 15px;
    }

    .logo-section {
        margin-bottom: 15px;
        width: 100%;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .logo-text p {
        font-size: 11px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    main {
        padding: 30px 15px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 28px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .header-contact {
        flex-direction: column;
        gap: 5px;
    }

    .hero h2 {
        font-size: 22px;
    }

    .hero p {
        font-size: 12px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 24px;
    }
}