* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
}
:root {
    --primary: #0f2027;
    --secondary: #203a43;
    --accent: #d4af37;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
}
body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}
header {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6px;
}
.logo img{
    width: 9rem;
    margin:4px 0 12px 0;
}
.logo a {
    color: var(--text-light);
    font-weight: bold;
    font-style: italic;
    text-decoration: none;
    letter-spacing: 1px;
    position:relative;
}

.logo a::after {
    content: "Chartered Professional Accountants";
    color: var(--accent);
    width:100px;
    white-space: nowrap;
    position: absolute;
    bottom:-2px;
    left:0px;
    font-size: 11pt;
}
.nav-tabs {
    display: flex;
    list-style: none;
}
.nav-tabs li a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.nav-tabs li a:hover,
.nav-tabs li a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}
.hero {
    background: linear-gradient(rgba(15, 32, 39, 0.8), rgba(32, 58, 67, 0.8)), url('/assets/bg.jpg') no-repeat center center/cover;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    padding:10px;
    
}
.slogan {
    display: grid;
    font-weight: bold;
    font-size: 30px;
    grid-template-columns: 1fr 1fr;
    gap: 5px
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    
}
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 26px;
    position: relative;
    color: var(--primary);
}
.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto 0;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}
.card {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-5px);
}
.card h3 {
    margin: 15px 0;
    color: var(--primary);
}
.card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--accent);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.cpa {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:5px;
}
.cpa span{
    color:var(--accent);
    text-align: right;
}
.cpa a{
    color:#cbd5e1;
    justify-content: left;
}
footer {
    background-color: var(--primary);
    color: #cbd5e1;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    margin-top: 20px;
}
footer a {
    color:var(--accent);
}
.matlen-welcome-section ul{
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 26px;
}
.matlen-welcome-section ul > li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
}
.matlen-welcome-section ul > li span{
    margin-right: 10px;
    font-weight: bold;
    color: var(--accent);
    }

@media (max-width: 768px) {
    header{
        position: relative;     
    }
    .navbar {
        flex-direction: column;
        align-items:normal;
        padding:0px;
        padding-bottom: 14px;
        padding-left:8px;
        margin:0;
    }
    .nav-tabs {
        align-items: right;
    }
    .nav-tabs li a {
        padding: 8px 6px;
        font-size: 0.9rem;
    }
    .section-title{
        font-size:1.2rem;
    }
    .hero{
        font-size:0.9rem;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .logo img{
        width:8rem;
    }
     .logo a::after  {
        font-size:0.8rem;
    }
    .cpa{
        grid-template-columns: 1fr;
    }
    .cpa a{
        font-size: 10pt;
    }
    .slogan{
        grid-template-columns: 1fr;
        justify-items: center;
        font-size: 1.4rem;
    }
}