/* CSS Reset & Variable Definitions */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

:root {
    --primary: #0d47a1;
    --primary-dark: #002171;
    --primary-light: #5472d3;
    --accent: #00b2a9;
    --accent-dark: #00827a;
    --bg-light: #f4f7f6;
    --bg-white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --border-color: #e2e8f0;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: table;
    width: 100%;
    padding: 15px 0;
}

.nav-logo {
    display: table-cell;
    vertical-align: middle;
    width: 250px;
}

.nav-logo img {
    height: 45px;
    vertical-align: middle;
}

.nav-brand-text {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.nav-brand-text h1 {
    font-size: 14pt;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.nav-brand-text p {
    font-size: 9pt;
    color: var(--text-muted);
}

.nav-menu {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
}

.nav-menu ul {
    list-style: none;
    display: inline-block;
    margin-right: 20px;
}

.nav-menu ul li {
    display: inline-block;
    margin-left: 25px;
}

.nav-menu ul li a {
    font-size: 11pt;
    font-weight: 500;
    color: var(--text-dark);
}

.nav-menu ul li a:hover, .nav-menu ul li a.active {
    color: var(--primary);
}

.btn-consult {
    display: inline-block;
    background-color: var(--primary);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 11pt;
}

.btn-consult:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #eef5fc 0%, #ffffff 100%);
    padding: 80px 0;
    overflow: hidden;
}

.hero-table {
    display: table;
    width: 100%;
}

.hero-cell-left {
    display: table-cell;
    vertical-align: middle;
    width: 55%;
    padding-right: 40px;
}

.hero-cell-right {
    display: table-cell;
    vertical-align: middle;
    width: 45%;
    text-align: right;
}

.hero h2 {
    font-size: 26pt;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero p {
    font-size: 12pt;
    color: var(--text-dark);
    margin-bottom: 35px;
}

.hero-btns .btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    margin-right: 15px;
}

.hero-btns .btn-primary:hover {
    background-color: var(--primary-dark);
}

.hero-btns .btn-outline {
    display: inline-block;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 600;
}

.hero-btns .btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.hero-img-box {
    position: relative;
    display: inline-block;
}

.hero-img-box img {
    max-width: 100%;
    border-radius: 15px;
}

/* Feature Grid */
.features-bar {
    padding: 50px 0;
    background-color: var(--bg-white);
}

.grid-4 {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 20px 0;
}

.col-4 {
    display: table-cell;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    vertical-align: top;
    text-align: left;
}

.col-4 .icon {
    font-size: 24pt;
    color: var(--accent);
    margin-bottom: 15px;
}

.col-4 h3 {
    font-size: 13pt;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.col-4 p {
    font-size: 10pt;
    color: var(--text-muted);
}

/* Section Common Styling */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 20pt;
    color: var(--primary-dark);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.services-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.grid-3 {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 20px;
}

.row-table {
    display: table-row;
}

.col-3 {
    display: table-cell;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
    vertical-align: top;
}

.col-3:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.col-3 .service-icon {
    font-size: 28pt;
    color: var(--primary);
    margin-bottom: 20px;
}

.col-3 h3 {
    font-size: 13pt;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.col-3 p {
    font-size: 10.5pt;
    color: var(--text-muted);
}

/* Steps Section */
.steps-section {
    padding: 80px 0;
    background: #fff;
}

.steps-container {
    display: table;
    width: 100%;
    table-layout: fixed;
    text-align: center;
}

.step-item {
    display: table-cell;
    position: relative;
    padding: 0 10px;
    vertical-align: top;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50%;
    line-height: 50px;
    font-weight: 700;
    font-size: 14pt;
    margin: 0 auto 20px auto;
}

.step-item h4 {
    font-size: 12pt;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.step-item p {
    font-size: 10pt;
    color: var(--text-muted);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text {
    font-style: italic;
    font-size: 11pt;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.testimonial-profile {
    display: table;
    width: 100%;
}

.profile-img-cell {
    display: table-cell;
    width: 60px;
    vertical-align: middle;
}

.profile-img-cell .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ddd;
    text-align: center;
    line-height: 50px;
    font-weight: bold;
    color: #fff;
}

.profile-info-cell {
    display: table-cell;
    vertical-align: middle;
    padding-left: 15px;
}

.profile-info-cell h5 {
    font-size: 11pt;
    color: var(--primary-dark);
    font-weight: 600;
}

.profile-info-cell p {
    font-size: 9.5pt;
    color: var(--text-muted);
}

/* Call to Action Bar */
.cta-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 40px 0;
}

.cta-table {
    display: table;
    width: 100%;
}

.cta-text-cell {
    display: table-cell;
    vertical-align: middle;
    width: 70%;
}

.cta-btn-cell {
    display: table-cell;
    vertical-align: middle;
    width: 30%;
    text-align: right;
}

.cta-text-cell h3 {
    font-size: 18pt;
    font-weight: 600;
    margin-bottom: 5px;
}

.cta-text-cell p {
    font-size: 11pt;
    opacity: 0.9;
}

.btn-cta-action {
    display: inline-block;
    background-color: var(--accent);
    color: #fff;
    padding: 12px 35px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 11pt;
}

.btn-cta-action:hover {
    background-color: var(--accent-dark);
}

/* Portfolio Page Custom Elements */
.portfolio-grid {
    padding: 60px 0;
}

.portfolio-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.portfolio-img {
    height: 200px;
    background-color: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14pt;
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info span {
    display: inline-block;
    font-size: 9pt;
    background-color: #eef5fc;
    color: var(--primary);
    padding: 3px 12px;
    border-radius: 15px;
    margin-bottom: 10px;
    font-weight: 500;
}

.portfolio-info h3 {
    font-size: 13pt;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.portfolio-info p {
    font-size: 10pt;
    color: var(--text-muted);
}

/* Contact Page Form Elements */
.contact-layout {
    display: table;
    width: 100%;
    padding: 60px 0;
}

.contact-info-side {
    display: table-cell;
    width: 40%;
    vertical-align: top;
    padding-right: 40px;
}

.contact-form-side {
    display: table-cell;
    width: 60%;
    vertical-align: top;
    background: #fdfdfd;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.info-item {
    margin-bottom: 30px;
}

.info-item h4 {
    font-size: 12pt;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.info-item p {
    font-size: 10.5pt;
    color: var(--text-dark);
}

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

.form-group label {
    display: block;
    font-size: 10.5pt;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 10.5pt;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
}

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

.btn-submit {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 25px;
    font-size: 11pt;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 10.5pt;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Footer Section */
footer {
    background-color: #0b1a30;
    color: #ffffff;
    padding: 60px 0 20px 0;
}

.footer-table {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 30px 0;
    margin-bottom: 40px;
}

.footer-col {
    display: table-cell;
    vertical-align: top;
}

.footer-col h4 {
    font-size: 13pt;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p {
    font-size: 10pt;
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    font-size: 10pt;
    color: #cbd5e1;
}

.footer-links li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    font-size: 9.5pt;
    color: #94a3b8;
}

.footer-bottom-table {
    display: table;
    width: 100%;
}

.footer-copy-cell {
    display: table-cell;
    width: 50%;
}

.footer-policy-cell {
    display: table-cell;
    width: 50%;
    text-align: right;
}

.footer-policy-cell a {
    color: #94a3b8;
    margin-left: 20px;
}

.footer-policy-cell a:hover {
    color: var(--accent);
}

/* PDPA Cookie Banner */
#cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    background-color: #ffffff;
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 20px;
    z-index: 9999;
    border: 1px solid var(--border-color);
    display: none;
}

.cookie-box-table {
    display: table;
    width: 100%;
}

.cookie-text-cell {
    display: table-cell;
    vertical-align: middle;
    font-size: 10pt;
    color: var(--text-dark);
    padding-right: 20px;
}

.cookie-btn-cell {
    display: table-cell;
    vertical-align: middle;
    width: 140px;
    text-align: right;
}

.btn-cookie-accept {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 10pt;
    font-weight: 600;
    cursor: pointer;
}

.btn-cookie-accept:hover {
    background-color: var(--primary-dark);
}

/* Ad Placeholders */
.ad-space {
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    text-align: center;
    color: #94a3b8;
    font-size: 9pt;
    padding: 15px 0;
    margin: 30px 0;
    border-radius: 6px;
}