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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0fdf4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0.875rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb a {
    color: #059669;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #047857;
    text-decoration: underline;
}

.breadcrumb li:last-child {
    color: #6c757d;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Dropdown Menu Styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f3f4f6;
    color: #059669;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: #059669;
    background-color: #eff6ff;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    padding: 5rem 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(5, 150, 105, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(5, 150, 105, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: linear-gradient(45deg, rgba(5, 150, 105, 0.03) 0%, rgba(16, 185, 129, 0.02) 100%);
    transform: rotate(15deg);
    border-radius: 50px;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.7;
}

/* Generator Section */
.generator-section {
    padding: 4rem 0;
    background: white;
}

.generator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.generator-form h2,
.generator-preview h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
    font-weight: 600;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1fae5;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-options {
    margin: 2rem 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Preview Styles */
.preview-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.preview-paper {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    font-family: 'Times New Roman', serif;
    font-size: 12pt;
    line-height: 2;
    min-height: 300px;
    position: relative;
}

.running-header {
    position: absolute;
    top: 0.5in;
    right: 1in;
    font-size: 12pt;
    font-family: 'Times New Roman', serif;
}

.header-block {
    margin-top: 1in;
    margin-left: 1in;
    margin-right: 1in;
}

.header-block div {
    margin-bottom: 1em;
}

.paper-title {
    text-align: center;
    margin-top: 2em;
    font-weight: normal;
}

/* Export Options */
.export-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #059669;
    color: white;
}

.btn-primary:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-google {
    background: #4285f4;
    color: white;
    position: relative;
}

.btn-google:hover {
    background: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Guide Section */
.guide-section {
    padding: 4rem 0;
    background: #ecfdf5;
}

.guide-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
    font-weight: 700;
}

.guide-content {
    display: grid;
    gap: 2rem;
}

.guide-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.step-number {
    background: #059669;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-weight: 600;
}

.step-content p {
    color: #64748b;
    line-height: 1.7;
}

/* Info Section */
.info-section {
    padding: 4rem 0;
    background: white;
}

.info-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.info-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #059669;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.info-card p {
    color: #64748b;
    line-height: 1.7;
}

/* Benefits Section */
.benefits-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.benefits-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.benefit-item p {
    color: #64748b;
    line-height: 1.7;
}

/* Mistakes Section */
.mistakes-section {
    padding: 4rem 0;
    background: white;
}

.mistakes-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
    font-weight: 700;
}

.mistakes-content {
    display: grid;
    gap: 2rem;
}

.mistake-item {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 2rem;
}

.mistake-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #dc2626;
    font-weight: 600;
}

