:root {
    /* Primary Colors */
    --primary-black: #000000;
    --primary-white: #ffffff;
    
    /* Grayscale Palette */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Accent Colors (used sparingly) */
    --accent-red: #dc2626;
    --accent-blue: #2563eb;
    --accent-red-hover: #b91c1c;
    --accent-blue-hover: #1d4ed8;
    --accent-yellow: #fbbf24;
    
    /* Functional Colors */
    --success-green: #16a34a;
    --border-color: var(--gray-300);
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-size-xxs: 0.5rem;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles for Resources Pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comfortaa', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: var(--line-height-normal);
    color: var(--gray-900);
    background: var(--gray-50);
    padding: var(--space-20) var(--space-8);
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--primary-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: var(--space-8);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-white);
    background-color: var(--primary-black);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: var(--space-6);
    transition: var(--transition);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.back-link:hover {
    color: var(--primary-white);
    background-color: var(--gray-800);
    transform: translateX(-2px);
    box-shadow: var(--shadow-medium);
}

.back-link i {
    font-size: var(--font-size-sm);
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: var(--space-8);
    padding: var(--space-8) 0 var(--space-6);
    position: relative;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-white) 100%);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-black);
}

.header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.header h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: var(--space-4);
    line-height: var(--line-height-tight);
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.header p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
    position: relative;
    z-index: 2;
    font-weight: 500;
}

/* Guidelines Grid - Class Rules and Advice */
.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.guideline-card {
    background: var(--gray-50);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--space-6);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.guideline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-black);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guideline-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
    background: var(--primary-white);
}

.guideline-card:hover::before {
    opacity: 1;
}

.guideline-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-black);
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    font-size: var(--font-size-xl);
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.guideline-card:hover .guideline-icon {
    background: var(--primary-black);
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.guideline-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--primary-black);
    line-height: var(--line-height-tight);
}

.guideline-card p {
    color: var(--gray-600);
    line-height: var(--line-height-relaxed);
}

/* Tips Section - Introduce Yourself */
.tips-section {
    margin-bottom: var(--space-8);
}

.tips-list {
    list-style: none;
    counter-reset: tip-counter;
    margin-top: var(--space-6);
}

.tip-item {
    counter-increment: tip-counter;
    margin-bottom: var(--space-3);
    background: var(--primary-white);
    padding: var(--space-3);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    border-left: 2px solid var(--primary-black);
}

.tip-item:hover {
    box-shadow: var(--shadow-light);
}

.tip-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.tip-title i {
    color: var(--primary-black);
    font-size: var(--font-size-xl);
    width: 20px;
    text-align: center;
}

.example {
    background: var(--gray-100);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--border-radius);
    font-style: italic;
    color: var(--gray-700);
    margin-top: var(--space-2);
    border-left: 2px solid var(--gray-400);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

.example::before {
    content: "\f075"; /* FontAwesome speech bubble */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: var(--space-2);
    font-style: normal;
    color: var(--gray-500);
}

.example + .example {
    margin-top: var(--space-1);
}

.example:hover {
    background: var(--gray-50);
}

/* Example OR divider */
.example-or {
    text-align: center;
    font-weight: 700;
    color: var(--gray-500);
    font-size: var(--font-size-xs);
    margin: var(--space-2) 0;
    position: relative;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.example-or::before,
.example-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--gray-300);
}

.example-or::before {
    left: 0;
}

.example-or::after {
    right: 0;
}

/* Separator */
.separator {
    text-align: center;
    margin: var(--space-6) 0;
    color: var(--gray-500);
    font-size: var(--font-size-base);
    position: relative;
}

.separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-300);
}

.separator::after {
    content: '•••';
    background: var(--primary-white);
    padding: 0 var(--space-3);
    color: var(--gray-400);
    position: relative;
    z-index: 1;
}

/* Full Example Section */
.full-example {
    background: var(--gray-800);
    color: var(--primary-white);
    padding: var(--space-6);
    border-radius: var(--border-radius);
    margin-top: var(--space-6);
    border: 1px solid var(--gray-700);
}

.full-example h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-3);
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.full-example h3 i {
    color: var(--primary-white);
    font-size: var(--font-size-lg);
}

.full-example p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    font-style: italic;
    text-align: center;
    background: var(--gray-700);
    padding: var(--space-3);
    border-radius: var(--border-radius);
    border-left: 2px solid var(--gray-600);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: var(--space-4);
    }
    
    .container {
        padding: var(--space-6);
    }
    
    .header {
        padding: var(--space-6) 0 var(--space-4);
        margin-bottom: var(--space-6);
    }
    
    .header h1 {
        font-size: var(--font-size-2xl);
    }
    
    .header h1::after {
        width: 40px;
        height: 2px;
        bottom: -6px;
    }
    
    .header p {
        font-size: var(--font-size-base);
    }
    
    .guideline-card {
        padding: var(--space-4);
    }
    
    .tip-item {
        padding: var(--space-4);
    }
    
    .full-example {
        padding: var(--space-6);
    }
    
    .full-example h3 {
        font-size: var(--font-size-lg);
    }
    
    .full-example p {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--space-4);
    }
    
    .header {
        padding: var(--space-4) 0;
    }
    
    .header h1 {
        font-size: var(--font-size-xl);
    }
    
    .header h1::after {
        width: 30px;
        height: 2px;
        bottom: -4px;
    }
    
    .header p {
        font-size: var(--font-size-sm);
    }
    
    .guidelines-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .guideline-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
    
    .tip-title::before {
        width: 24px;
        height: 24px;
        font-size: var(--font-size-xs);
    }
}
