<style>
<meta name="viewport" content="width=device-width, initial-scale=1">

/* ===========================
   BASE STYLES
   =========================== */
html {
    font-size: 100%;
}

body {
    font-family: Arial, sans-serif;
    background-color: #e0ebf0;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color: #000;
}

a {
    color: #3366CC;
    text-decoration: none;
}

a:visited { color: navy; }

a:hover {
    color: blue;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style-type: none;
    padding: 6px;
    margin: 0;
}

/* ===========================
   TABLE STYLING
   =========================== */
table {
    border-collapse: collapse;
    margin: 1rem 0;
    width: 100%;
    max-width: 960px;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

th, td {
    font-family: Arial, sans-serif;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

tr:nth-child(even) { background-color: #e8f1ed; }
tr:nth-child(odd)  { background-color: #bad9dd; }

/* ===========================
   TYPOGRAPHY UTILITIES
   =========================== */
.text-right { text-align: right; }
.text-left  { text-align: left; }
.text-center { text-align: center; }

.fs-10 { font-size: 10px; }
.fs-15 { font-size: 15px; }
.fs-20 { font-size: 20px; }
.fs-25 { font-size: 25px; }

.ex1  { @apply text-right fs-20; }
.ex2  { @apply text-right fs-15; }
.ex3  { @apply text-right fs-10; }
.ex4  { @apply text-left fs-20; }
.ex5  { @apply text-left fs-15; }
.ex6  { @apply text-left fs-10; }
.ex7  { @apply text-left fs-25; }
.ex8  { @apply text-center fs-20; }
.ex9  { @apply text-center fs-15; }
.ex10 { @apply text-center fs-25; }

/* ===========================
   PAGE INTRO
   =========================== */
.page-intro {
    background-color: #dbe8f0;
    text-align: center;
    padding: 2rem 1rem;
    border-bottom: 1px solid #aac0cc;
}

.page-intro h1 {
    font-size: 2rem;
    color: #1a3c50;
}

/* ===========================
   HOME PAGE RUG GRID
   =========================== */
.rug-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .rug-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 960px;
        margin: 2rem auto;
    }
}

.rug-tile {
    background-color: #f3f6f8;
    border: 1px solid #ccd9e2;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 1em;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.rug-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.rug-tile img {
    width: 100%;
    height: auto;
    margin: 0 auto 1em;
    transition: transform 0.2s ease-in-out;
}

.rug-tile img:hover {
    transform: scale(1.05);
}

/* ===========================
   RUG DETAIL WRAPPER
   =========================== */
.rug-detail-wrapper {
    max-width: 900px;
    margin: 2rem auto;
    text-align: center;
}

.rug-detail-img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    transition: transform 0.2s ease-in-out;
}

.rug-detail-img:hover {
    transform: scale(1.05);
}

/* ===========================
   CARDS FOR EXHIBITION, STYLE, ETHNIC (Simplified)
   =========================== */
.rug-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 1rem 0;
}

.rug-card {
    background-color: #f3f6f8;
    border: 1px solid #ccd9e2;
    border-radius: 4px;
    padding: 0.4em 0.6em;
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5em;
    font-size: 0.9em;
}

.rug-card strong {
    display: inline;
    margin-right: 0.3em;
}

.rug-card a, .rug-card span {
    margin: 0;
}

@media (max-width: 600px) {
    .rug-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===========================
   MATERIALS & DESCRIPTION
   =========================== */
.rug-materials.ex6 {
    text-align: left;
    margin-top: 1rem;
    line-height: 1.4;
}

/* ===========================
   RESPONSIVE TYPOGRAPHY
   =========================== */
@media only screen and (max-width: 812px) {
    html {
        font-size: 125%;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}
</style>
