/* 
   Typography CSS File for Vasudharini Research Foundation
   This file contains typography-specific styles
*/

/* Base Typography */
body {
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    line-height: 1.6;
    color: var(--dark);
}

/* Add this to your typography.css file */

/* Text justification for all paragraphs */
p {
    text-align: justify;
}

/* Make sure headings remain centered where appropriate */
.section-heading p,
.hero-content p,
.text-center p {
    text-align: center;
}

/* Keeping some specific elements with original alignment */
.footer p,
.meta-info p,
.alert p {
    text-align: left;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(#ffffff);
}

h1 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: var(--font-size-h3);
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-sm);
}

h5 {
    font-size: var(--font-size-h5);
    margin-bottom: var(--spacing-xs);
}

h6 {
    font-size: var(--font-size-h6);
    margin-bottom: var(--spacing-xs);
}

/* Paragraphs */
p {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-body);
    line-height: 1.7;
}

p:last-child {
    margin-bottom: 0;
}

/* Lists */
ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

li {
    margin-bottom: var(--spacing-xs);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Blockquotes */
blockquote {
    position: relative;
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: rgba(0, 153, 204, 0.05);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
}

blockquote p {
    position: relative;
    font-size: var(--font-size-h5);
    line-height: 1.6;
    color: var(--gray-dark);
}

blockquote cite {
    display: block;
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-small);
    font-style: normal;
    color: var(--gray);
}

/* Text utilities */
.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-dark {
    color: var(--dark);
}

.text-gray {
    color: var(--gray);
}

.text-light {
    color: var(--light);
}

.text-white {
    color: var(--white);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-lowercase {
    text-transform: lowercase;
}

.text-capitalize {
    text-transform: capitalize;
}

.text-bold {
    font-weight: 700;
}

.text-medium {
    font-weight: 500;
}

.text-normal {
    font-weight: 400;
}

.text-light-weight {
    font-weight: 300;
}

.text-italic {
    font-style: italic;
}

.text-underline {
    text-decoration: underline;
}

.text-small {
    font-size: var(--font-size-small);
}

.text-xs {
    font-size: var(--font-size-xs);
}

.text-large {
    font-size: var(--font-size-h5);
}

.text-xl {
    font-size: var(--font-size-h4);
}

.text-xxl {
    font-size: var(--font-size-h3);
}

/* Section Headings */
.section-heading {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-heading h2 {
    position: relative;
    margin-bottom: var(--spacing-xs);
    color: var(--dark);
}

.section-heading p {
    color: var(--gray-dark);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: var(--font-size-h6);
}

.heading-underline {
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0 auto var(--spacing-sm);
}

.section-heading.text-left {
    text-align: left;
}

.section-heading.text-left .heading-underline {
    margin-left: 0;
}

.section-heading.text-right {
    text-align: right;
}

.section-heading.text-right .heading-underline {
    margin-right: 0;
}

/* Lead Text */
.lead {
    font-size: var(--font-size-h5);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
}

/* Featured Text */
.featured-text {
    font-size: var(--font-size-h3);
    line-height: 1.4;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 500;
}

/* Code & Pre */
code {
    font-family: Monaco, Consolas, 'Courier New', monospace;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 5px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

pre {
    font-family: Monaco, Consolas, 'Courier New', monospace;
    background-color: rgba(0, 0, 0, 0.05);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
}

pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-md);
}

th {
    background-color: var(--primary-light);
    color: var(--white);
    font-weight: 500;
    text-align: left;
    padding: var(--spacing-xs) var(--spacing-sm);
}

td {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-bottom: 1px solid var(--gray-light);
}

tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Animation for text elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-heading.animate,
.animate-text {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Typography */
@media (max-width: 991px) {
    :root {
        --font-size-h1: 2.75rem;
        --font-size-h2: 2.25rem;
        --font-size-h3: 1.5rem;
        --font-size-h4: 1.35rem;
        --font-size-h5: 1.15rem;
    }
    
    .lead {
        font-size: var(--font-size-h6);
    }
    
    .featured-text {
        font-size: var(--font-size-h4);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-h1: 2.5rem;
        --font-size-h2: 2rem;
        --font-size-h3: 1.35rem;
        --font-size-h4: 1.25rem;
        --font-size-h5: 1.1rem;
        --font-size-body: 0.95rem;
    }
}

@media (max-width: 576px) {
    :root {
        --font-size-h1: 2.25rem;
        --font-size-h2: 1.75rem;
        --font-size-h3: 1.25rem;
        --font-size-h4: 1.1rem;
        --font-size-h5: 1rem;
    }
    
    blockquote p {
        font-size: var(--font-size-body);
    }
}