/* ============================================
   Theme and Color Variables
   Medical Team Website Template
   ============================================ */

:root {
    /* ?????????? - ?? crgh.co.uk */
    --color-medical-blue: #005fa3;
    --color-medical-blue-light: #f0f7ff;
    --color-medical-blue-dark: #003a66;
    --color-medical-blue-lighter: #f8fbff;
    
    /* ???? - ??????? */
    --color-primary-dark: #1a2b48;
    
    /* ??? - ??/?? ????? */
    --color-accent: #c5a059;
    
    /* ??? - ??????? */
    --color-trust-green: #2d8a6b;
    --color-trust-green-light: #e9f4f1;
    
    /* ??? */
    --color-professional-gray: #71777d;
    --color-professional-gray-light: #f4f6f8;
    --color-professional-gray-dark: #2d3136;
    --color-professional-gray-lighter: #fafbfc;
    
    /* ??? */
    --color-white: #ffffff;
    --color-black: #1a1a1a;
    --color-border: #e2e8f0;
    --color-background: #ffffff;
    --color-text: #4a5568;
    --color-text-light: #718096;
    
    /* ??? */
    --color-success: #38a169;
    --color-warning: #ecc94b;
    --color-danger: #e53e3e;
    --color-info: #3182ce;
    
    /* ?? - ???? */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* ?? */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    
    /* ?? */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ?? Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ???? */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

/* ???? - ?? Serif ????? */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-primary-dark);
    margin-bottom: 1.25rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

/* ?? */
p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

p.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-text);
}

/* ?? */
a {
    color: var(--color-medical-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-medical-blue-dark);
    text-decoration: underline;
}

/* ?? */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ????*/
code {
    background-color: var(--color-professional-gray-light);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    color: var(--color-danger);
}

pre {
    background-color: var(--color-professional-gray-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1rem;
}

pre code {
    background-color: transparent;
    padding: 0;
    color: var(--color-text);
}

/* ?? */
blockquote {
    border-left: 4px solid var(--color-medical-blue);
    padding-left: 1rem;
    margin-left: 0;
    margin-bottom: 1rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* ????*/
hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    margin: 2rem 0;
}

/* ???? */
strong, b {
    font-weight: 600;
    color: var(--color-professional-gray-dark);
}

em, i {
    font-style: italic;
}

/* ????*/
small {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ?? */
mark {
    background-color: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
}

/* ????*/
del {
    text-decoration: line-through;
    color: var(--color-text-light);
}

/* ??????*/
sub, sup {
    font-size: 0.75rem;
    line-height: 0;
    position: relative;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}
/* ============================================
   Button Components
   Medical Team Website Template
   ============================================ */

/* ?????? */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    user-select: none;
    line-height: 1.5;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.25);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ????*/
.btn-primary {
    background-color: var(--color-medical-blue);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-medical-blue-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary:disabled {
    background-color: var(--color-professional-gray);
}

/* ???? */
.btn-outline-primary {
    background-color: transparent;
    color: var(--color-medical-blue);
    border-color: var(--color-medical-blue);
}

.btn-outline-primary:hover {
    background-color: var(--color-medical-blue-light);
    color: var(--color-medical-blue-dark);
    border-color: var(--color-medical-blue-dark);
}

.btn-outline-primary:active {
    background-color: var(--color-medical-blue);
    color: var(--color-white);
}

/* ???? */
.btn-light {
    background-color: var(--color-white);
    color: var(--color-medical-blue);
    border-color: var(--color-border);
}

.btn-light:hover {
    background-color: var(--color-professional-gray-lighter);
    border-color: var(--color-medical-blue);
}

/* ???? */
.btn-success {
    background-color: var(--color-trust-green);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    background-color: var(--color-trust-green-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ???? */
.btn-danger {
    background-color: var(--color-danger);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    background-color: #cc0000;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ???? */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* ???? */
.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* ????*/
.btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-group .btn {
    flex: 1;
    min-width: 100px;
}

/* ???????*/
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ???? */
.btn i {
    margin-right: 0.5rem;
}

.btn i:last-child {
    margin-right: 0;
}

/* ???? */
.btn-link {
    background-color: transparent;
    color: var(--color-medical-blue);
    border: none;
    box-shadow: none;
    padding: 0;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--color-medical-blue-dark);
    transform: none;
}

/* ???? */
.btn-text {
    background-color: transparent;
    color: var(--color-text);
    border: none;
    box-shadow: none;
    padding: 0.5rem 1rem;
}

.btn-text:hover {
    background-color: var(--color-professional-gray-lighter);
    transform: none;
}
/* ============================================
   Card Components
   Medical Team Website Template
   ============================================ */

/* ???? */
.service-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: var(--color-medical-blue);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-medical-blue-light), var(--color-medical-blue-lighter));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-medical-blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--color-medical-blue), var(--color-medical-blue-dark));
    color: var(--color-white);
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--color-professional-gray-dark);
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

