/* Global Styles - CBT Website */

/* CSS Variables - Color Palette */
:root {
    /* Primary Colors */
    --color-primary: #199ACC;
    --color-primary-hover: #1580b0;
    --color-primary-light: #22B3E8;
    --color-primary-dark: #125F81;
    --color-primary-accent: #167FAA;

    /* Background Colors */
    --color-white: #FFFFFF;
    --color-background: #F9F8F7;
    --color-background-light: #BDECFB;
    --color-background-card: #D6F3FC;
    --color-background-gray: #DCDCDC;

    /* Text Colors */
    --color-text: #505050;
    --color-text-dark: #4A4A4A;
    --color-text-gray: #8C8C8C;

    /* Border Colors */
    --color-border: #ECE9E6;
    --color-border-light: #EFEFEF;

    /* Shadows */
    --shadow-primary: rgba(25, 154, 204, 0.3);
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-dark: rgba(0, 0, 0, 0.25);
}

/* Base font-size for rem calculations (1rem = 10px) */
html {
    font-size: 62.5%; /* 62.5% of 16px = 10px */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem; /* 16px */
    background-color: var(--color-background);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure images are responsive by default */
img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

/* Container */
.container {
    max-width: 128rem; /* 1280px */
    margin: 0 auto;
    padding: 0 6rem; /* 60px */
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 1.2rem; /* 12px */
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-0.2rem); /* -2px */
    box-shadow: 0 0.4rem 1.2rem var(--shadow-primary); /* 0 4px 12px */
}

.btn-primary:active {
    transform: translateY(0);
}

/* Responsive Container */
@media (max-width: 1280px) {
    .container {
        padding: 0 4rem; /* 40px */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 3rem; /* 30px */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 2rem; /* 20px */
    }
}
