/* ====================================
   Global Typography Stylesheet
   Nurse CMU Childcare Website
   ==================================== */

/* Base Font Settings */
body {
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #333;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Paragraph and Text */
p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #555;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
}

small, .small {
    font-size: 0.9rem;
    font-weight: 400;
}

strong, b {
    font-weight: 600;
}

/* Section Titles */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FF6A00;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-title span {
    background: #ffffff;
    padding: 0 10px;
}

/* Card Typography */
.card-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

.card-footer {
    font-size: 0.95rem;
}

.card-footer strong {
    font-weight: 600;
    color: #2c3e50;
}

/* Buttons */
.btn {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6A00 0%, #FF8C3A 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E66000 0%, #FF7A2A 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

/* Links */
a {
    color: #FF6A00;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #E66000;
    text-decoration: none;
}

/* Lists */
ul, ol {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

/* Table Typography */
table {
    font-size: 1rem;
}

table th {
    font-weight: 600;
    color: #2c3e50;
}

table td {
    color: #555;
}

/* Form Elements */
label {
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

input, textarea, select {
    font-size: 1rem;
    font-weight: 400;
}

input::placeholder,
textarea::placeholder {
    color: #999;
    font-weight: 300;
}

/* Page Titles */
.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

/* Responsive Typography */
@media (max-width: 1199.98px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.85rem; }
    h3 { font-size: 1.6rem; }
    h4 { font-size: 1.35rem; }

    p { font-size: 1rem; }
    .lead { font-size: 1.15rem; }

    .page-title { font-size: 2.5rem; }
    .page-subtitle { font-size: 1.1rem; }
}

@media (max-width: 991.98px) {
    body { font-size: 15px; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.15rem; }

    p { font-size: 1rem; }
    .lead { font-size: 1.1rem; }

    .card-title { font-size: 1.25rem; }
    .card-text { font-size: 0.95rem; }

    .page-title { font-size: 2.2rem; }
    .page-subtitle { font-size: 1.05rem; }

    .btn { font-size: 0.95rem; padding: 10px 25px; }
}

@media (max-width: 767.98px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.35rem; }
    h4 { font-size: 1.15rem; }

    .page-title { font-size: 2rem; }
    .page-subtitle { font-size: 1rem; }
}

@media (max-width: 575.98px) {
    body { font-size: 14px; }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }

    p { font-size: 0.95rem; }
    .lead { font-size: 1rem; }

    .card-title { font-size: 1.15rem; }
    .card-text { font-size: 0.9rem; }
    .card-footer { font-size: 0.85rem; }

    .page-title { font-size: 1.75rem; }
    .page-subtitle { font-size: 0.95rem; }

    .btn { font-size: 0.9rem; padding: 10px 20px; }

    .section-title { font-size: 1rem; }
}

/* Print Typography */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    h1 { font-size: 24pt; }
    h2 { font-size: 20pt; }
    h3 { font-size: 18pt; }
    h4 { font-size: 16pt; }
    h5 { font-size: 14pt; }
    h6 { font-size: 12pt; }
}
