/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.2rem 0;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    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);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.template-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.template-card .image-container {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.template-card img {
    width: 100%;
    height: 280px;
    /* Fixed height for consistent card sizing */
    object-fit: cover;
    /* Changed from 'contain' to 'cover' for better filling */
    object-position: top center;
    /* Shows the top part of resume (most important) */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
    /* Fallback background if image loads slowly */
    border: 1px solid #e9ecef;
    /* Subtle border definition */
}

.template-card:hover img {
    transform: scale(1.05);
}

.template-card .image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.1) 50%, transparent 51%);
    pointer-events: none;
}

/* Mobile screens - show upper part only 200,160 */
@media (max-width: 768px) {
    .template-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .template-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
    }
}

.template-card h2 {
    color: #2c3e50;
    margin: 20px 20px 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.template-card p {
    color: #666;
    margin: 0 20px 20px;
    line-height: 1.5;
}

.template-link {
    display: block;
    margin-top: auto;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.template-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Sidebar - AdSense Multi-Ad Layout */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}



/* Ad Slots - AdSense Optimized */
.ad-slot {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 10px;
    margin: 25px 0;
    text-align: center;
    border-radius: 8px;
    color: #6c757d;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot::before {
    content: 'Advertisement';
    font-size: 0.7rem;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Top Banner Ad - 728x90 Leaderboard */
.ad-slot.top-banner {
    width: 100%;
    height: 90px;
    max-width: 728px;
    margin: 20px auto;
    background: #f1f3f4;
    border: 1px solid #dadce0;
}

.ad-slot.top-banner::before {
    content: 'AdSense - 728x90 Leaderboard';
}

/* Sidebar AdSense Slots */
.sidebar .ad-slot {
    width: 100%;
    margin: 0;
    background: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 8px;
}

/* Medium Rectangle - 300x250 */
.sidebar .ad-slot.medium-rectangle {
    height: 250px;
    max-width: 300px;
}

.sidebar .ad-slot.medium-rectangle::before {
    content: 'AdSense - 300x250 Medium Rectangle';
}

/* Large Rectangle - 336x280 */
.sidebar .ad-slot.large-rectangle {
    height: 280px;
    max-width: 336px;
}

.sidebar .ad-slot.large-rectangle::before {
    content: 'AdSense - 336x280 Large Rectangle';
}

/* Skyscraper - 160x600 */
.sidebar .ad-slot.skyscraper {
    height: 600px;
    max-width: 160px;
}

.sidebar .ad-slot.skyscraper::before {
    content: 'AdSense - 160x600 Skyscraper';
}

/* Sidebar Sticky Container */
.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 50;
    margin-bottom: 30px;
}

/* Wide Skyscraper - 300x600 */
.sidebar .ad-slot.wide-skyscraper {
    height: 600px;
    max-width: 300px;
    margin: 0;
}

.sidebar .ad-slot.wide-skyscraper::before {
    content: 'AdSense - 300x600 Wide Skyscraper';
}

/* Square - 250x250 */
.sidebar .ad-slot.square {
    height: 250px;
    max-width: 250px;
}

.sidebar .ad-slot.square::before {
    content: 'AdSense - 250x250 Square';
}

/* Small Square - 200x200 */
.sidebar .ad-slot.small-square {
    height: 200px;
    max-width: 200px;
}

.sidebar .ad-slot.small-square::before {
    content: 'AdSense - 200x200 Small Square';
}

/* Mobile Banner - 320x50 */
.ad-slot.mobile-banner {
    height: 50px;
    max-width: 320px;
    margin: 15px auto;
    display: none;
}

.ad-slot.mobile-banner::before {
    content: 'AdSense - 320x50 Mobile Banner';
}

/* Footer Ad Slot - 728x90 */
.footer-content .ad-slot {
    width: 100%;
    height: 90px;
    max-width: 728px;
    margin: 20px auto;
    background: #f1f3f4;
    border: 1px solid #dadce0;
}

.footer-content .ad-slot::before {
    content: 'AdSense - 728x90 Footer Banner';
}

/* AdSense Responsive Container */
.adsense-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* AdSense Label */
.ad-label {
    font-size: 0.7rem;
    color: #70757a;
    text-align: center;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem 0;
    margin-top: 4rem;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.footer-content p {
    color: #666;
    font-weight: 500;
}

/* About Page Styles */
.about-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.about-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.about-intro h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-section,
.story-section,
.expertise-section,
.commitment-section,
.community-section {
    margin-bottom: 3rem;
}

.mission-section h2,
.story-section h2,
.expertise-section h2,
.commitment-section h2,
.community-section h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.value-card,
.expertise-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.value-card:hover,
.expertise-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.value-card h3,
.expertise-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.commitment-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 2rem;
}

.commitment-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

.quick-stats {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    text-align: center;
}

.quick-stats h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.stat-item {
    margin-bottom: 1.5rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.testimonial {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.testimonial h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.testimonial blockquote {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial cite {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contact Page Styles */
.contact-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.email-address {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.email-description {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.time-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.help-category {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.help-category h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.help-category ul {
    list-style: none;
    padding: 0;
}

.help-category li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.help-category li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

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

.tip-card {
    background: rgba(39, 174, 96, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #27ae60;
}

.tip-card h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

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

.resource-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.resource-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-hours {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.contact-hours h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hours-info p {
    margin-bottom: 1rem;
    color: #666;
}

.note {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

.quick-links {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 16px;
}

.quick-links h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.quick-links ul {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 0.8rem;
}

.quick-links a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #2c3e50;
}

/* Page Titles */
main h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Category Page Specific Styles */
.category-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    text-align: center;
}

.category-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.category-intro {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.stat-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.template-benefits {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.template-benefits h2 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

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

.benefit-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-card h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

.templates-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.templates-section h2 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.templates-section>p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.template-card.featured {
    position: relative;
    border: 2px solid #667eea;
}

.template-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.template-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.template-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.template-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.template-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.template-stats-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.download-count {
    font-weight: 500;
}

.rating {
    color: #f39c12;
    font-weight: 500;
}

.latex-guide {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.latex-guide h2 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.guide-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.guide-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.guide-section ul {
    list-style: none;
    padding: 0;
}

.guide-section li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 2rem;
    color: #666;
}

.guide-section li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

.faq-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.faq-section h2 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.faq-item h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

.templates-collection {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.templates-collection h2 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.templates-collection>p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cover-letter-guide {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.cover-letter-guide h2 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 2fr 1fr;
        gap: 25px;
    }

    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .sidebar-sticky {
        position: -webkit-sticky;
        position: sticky;
        top: 100px;
        z-index: 50;
        margin-bottom: 20px;
    }

    .sidebar .ad-slot.wide-skyscraper,
    .sidebar .ad-slot.skyscraper {
        height: 300px;
    }

    .sidebar .ad-slot.wide-skyscraper::before {
        content: 'AdSense - 300x300 Square';
    }

    .sidebar .ad-slot.skyscraper::before {
        content: 'AdSense - 250x250 Square';
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .container {
        grid-template-columns: 1.8fr 1fr;
        gap: 20px;
    }

    .sidebar-sticky {
        position: -webkit-sticky;
        position: sticky;
        top: 100px;
        z-index: 50;
        margin-bottom: 15px;
    }

    .sidebar .ad-slot.wide-skyscraper,
    .sidebar .ad-slot.skyscraper {
        height: 250px;
    }

    .sidebar .ad-slot.wide-skyscraper::before {
        content: 'AdSense - 250x250 Square';
    }

    .sidebar .ad-slot.skyscraper::before {
        content: 'AdSense - 200x200 Square';
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        width: 200px;
        text-align: center;
        border-radius: 12px;
        background: rgba(102, 126, 234, 0.05);
        border: 1px solid rgba(102, 126, 234, 0.1);
    }

    .nav-links a:hover {
        background: rgba(102, 126, 234, 0.1);
        transform: scale(1.05);
    }

    .category-grid,
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    main h1 {
        font-size: 2rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .category-header h1 {
        font-size: 2.2rem;
    }

    .category-stats {
        gap: 1rem;
    }

    .stat-badge {
        min-width: 100px;
        padding: 0.8rem 1rem;
    }

    .benefits-grid,
    .guide-content,
    .faq-grid,
    .faq-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-header,
    .template-benefits,
    .templates-section,
    .templates-collection,
    .latex-guide,
    .cover-letter-guide,
    .faq-section {
        padding: 2rem;
    }

    .template-card .image-container {
        height: 200px;
    }

    /* Move sidebar to bottom on mobile */
    .sidebar {
        order: 1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 2px solid #e9ecef;
    }

    .sidebar .ad-slot {
        max-width: 100%;
        height: 200px;
    }

    .sidebar .ad-slot.wide-skyscraper,
    .sidebar .ad-slot.skyscraper {
        height: 200px;
    }

    .sidebar .ad-slot.medium-rectangle,
    .sidebar .ad-slot.large-rectangle,
    .sidebar .ad-slot.square,
    .sidebar .ad-slot.small-square,
    .sidebar .ad-slot.wide-skyscraper,
    .sidebar .ad-slot.skyscraper {
        height: 200px;
    }

    .sidebar .ad-slot.medium-rectangle::before {
        content: 'AdSense - 320x200 Mobile';
    }

    .sidebar .ad-slot.large-rectangle::before {
        content: 'AdSense - 320x200 Mobile';
    }

    .sidebar .ad-slot.square::before {
        content: 'AdSense - 320x200 Mobile';
    }

    .sidebar .ad-slot.small-square::before {
        content: 'AdSense - 320x200 Mobile';
    }

    .sidebar .ad-slot.wide-skyscraper::before,
    .sidebar .ad-slot.skyscraper::before {
        content: 'AdSense - 320x200 Mobile';
    }

    .ad-slot.top-banner {
        display: none;
    }

    .ad-slot.mobile-banner {
        display: flex;
    }
}

@media (max-width: 480px) {

    .category-card,
    .template-card {
        padding: 20px;
    }

    main h1 {
        font-size: 1.8rem;
    }

    .category-header h1 {
        font-size: 1.8rem;
    }

    .category-intro {
        font-size: 1rem;
    }

    .category-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .stat-badge {
        width: 100%;
        max-width: 200px;
    }

    .template-benefits h2,
    .templates-section h2,
    .templates-collection h2,
    .latex-guide h2,
    .cover-letter-guide h2,
    .faq-section h2 {
        font-size: 1.6rem;
    }

    .category-header,
    .template-benefits,
    .templates-section,
    .templates-collection,
    .latex-guide,
    .cover-letter-guide,
    .faq-section {
        padding: 1.5rem;
    }

    .benefit-card,
    .faq-item {
        padding: 1.5rem;
    }

    .template-card .image-container {
        height: 180px;
    }

    /* Mobile-specific sidebar adjustments */
    .sidebar {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }

    .sidebar .ad-slot {
        height: 180px;
        margin: 0;
    }

    .container {
        padding: 10px;
    }

    .template-content {
        padding: 15px;
    }
}