.mistake-item p {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.mistake-item p:last-child {
    color: #64748b;
    font-style: italic;
}

/* Resources Section */
.resources-section {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.resource-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.resource-card h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.resource-card h3 a {
    color: #059669;
    text-decoration: none;
    transition: color 0.2s;
}

.resource-card h3 a:hover {
    color: #047857;
    text-decoration: underline;
}

.resource-card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Citation Guide Styles */
.citation-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.citation-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #059669;
    transition: all 0.3s ease;
}

.citation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.citation-card h3 {
    color: #059669;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.citation-example {
    font-style: italic;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.citation-real {
    font-family: 'Times New Roman', serif;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.main-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.sidebar-card h3 {
    color: #059669;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tool-links, .article-links {
    list-style: none;
    padding: 0;
}

.tool-links li, .article-links li {
    margin-bottom: 0.5rem;
}

.tool-links a, .article-links a {
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.tool-links a:hover, .article-links a:hover {
    color: #059669;
    text-decoration: underline;
}

.citation-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.citation-section h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.citation-format {
    background: #e0f2fe;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #0284c7;
}

.citation-format strong {
    color: #0284c7;
}

.citation-example-box {
    background: #f0fdf4;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #059669;
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
}

.citation-example-box strong {
    color: #059669;
}

.citation-list {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.citation-list li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.works-cited-example {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-family: 'Times New Roman', serif;
    line-height: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.works-cited-example::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #0ea5e9);
    border-radius: 12px 12px 0 0;
}

.works-cited-example p {
    text-align: center;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

/* Base hanging indent style - for general use */
.hanging-indent {
    text-indent: -0.5in;
    margin-left: 0.5in;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #059669;
    transition: all 0.2s ease;
    line-height: 2;
}

.hanging-indent:hover {
    background: #f0fdf4;
    transform: translateX(2px);
}

/* Works Cited Guidelines Styling */
.citation-section .citation-list {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.citation-section .citation-list li {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #0ea5e9;
    transition: all 0.2s ease;
}

.citation-section .citation-list li:hover {
    background: #f0f9ff;
    transform: translateX(2px);
}

.citation-section .citation-list li::before {
    content: '✓';
    color: #059669;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Enhanced formatting requirements list */
.citation-section .citation-list {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
}

.citation-section .citation-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #0ea5e9);
    border-radius: 12px 12px 0 0;
}

.citation-section .citation-list li {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #059669;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.citation-section .citation-list li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(5, 150, 105, 0.05);
    transition: width 0.3s ease;
}

.citation-section .citation-list li:hover {
    background: #f0fdf4;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1);
}

.citation-section .citation-list li:hover::after {
    width: 100%;
}

.citation-section .citation-list li::before {
    content: '✓';
    color: #059669;
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Different colors for variety */
.citation-section .citation-list li:nth-child(2) {
    border-left-color: #0ea5e9;
}

.citation-section .citation-list li:nth-child(3) {
    border-left-color: #f59e0b;
}

.citation-section .citation-list li:nth-child(4) {
    border-left-color: #f59e0b;
}

.citation-section .citation-list li:nth-child(5) {
    border-left-color: #ef4444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .citation-types {
        grid-template-columns: 1fr;
    }
    
    /* Adjust hanging indent for mobile */
    .works-cited-example .hanging-indent {
        text-indent: -1rem;
        margin-left: 1rem;
        padding: 0.75rem 0.75rem 0.75rem 1.5rem;
    }
    
    .hanging-indent {
        text-indent: -0.3in;
        margin-left: 0.3in;
        padding: 0.5rem;
    }
}

/* Format Checker Styles */
.checker-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.checker-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #fff;
    color: #059669;
    border-bottom: 2px solid #059669;
}

.tab-btn:hover {
    background: #f3f4f6;
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.checker-form {
    max-width: 700px;
}

.checker-form .form-group {
    margin-bottom: 1.5rem;
}

.checker-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.checker-form input,
.checker-form textarea,
.checker-form select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.checker-form input:focus,
.checker-form textarea:focus,
.checker-form select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.checker-form textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.checker-form .btn {
    background: #059669;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.checker-form .btn:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.validation-result {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: none;
}

.validation-result.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.validation-result.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.validation-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
}

.result-item.success {
    background: #f0fdf4;
    color: #166534;
}

.result-item.error {
    background: #fef2f2;
    color: #dc2626;
}

.result-icon {
    font-size: 1rem;
}

.checklist-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.checklist-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checklist-item:hover {
    background: #f8fafc;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checklist-item input[type="checkbox"] {
    display: none;
}

.checklist-item input[type="checkbox"]:checked + .checkmark {
    background: #059669;
    border-color: #059669;
}

.checklist-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Template Styles */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.template-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.template-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.template-features ul {
    text-align: left;
    margin: 1rem 0;
    padding-left: 1rem;
}

.template-features li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.template-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    align-items: start;
}

.preview-container {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.preview-notes {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.preview-notes h3 {
    color: #059669;
    margin-bottom: 1rem;
}

.preview-notes ul {
    padding-left: 1.5rem;
}

.preview-notes li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Usage Steps Styling */
.usage-steps {
    margin: 3rem 0;
}

.usage-steps .step-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.usage-steps .step-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.usage-steps .step-item::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #059669, #0ea5e9);
}

/* Step-by-Step Guide Styles */
.step-container {
    margin: 2rem 0;
}

.step-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.step-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: #059669;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
}

.step-content h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.step-details ul, .step-details ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.step-details li {
    margin-bottom: 0.5rem;
}

.tip-box, .warning-box, .example-box {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.tip-box {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0c4a6e;
}

.warning-box {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.example-box {
    background: #f0fdf4;
    border-color: #059669;
    color: #065f46;
    font-family: 'Times New Roman', serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .template-preview {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .checker-tabs {
        flex-direction: column;
    }
}

/* Comparison Styles */
.comparison-table-container {
    overflow-x: auto;
    margin: 2rem 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e2e8f0;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.comparison-table tbody tr:hover {
    background: #f8fafc;
}

.usage-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.usage-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.usage-card h3 {
    color: #059669;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.usage-list {
    list-style: none;
    padding: 0;
}

.usage-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-left: 1.5rem;
}

.usage-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

.usage-note {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
    font-size: 0.9rem;
}

.header-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.format-example {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.format-example h3 {
    color: #059669;
    margin-bottom: 1.5rem;
    text-align: center;
}

.header-preview {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.mla-style, .chicago-style {
    font-family: 'Times New Roman', serif;
    line-height: 2;
    min-height: 200px;
    position: relative;
}

.title-page {
    text-align: center;
    padding: 2rem;
}

.title-content h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.format-notes {
    background: #f0fdf4;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #059669;
}

.format-notes h4 {
    color: #059669;
    margin-bottom: 0.5rem;
}

.format-notes ul {
    margin: 0;
    padding-left: 1.5rem;
}

.format-notes li {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.citation-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.citation-example {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.citation-example h3 {
    color: #059669;
    margin-bottom: 1rem;
}

.citation-content p {
    margin-bottom: 1rem;
}

.footnote {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.detailed-comparison {
    margin: 3rem 0;
}

.comparison-section {
    margin-bottom: 3rem;
}

.comparison-section h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.comparison-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.comparison-item h4 {
    color: #059669;
    margin-bottom: 1rem;
}

.comparison-item ol, .comparison-item ul {
    padding-left: 1.5rem;
}

.comparison-item li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.style-analysis {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.style-analysis h3 {
    color: #059669;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.pros, .cons {
    padding: 1rem;
    border-radius: 8px;
}

.pros {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.cons {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.pros h4 {
    color: #166534;
    margin-bottom: 0.75rem;
}

.cons h4 {
    color: #dc2626;
    margin-bottom: 0.75rem;
}

.pros ul, .cons ul {
    padding-left: 1.5rem;
    margin: 0;
}

.pros li, .cons li {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.decision-guide {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.decision-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.decision-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    max-width: 400px;
    width: 100%;
}

.decision-box h3 {
    color: #059669;
    margin-bottom: 0.5rem;
}

.decision-arrow {
    font-size: 2rem;
    color: #059669;
    font-weight: bold;
}

/* Formatting Requirements Styling */
.citation-section h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.citation-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #059669;
}

.citation-section h4 {
    color: #059669;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.citation-section h4::before {
    content: '📋';
    font-size: 1.2rem;
}

/* Enhanced sample Works Cited styling */
.works-cited-example {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-family: 'Times New Roman', serif;
    line-height: 2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.works-cited-example::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #0ea5e9, #f59e0b);
    border-radius: 12px 12px 0 0;
}

.works-cited-example::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23059669" viewBox="0 0 24 24"><path d="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z" /></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.1;
}

/* Sample entry styling improvements */
.works-cited-example .hanging-indent {
    position: relative;
    background: rgba(5, 150, 105, 0.02);
    border: 1px solid rgba(5, 150, 105, 0.1);
    margin-bottom: 1rem;
    padding: 1rem 1rem 1rem 2rem;
    border-radius: 8px;
    border-left: 4px solid #059669;
    transition: all 0.3s ease;
    text-indent: -1.5rem;
    margin-left: 1.5rem;
    line-height: 2;
}

.works-cited-example .hanging-indent:hover {
    background: rgba(5, 150, 105, 0.05);
    border-color: rgba(5, 150, 105, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1);
}

.works-cited-example .hanging-indent:nth-child(even) {
    border-left-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.02);
    border-color: rgba(14, 165, 233, 0.1);
}

.works-cited-example .hanging-indent:nth-child(even):hover {
    background: rgba(14, 165, 233, 0.05);
    border-color: rgba(14, 165, 233, 0.2);
}

.works-cited-example .hanging-indent:nth-child(3n) {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.02);
    border-color: rgba(245, 158, 11, 0.1);
}

.works-cited-example .hanging-indent:nth-child(3n):hover {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
}

/* Responsive Design for Comparison Pages */
@media (max-width: 768px) {
    .usage-comparison,
    .header-comparison,
    .citation-comparison,
    .comparison-grid,
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}

/* FAQ Section Styling */
.faq-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-item {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #059669;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left-color: #047857;
}

.faq-item h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item h3::before {
    content: '❓';
    font-size: 1.2rem;
}

.faq-item p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Customization Guide Styling */
.customization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.custom-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    border-top: 4px solid #059669;
}

.custom-section h3 {
    color: #059669;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-section h3::before {
    content: '⚙️';
    font-size: 1.2rem;
}

.custom-section p {
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.custom-example {
    background: #f0fdf4;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #059669;
    margin: 1rem 0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
}

.custom-example p {
    margin-bottom: 0.5rem;
}

.custom-example strong {
    color: #059669;
}

.custom-example em {
    color: #6b7280;
    font-style: italic;
}

.custom-example a {
    color: #0ea5e9;
    text-decoration: none;
}

.custom-example a:hover {
    text-decoration: underline;
}

/* Enhanced Decision Guide Styling */
.decision-guide {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #059669 0%, #0ea5e9 100%);
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.decision-guide::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.decision-guide h2 {
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.decision-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.decision-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.decision-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.decision-box h3 {
    color: #059669;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.decision-box h3::before {
    content: '🎯';
    font-size: 1.4rem;
}

.decision-box p {
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.decision-arrow {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Article Image Styling */
.article-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    object-fit: cover;
    background: #f8fafc;
}

.article-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #f59e0b;
}

/* Article Content Styling */
.article-content {
    padding: 3rem 0;
    background: #fff;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    color: #059669;
    margin: 2.5rem 0 1.5rem 0;
    font-size: 1.5rem;
    border-bottom: 3px solid #f59e0b;
    padding-bottom: 0.5rem;
}

.article-body h3 {
    color: #0ea5e9;
    margin: 2rem 0 1rem 0;
    font-size: 1.25rem;
}

/* Article Header Styling */
.article-header {
    background: linear-gradient(135deg, #059669 0%, #0ea5e9 50%, #f59e0b 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.article-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article-meta {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.article-date, .article-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0 0.5rem;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .article-image {
        margin: 1.5rem auto;
        border-radius: 8px;
        max-width: 100%;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .article-body {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Mobile Navigation Enhancement */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #059669;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        position: relative;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 12px 12px;
        padding: 1rem 0;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
        min-height: 48px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: #f0fdf4;
        color: #059669;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .generator-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .preview-paper {
        padding: 1rem;
        font-size: 10pt;
    }
    
    .export-options {
        justify-content: center;
    }
    
    .guide-step {
        flex-direction: column;
        text-align: center;
    }
    
    .info-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Mobile Touch Target Optimization */
@media (max-width: 768px) {
    .btn {
        min-height: 48px;
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .faq-question {
        min-height: 48px;
        padding: 1rem 1.5rem;
    }
    
    .faq-toggle {
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }
    
    /* Improve preview readability on mobile */
    .preview-paper {
        font-size: 11pt;
        padding: 1.5rem;
        line-height: 1.8;
    }
    
    .running-header {
        font-size: 11pt;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .generator-section,
    .guide-section,
    .info-section,
    .benefits-section,
    .mistakes-section {
        padding: 3rem 0;
    }
    
    .preview-container {
        padding: 1.5rem;
    }
    
    .export-options {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
    }
    
    /* Better mobile form experience */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }
    
    /* Improve mobile preview */
    .preview-paper {
        font-size: 10pt;
        padding: 1rem;
        min-height: 250px;
    }
}

/* Example Page Styles */
.examples-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.examples-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 4rem;
    font-weight: 700;
}

.examples-container {
    display: grid;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.example-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.example-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

.example-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
}

.example-header {
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    text-align: center;
    position: relative;
}

.example-header h3 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.example-header p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.example-preview {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #fafafa 0%, #f1f5f9 100%);
    position: relative;
}

.example-preview::before {
    content: 'Preview';
    position: absolute;
    top: 1rem;
    left: 2rem;
    background: #059669;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.paper-sample {
    background: #ffffff;
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    font-family: 'Times New Roman', Times, serif;
    line-height: 2;
    font-size: 12pt;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.3s ease;
}

.paper-sample:hover {
    transform: perspective(1000px) rotateX(0deg);
}

.running-header {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 12pt;
    color: #333;
}

.header-block {
    margin-bottom: 2rem;
}

.header-block div {
    margin-bottom: 0.5rem;
}

.student-name,
.instructor-name,
.course,
.date {
    font-size: 12pt;
    color: #333;
}

.paper-title {
    text-align: center;
    font-weight: normal;
    font-size: 12pt;
    margin-bottom: 2rem;
    color: #333;
}

.paper-content {
    color: #333;
    font-size: 12pt;
    line-height: 2;
}

.paper-content p {
    margin-bottom: 1rem;
    text-indent: 0.5in;
}

.example-details {
    padding: 2rem;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.example-details h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.example-details ul {
    list-style: none;
    padding: 0;
}

.example-details li {
    padding: 0.5rem 0;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.example-details li:last-child {
    border-bottom: none;
}

/* Tips Section */
.tips-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.tips-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 3rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tip-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tip-card h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tip-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Mistakes Section */
.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mistake-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
}

.mistake-card.wrong {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.mistake-card.correct {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.mistake-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.mistake-example {
    background: #ffffff;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Times New Roman', Times, serif;
    line-height: 2;
    font-size: 12pt;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.mistake-highlight {
    background-color: #fef3c7;
    padding: 2px 4px;
    border-radius: 3px;
}

.mistake-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-large {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

/* Responsive Design for Example Page */
@media (max-width: 768px) {
    .examples-section h2,
    .tips-section h2 {
        font-size: 2rem;
    }
    
    .paper-sample {
        padding: 1rem;
        font-size: 10pt;
    }
    
    .running-header {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 10pt;
    }
    
    .tips-grid,
    .mistakes-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .example-header,
    .example-preview,
    .example-details,
    .tip-card,
    .mistake-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .paper-sample {
        padding: 0.5rem;
        font-size: 9pt;
    }
    
    .example-header h3 {
        font-size: 1.2rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .btn-large {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }
}
