:root {
    --background: #E0E5EC;
    --text-color: #333;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(0, 0, 0, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.6);
}
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: var(--background);
    color: var(--text-color);
    padding: 20px;
    box-sizing: border-box;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
h1 {
    font-weight: 600;
    font-size: clamp(1.5rem, 5vw, 3rem);

}

 /* 3. THE ENGLISH MEDIUM SUBTITLE */
        .medium-tag{
            display: block;           /* Forces it to its own line */
            font-size: 0.45em;        /* This is 45% of the main title size */
            font-weight: 700;
            color: #007bff;           /* Professional Blue */
            text-transform: uppercase;/* Makes it look like a formal label */
            margin-top: 15px;
            letter-spacing: 2px;      /* Professional spacing */

margin-left: 2px; /* This pushes the 'E' to the right so it lines up with the 'C' */

        }

.page-description {
    /* 1. RESPONSIVE FONT SIZE */
    /* Never smaller than 14px, grows with screen, maxes at 17px */
    font-size: clamp(0.875rem, 1.5vw + 0.5rem, 1.06rem);

    /* 2. READABILITY & SPACING */
    /* Essential for long paragraphs: adds space between lines */
    line-height: 1.6;

    /* Natural letter spacing (not too wide, not too tight) */
    letter-spacing: -0.011em;

    /* Slightly more space between words for easier scanning */
    word-spacing: 0.5px;

    /* 3. COLOR & WEIGHT */
    /* A soft charcoal grey is easier to read than pure black */
    color: #4b5563;
    font-weight: 400;

    /* 4. LAYOUT & ALIGNMENT */
    text-align: left;

    /* Matches the max-width of header/search bar for perfect alignment */
    max-width: 800px;

    /* Space above (from English Medium) and below (to Search Bar) */
    margin-top: 12px;
    margin-bottom: 28px;

    /* Centers the block to align with the rest of the page components */
    margin-left: auto;
    margin-right: auto;
}

/* For SEO: if you use <strong> tags inside the description,
   this makes them look bold but clean */
.paper-description strong {
    font-weight: 600;
    color: #1a1a1a;
}

.back-button {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    font-family: inherit;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
}
.back-button:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}
.search-container {
    margin-bottom: 40px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
#search-bar {
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-size: 1em;
    background-color: var(--glass-bg);
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
.content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.paper-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    aspect-ratio: 1 / 1;
    text-decoration: none;
}
.paper-card:hover {
    transform: translateY(-5px);
}
.paper-title {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.0em;
}
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.download-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: block;
}
.download-btn:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9em;
    padding: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

footer a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 10px;
    white-space: nowrap;
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-color);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    font-size: 20px;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    justify-content: center;
    align-items: center;
}

#scrollToTopBtn:hover {
    background: var(--hover-bg);
    transform: translateY(-5px);
}
