/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e8f0fe;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #1a3a5c;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

nav {
    background-color: #2c5282;
    padding: 12px 0;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: inline-block;
}

nav a:hover {
    background-color: #4299c1;
    color: #1a3a5c;
    text-decoration: underline;
}

main {
    background: white;
    padding: 30px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    color: #1a3a5c;
    margin-bottom: 15px;
    margin-top: 20px;
}

h1 {
    font-size: 28px;
    border-left: 4px solid #4299c1;
    padding-left: 15px;
}

h2 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
}

p {
    margin-bottom: 15px;
}

.indent {
    text-indent: 40px;
}

.italic {
    font-style: italic;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

.highlight {
    font-weight: bold;
    color: #c97e5a;
}

ul, ol {
    margin: 15px 0 15px 40px;
}

li {
    margin: 5px 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    opacity: 0.92;
}

img:hover {
    opacity: 1;
}

.thumbnail {
    width: 100px;
    height: 80px;
    object-fit: cover;
    display: inline-block;
    margin: 5px;
    border: 1px solid #ccc;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: #e8f0fe;
    font-weight: bold;
    color: #1a3a5c;
}

caption {
    font-weight: bold;
    margin-bottom: 10px;
    background-color: #1a3a5c;
    color: white;
    padding: 8px;
    border-radius: 4px 4px 0 0;
}

.card {
    background-color: #f0f7ff;
    border-left: 4px solid #4299c1;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.btn-top {
    display: inline-block;
    background-color: #1a3a5c;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
}

.btn-top:hover {
    background-color: #4299c1;
    color: #1a3a5c;
}

.ref-list {
    list-style-type: none;
    margin-left: 0;
}

.ref-list li {
    margin-bottom: 15px;
    border-left: 3px solid #4299c1;
    padding-left: 15px;
}

footer {
    background-color: #1a3a5c;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

footer a {
    color: #90cdf4;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    main {
        padding: 20px;
    }
    nav a {
        padding: 8px 12px;
        font-size: 12px;
    }
    ul, ol {
        margin-left: 25px;
    }
}