main > .container {
    padding: 0px 15px 20px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}


/*  HEADER AND NAV */

/*header {*/
/*    background-color: #f4e4d7;*/
/*    padding: 20px 0;*/
/*    box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
/*    position: sticky;*/
/*    top: 0;*/
/*    z-index: 1000;*/
/*}*/

/*nav {*/

/*    max-width: 1200px;*/
/*    margin: 0 auto;*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    padding: 0 20px;*/
/*}*/


/*END HEADER AND NAV*/

/*   HERO SECTION */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s;
}

.hero img:hover {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* dark overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}


.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

/*.nav > li > form > button.logout:focus,*/
/*.nav > li > form > button.logout:hover {*/
/*    text-decoration: none;*/
/*    color: rgba(255, 255, 255, 0.75);*/
/*}*/

/*.nav > li > form > button.logout:focus {*/
/*    outline: none;*/
/*}*/

/*.form-group {*/
/*    margin-bottom: 1rem;*/
/*}*/


/*    PACKAGES AND SERVICES SECTION  */

.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}


.card-header {
    height: 180px; /* fixed height for header */
    padding: 0;    /* remove Bootstrap padding */
    overflow: hidden;
    background: #f0f0f0;
}

.card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop to fill */
    display: block;
}

/**/
.section-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}


/**/

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card-header{
    height: 180px;
    padding: 0 !important; /* Remove old padding */
    background: #f0f0f0;
}

.service-card-header img{
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes it fill the whole header */
}

.service-logo img,
.agency-card-icon img {
    width: 100% !important;
    height: 180px !important; /* Must match the container height */
    max-width: none !important; /* Overrides your 100px limit */
    object-fit: cover; /* Crops the image to fill the area without stretching */
    display: block;
}

.service-logo {
    font-size: 36px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}



.service-card-body {
    padding: 25px;
}

.service-card-body h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.service-card-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-features {
    list-style: none;
    margin-bottom: 20px;
}

.service-features li {
    font-size: 13px;
    color: #666;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li:before {
    content: "✓ ";
    color: #1eb7e5;
    font-weight: bold;
    margin-right: 8px;
}

/* Scale service logos to fit 100x100px */
.service-logo img {
    width: 300px;
    height: 300px;
    object-fit: fill;

}
.mtn-logo, .airtel-logo, .telecel-logo {
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    width: 100%;
    height: 100%;
}


.agency-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.agency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.agency-card-icon {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.agency-card-body {
    padding: 20px;
}

.agency-card-body h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.agency-card-body p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* CONTACT PAGE SECTION*/

.contact-section {
    background: white;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: #1eb7e5;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 14px;
    color: #666;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1eb7e5;
}

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

.form-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    display: none;
    margin-top: 15px;
}
/*END CONTACT PAGE SECTION*/


/*  BUTTONS */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #1eb7e5;

    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn a{
    color: #fff;
    text-decoration: none;
}

.btn:hover {
    background-color: #1a9dc7;
}
/* END BUTTONS */

/*  ABOUT PAGE SECTION*/
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

.about-text h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #1eb7e5;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

/* END ABOUT SECTION*/


/*  END PACKAGES AND SERVICES SECTION */

/*  FOOTER SECTION       */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

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

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    color: #bdc3c7;
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #1eb7e5;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    background: #34495e;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    padding: 8px;
}

.social-links a:hover {
    background: #1eb7e5;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 13px;
}
/*  END FOOTER */


/*  relative sizing */

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 40px 30px;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
        font-size: 32px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #f4e4d7;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        display: none;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 15px 0;
        border-bottom: 1px solid #e0d0c0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .services-grid,
    .agency-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-section,
    .contact-section {
        padding: 30px 20px;
    }

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

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