/* ============================================
   MUANDEVELOPMENT ORGANIZATION
   Brand Colors: #1A2A3A (Primary) | #D4A017 (Secondary)
   ============================================ */

:root {
    --brand-primary: #1A2A3A;
    --brand-secondary: #D4A017;
    --brand-secondary-hover: #B8920F;
    --brand-dark: #0D1A2A;
    --brand-light: #F5F5F5;
}

/* =================== RESET & BASE =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F8F9FA;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    transition: color 0.3s ease;
}

/* =================== NAVBAR =================== */
.navbar {
    background: linear-gradient(135deg, #1A2A3A, #2C4055) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0.8rem 0;
    min-height: 70px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
}

.navbar-brand span.gold {
    color: #D4A017;
}

.navbar-brand:hover {
    color: #D4A017 !important;
}

.navbar-nav .nav-link {
    color: #FFFFFF !important;
    font-weight: 500;
    margin: 0 0.2rem;
    transition: all 0.3s;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link:hover {
    color: #D4A017 !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =================== HERO =================== */
.hero-section {
    background: linear-gradient(rgba(26, 42, 58, 0.8), rgba(26, 42, 58, 0.8)),
        url('https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-bottom: 2rem;
}

/* =================== CAROUSEL (Slides) =================== */
#heroSlider .carousel-item {
    background-size: cover !important;
    background-position: center !important;
    height: 500px;
}

#heroSlider .carousel-caption {
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#heroSlider .carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#heroSlider .carousel-caption p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* =================== BUTTONS =================== */
.btn-primary {
    background-color: #D4A017;
    border: none;
    color: #1A2A3A;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #B8920F;
    color: #1A2A3A;
    transform: scale(1.03);
}

.btn-success {
    background-color: #1A2A3A;
    border: none;
    color: #FFFFFF;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-success:hover {
    background-color: #2C4055;
    color: #D4A017;
    transform: scale(1.03);
}

.btn-outline-primary {
    border-color: #D4A017;
    color: #D4A017;
}
.btn-outline-primary:hover {
    background-color: #D4A017;
    color: #1A2A3A;
}

.btn-outline-success {
    border-color: #1A2A3A;
    color: #1A2A3A;
}
.btn-outline-success:hover {
    background-color: #1A2A3A;
    color: #D4A017;
}

.btn-lg {
    padding: 14px 40px;
    font-size: 1.1rem;
}

/* =================== CARDS =================== */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.15);
    border: 1px solid #D4A017;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
}

/* =================== STAT BOXES =================== */
.stat-box {
    background: linear-gradient(135deg, #1A2A3A, #2C4055);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: scale(1.02);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-box i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #D4A017;
}

/* =================== SECTION TITLES =================== */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #1A2A3A;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #D4A017;
}

/* =================== FOOTER =================== */
.footer {
    background: #1A2A3A;
    color: #ddd;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer h5 {
    color: #D4A017;
    margin-bottom: 1.2rem;
}

.footer a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #D4A017;
}

.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.footer .col-md-3, .footer .col-md-4 {
    margin-bottom: 20px;
}

/* =================== FORMS =================== */
.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #ddd;
    transition: all 0.3s;
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    border-color: #D4A017;
    box-shadow: 0 0 0 0.2rem rgba(212, 160, 23, 0.25);
}

/* =================== ADMIN SIDEBAR =================== */
.admin-sidebar {
    background: #1A2A3A;
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin: 5px 0;
    transition: all 0.3s;
    min-height: 44px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: #D4A017;
    color: #1A2A3A;
}

/* =================== ALERTS =================== */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #D4A017;
    color: #1A2A3A;
}

.alert-primary {
    background-color: #1A2A3A;
    color: #D4A017;
}

/* =================== GALLERY =================== */
.gallery-img {
    cursor: pointer;
    transition: transform 0.2s;
    height: 220px;
    object-fit: cover;
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* =================== JUMBOTRON =================== */
.jumbotron {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-radius: 20px;
    padding: 2rem;
}

/* =================== PARTNERS =================== */
.partner-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e9ecef;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.15);
    border-color: #D4A017;
}

.partner-logo {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    transition: filter 0.3s;
}

/* =================== VALUES CARDS =================== */
.values-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}
.values-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.values-card i {
    color: #D4A017;
}

/* =================== TEXT HELPERS =================== */
.text-gold {
    color: #D4A017;
}
.text-dark-navy {
    color: #1A2A3A;
}
.bg-gold {
    background-color: #D4A017;
}
.bg-dark-navy {
    background-color: #1A2A3A;
}

/* =================== RESPONSIVE TABLES =================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* =================== MOBILE & TABLET RESPONSIVENESS =================== */

/* Small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
        min-height: 300px;
    }
    .hero-section h1 {
        font-size: 1.8rem !important;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .hero-section .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    #heroSlider .carousel-item {
        height: 300px !important;
    }
    #heroSlider .carousel-caption h1 {
        font-size: 1.5rem;
    }
    #heroSlider .carousel-caption p {
        font-size: 0.9rem;
    }
    #heroSlider .carousel-caption .btn {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .stat-box {
        padding: 15px;
        margin-bottom: 15px;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .stat-box i {
        font-size: 2rem;
    }

    .card {
        margin-bottom: 15px;
    }
    .card-body {
        padding: 15px;
    }
    .card-title {
        font-size: 1.1rem;
    }
    .card-text {
        font-size: 0.9rem;
    }
    .card-img-top {
        height: 150px !important;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .gallery-img {
        height: 150px !important;
    }

    .partner-card {
        padding: 10px;
    }
    .partner-logo {
        max-height: 50px !important;
    }

    .footer h5 {
        font-size: 1rem;
    }
    .footer p,
    .footer a {
        font-size: 0.85rem;
    }

    .form-control,
    .form-select,
    .btn {
        font-size: 0.9rem;
        padding: 10px 14px;
        min-height: 44px;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Medium devices (tablets, 577px to 992px) */
@media (min-width: 577px) and (max-width: 992px) {
    .hero-section {
        padding: 80px 0;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .stat-box {
        padding: 20px;
    }
    .stat-number {
        font-size: 2rem;
    }

    .card-img-top {
        height: 180px;
    }

    .gallery-img {
        height: 180px !important;
    }

    .partner-card {
        padding: 12px;
    }
    .partner-logo {
        max-height: 60px !important;
    }

    .footer .col-md-3,
    .footer .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 20px;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* Large devices (desktops, 993px and up) */
@media (min-width: 993px) {
    /* Keeps default styles */
}

/* Extra fixes for touch devices */
button,
a,
.btn,
.nav-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile menu auto-close script is in JavaScript */