/* ?????? */
.team-member-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    text-align: center;
}

.team-member-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.member-photo {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: var(--color-professional-gray-light);
    position: relative;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.team-member-card:hover .member-photo img {
    transform: scale(1.08);
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    margin-bottom: 0.5rem;
}

.member-position {
    color: var(--color-medical-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-description {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ???? */
.article-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--color-professional-gray-light);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.article-card:hover .article-image img {
    transform: scale(1.08);
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    background-color: var(--color-medical-blue-light);
    color: var(--color-medical-blue);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.article-title {
    margin-bottom: 0.5rem;
}

.article-title a {
    color: var(--color-professional-gray-dark);
}

.article-title a:hover {
    color: var(--color-medical-blue);
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.article-excerpt {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ???? */
.testimonial-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-medical-blue);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-text {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-professional-gray-dark);
}

.testimonial-position {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ???? */
.stat-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-medical-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-text-light);
    font-weight: 500;
}

/* ???? */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: var(--color-professional-gray-lighter);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: var(--color-professional-gray-lighter);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ???? */
.card-title {
    margin-bottom: 1rem;
    color: var(--color-professional-gray-dark);
}

/* ???? */
.card-text {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* ???? */
.card-link {
    color: var(--color-medical-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.card-link:hover {
    color: var(--color-medical-blue-dark);
    text-decoration: underline;
}
/* ============================================
   Form Components
   Medical Team Website Template
   ============================================ */

/* ????*/
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-professional-gray-dark);
}

.form-group label.required::after {
    content: ' *';
    color: var(--color-danger);
}

/* ???? */
.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-medical-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-control::placeholder {
    color: var(--color-text-light);
}

.form-control:disabled {
    background-color: var(--color-professional-gray-lighter);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ???? */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ????*/
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* ??????? */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    cursor: pointer;
    accent-color: var(--color-medical-blue);
}

.form-check-label {
    margin-bottom: 0;
    cursor: pointer;
    color: var(--color-text);
}

/* ???? */
.form-control.is-invalid {
    border-color: var(--color-danger);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.1);
}

.form-control.is-valid {
    border-color: var(--color-success);
}

.form-control.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(0, 170, 102, 0.1);
}

.invalid-feedback {
    display: block;
    color: var(--color-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    display: block;
    color: var(--color-success);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ???? */
.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ????*/
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

/* ????*/
.input-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.input-group .form-control {
    flex: 1;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group-append {
    display: flex;
    align-items: center;
}

.input-group-append .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 0;
}

/* ?????? */
.form-submit {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.form-submit .btn {
    min-width: 150px;
}

/* ?????? */
.form-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: none;
}

.form-success.show {
    display: block;
}

/* ?????? */
.form-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: none;
}

.form-error.show {
    display: block;
}

/* ???????*/
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

.form-loading .form-control,
.form-loading .btn {
    opacity: 0.6;
}

/* ???? */
.form-label {
    font-weight: 600;
    color: var(--color-professional-gray-dark);
    margin-bottom: 0.5rem;
}

/* ?????? */
.form-help {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

/* ???? */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-professional-gray-dark);
    margin-bottom: 1.5rem;
}

/* ?????? */
.form-control-lg {
    padding: 0.875rem 1.25rem;
    font-size: 1.1rem;
}

.form-control-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

/* ?????? */
.form-floating {
    position: relative;
}

.form-floating .form-control {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}
/* ============================================
   Section Components
   Medical Team Website Template
   ============================================ */

/* ?????? */
.statistics-section {
    background: linear-gradient(135deg, var(--color-professional-gray-lighter), var(--color-white));
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-icon {
    margin-bottom: 1rem;
    color: var(--color-medical-blue);
    transition: all var(--transition-normal);
    font-size: 2.5rem;
}

.stat-item:hover .stat-icon {
    color: var(--color-medical-blue-dark);
    transform: scale(1.1);
}

.stat-number {
    color: var(--color-medical-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.stat-label {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 1.1rem;
}

/* ????*/
.hero-section {
    position: relative;
    height: 75vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    background-color: var(--color-primary-dark);
    overflow: hidden;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 43, 72, 0.85) 0%, rgba(26, 43, 72, 0.6) 50%, rgba(26, 43, 72, 0.2) 100%);
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 15px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* CTA ?? */
.cta-section {
    background: linear-gradient(135deg, var(--color-medical-blue), var(--color-medical-blue-dark));
    color: var(--color-white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ????*/
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    margin: 3rem 0;
}

/* ???? */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ?????? */
.section-light {
    background-color: var(--color-professional-gray-lighter);
}

/* ?????? */
.section-dark {
    background-color: var(--color-professional-gray-dark);
    color: var(--color-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--color-white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.8);
}

/* ?????? */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h3 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ?????*/
.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.features-list li::before {
    content: '??;
    color: var(--color-trust-green);
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* ????*/
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--color-border);
}

.timeline-item {
    margin-bottom: 2rem;
    width: 48%;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 52%;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--color-medical-blue);
    border: 3px solid var(--color-white);
    border-radius: 50%;
    top: 0;
}

.timeline-content {
    background-color: var(--color-professional-gray-lighter);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--color-medical-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ???? */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ?? */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ????*/
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
/* ============================================
   Responsive Design
   Medical Team Website Template
   ============================================ */

/* ???? (768px - 991px) */
@media (max-width: 991px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem 0.5rem;
    }
    
    .member-photo {
        height: 250px;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 0 !important;
        text-align: left !important;
        padding-left: 40px;
    }
    
    .timeline-marker {
        left: 0;
        transform: translateX(-50%);
    }
}

/* ???? (576px - 767px) */
@media (max-width: 767px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .member-photo {
        height: 200px;
    }
    
    .article-image {
        height: 150px;
    }
    
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        min-width: 100%;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control {
        border-radius: var(--radius-md);
    }
    
    .input-group-append .btn {
        border-radius: var(--radius-md);
        width: 100%;
    }
}

/* ?????? (< 576px) */
@media (max-width: 575px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.25rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .service-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-item {
        padding: 1rem 0;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .member-photo {
        height: 150px;
    }
    
    .article-image {
        height: 120px;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
    
    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-submit {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-submit .btn {
        width: 100%;
        min-width: auto;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .row {
        margin-right: -10px;
        margin-left: -10px;
    }
    
    .col {
        padding-right: 10px;
        padding-left: 10px;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-divider {
        margin: 2rem 0;
    }
}

/* ????????(< 360px) */
@media (max-width: 359px) {
    body {
        font-size: 13px;
    }
    
    h1 {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1rem;
    }
    
    h3 {
        font-size: 0.95rem;
    }
    
    .hero-title {
        font-size: 1.1rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .form-control {
        padding: 0.5rem 0.6rem;
        font-size: 0.9rem;
    }
}

/* ???? (?? < 500px) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* ?????? */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .team-member-card:hover {
        transform: none;
    }
    
    .article-card:hover {
        transform: none;
    }
}

/* ?????? (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/* ???? */
@media print {
    body {
        background-color: var(--color-white);
        color: var(--color-text);
    }
    
    .no-print,
    .btn,
    .form-control,
    .navigation,
    .footer {
        display: none !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    p {
        orphans: 3;
        widows: 3;
    }
    
    img {
        max-width: 100%;
    }
}

/* ?????? */
@media (prefers-color-scheme: dark) {
    :root {
        --color-white: #1a1a1a;
        --color-black: #ffffff;
        --color-background: #0d0d0d;
        --color-text: #e0e0e0;
        --color-text-light: #999999;
        --color-border: #333333;
        --color-professional-gray-light: #2a2a2a;
        --color-professional-gray-lighter: #1f1f1f;
    }
    
    body {
        background-color: var(--color-background);
        color: var(--color-text);
    }
    
    .form-control {
        background-color: #2a2a2a;
        color: var(--color-text);
        border-color: var(--color-border);
    }
    
    .card {
        background-color: #1f1f1f;
        border-color: var(--color-border);
    }
}

/* ?????? */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ?????? */
@media (prefers-contrast: more) {
    :root {
        --color-medical-blue: #0033ff;
        --color-trust-green: #008800;
        --color-danger: #ff0000;
    }
    
    body {
        font-weight: 500;
    }
}

/* --- Custom Refinement --- */
.btn { border-radius: 50px !important; font-weight: 600 !important; letter-spacing: 0.5px; transition: all 0.3s ease !important; }
.btn-primary { background-color: var(--color-medical-blue) !important; border-color: var(--color-medical-blue) !important; color: white !important; }
.btn-primary:hover { background-color: var(--color-medical-blue-dark) !important; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,95,163,0.2) !important; }
.hero-title { font-family: 'Playfair Display', serif !important; }
.section-header h2 { font-family: 'Playfair Display', serif !important; font-weight: 700 !important; color: var(--color-primary-dark) !important; }
.card { border: none !important; box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important; transition: all 0.3s ease !important; }
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important; }
.text-accent { color: var(--color-accent) !important; }
.py-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.font-serif { font-family: 'Playfair Display', serif !important; }
.article-content { line-height: 1.8; color: var(--color-text); }
.article-content p { margin-bottom: 1.5rem; }
.sticky-top { top: 0; z-index: 1020; }
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important; }

