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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--slate-700);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--slate-900);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Reusable Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    transition: all var(--transition-smooth);
    white-space: nowrap;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
}

.btn-outline:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    background: var(--primary-light);
}

.btn-ghost {
    color: var(--slate-700);
    padding: 12px 20px;
}

.btn-ghost:hover {
    color: var(--primary-cyan);
}

/* Section Common Styles */
.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 40px;
    flex-wrap: wrap;
}

.section-header .header-left {
    max-width: 600px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--slate-500);
    font-size: 1.05rem;
}

.section-header .header-right {
    max-width: 420px;
    color: var(--slate-500);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Grid Base */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

.grid-4 > *, .grid-3 > * {
    min-width: 0;
    height: 100%;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    .grid-4, .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Custom Select & Dropdown Styling */
select, .form-control select, .custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
    padding-right: 40px !important;
    cursor: pointer;
    border: 1px solid var(--slate-300, #cbd5e1);
    border-radius: var(--radius-md, 8px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:hover {
    border-color: var(--primary, #0d6e3f);
}

select:focus {
    border-color: var(--primary, #0d6e3f);
    box-shadow: 0 0 0 3px rgba(13, 110, 63, 0.12);
    outline: none;
}

select::-ms-expand {
    display: none;
}

/* Select2 Custom Polish (For standard form controls, excluding hero search widget) */
.form-group .select2-container--default .select2-selection--single,
.form-control.select2-container--default .select2-selection--single,
.admin-card .select2-container--default .select2-selection--single,
.modal .select2-container--default .select2-selection--single {
    height: 48px !important;
    padding: 8px 14px !important;
    border: 1px solid var(--slate-300, #cbd5e1) !important;
    border-radius: var(--radius-md, 8px) !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
}

.form-group .select2-container--default .select2-selection--single:focus,
.form-group .select2-container--default.select2-container--open .select2-selection--single,
.form-control.select2-container--default .select2-selection--single:focus,
.form-control.select2-container--default.select2-container--open .select2-selection--single,
.admin-card .select2-container--default .select2-selection--single:focus,
.admin-card .select2-container--default.select2-container--open .select2-selection--single,
.modal .select2-container--default .select2-selection--single:focus,
.modal .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary, #0d6e3f) !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 63, 0.12) !important;
}

.form-group .select2-container--default .select2-selection--single .select2-selection__arrow,
.form-control.select2-container--default .select2-selection--single .select2-selection__arrow,
.admin-card .select2-container--default .select2-selection--single .select2-selection__arrow,
.modal .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 12px !important;
}

body, html {
    overflow-x: clip;
    width: 100%;
}
@media (max-width: 991px) { body { padding-bottom: 70px; } }
