/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

:root {
    --primary-color: #d4a574;
    --secondary-color: #c9a96b;
    --accent-color: #8b6f47;
    --text-color: #2c2416;
    --bg-color: #fefbf7;
    --light-bg: #f5f1eb;
    --card-bg: #ffffff;
    --border-color: #e8ddd4;
    --hover-color: #b8935f;
    --shadow-soft: 0 4px 12px rgba(212, 165, 116, 0.15);
    --shadow-medium: 0 6px 20px rgba(212, 165, 116, 0.2);
    --font-main: 'Georgia', 'Times New Roman', serif;
    --font-heading: 'Palatino Linotype', 'Book Antiqua', serif;
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, #fefbf7 0%, #f5f1eb 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100%;
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.site-header {
    background: linear-gradient(180deg, rgba(254, 251, 247, 0.98) 0%, rgba(245, 241, 235, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--primary-color);
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo {
    text-decoration: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.logo:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(139, 111, 71, 0.1);
    transition: color 0.3s ease;
    margin: 0;
    line-height: 1;
}

.logo:hover h1 {
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.main-nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    left: 0;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Breadcrumbs removed */

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 2rem 0;
    margin-top: 80px;
}

/* Typography */
h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin: 0 0 1rem 0;
    color: var(--accent-color);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
    margin: 1rem 0 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.lead {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(201, 169, 107, 0.05) 100%);
    border-radius: 16px;
    margin-bottom: 4rem;
    border: 2px dashed var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item span {
    display: block;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.card:hover::before {
    transform: scaleX(1);
}

.card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card img {
    width: 100%;
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.card-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.card-content h3 {
    margin: 0 0 0.5rem;
    color: var(--primary-color);
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.card:hover .card-link::after {
    width: 100%;
}

/* Category Pages */
.category-list {
    margin: 2rem 0;
}

.category-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.category-item:nth-child(even) {
    direction: rtl;
}

.category-item:nth-child(even) > * {
    direction: ltr;
}

.category-content h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.category-content h2 a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.category-content h2 a:hover::after {
    width: 100%;
}

.category-content h2 a:hover {
    color: var(--hover-color);
}

.category-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    display: block;
}

/* Project Pages */
.project-page {
    max-width: 900px;
    margin: 0 auto;
}

.project-intro {
    font-size: 1.15rem;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(201, 169, 107, 0.05) 100%);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    line-height: 1.8;
}

.project-meta {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 12px;
    flex-wrap: wrap;
    border: 2px solid var(--border-color);
}

.meta-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.meta-item strong {
    color: var(--accent-color);
    font-weight: 600;
}

.materials-checklist {
    list-style: none;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.section-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}

.section-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.section-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    display: block;
}

@media (max-width: 768px) {
    .section-with-image {
        grid-template-columns: 1fr;
    }
}

.materials-checklist li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.materials-checklist li:last-child {
    border-bottom: none;
}

.step {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.08) 0%, rgba(201, 169, 107, 0.05) 100%);
    border-left: 5px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-medium);
}

.step h3,
.step h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.step p {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.common-mistakes {
    list-style: none;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 243, 205, 0.8) 0%, rgba(255, 234, 167, 0.6) 100%);
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 2px solid #ffeaa7;
    box-shadow: var(--shadow-soft);
}

.common-mistakes li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 234, 167, 0.5);
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.common-mistakes li:last-child {
    border-bottom: none;
}

.common-mistakes strong {
    color: #856404;
    font-weight: 600;
}

/* Resources Table */
.resources-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: var(--shadow-medium);
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.resources-table th,
.resources-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.resources-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.resources-table th,
.resources-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.resources-table tbody tr:hover {
    background: var(--light-bg);
    transition: background 0.3s ease;
}

/* Difficulty Levels */
.difficulty-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.level-item {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 12px;
    border-top: 4px solid var(--secondary-color);
    border: 2px solid var(--border-color);
    border-top: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.level-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}

.level-item p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.7;
}

/* Plan Schedule */
.plan-schedule {
    margin: 2rem 0;
}

.plan-week {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.plan-week ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.plan-week li {
    margin: 0.5rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Methods List */
.methods-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.method-item {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.method-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.method-item p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.7;
}

/* Folder Structure */
.folder-structure {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 1.5rem 0;
    border: 2px solid #1a1a1a;
    max-width: 100%;
    box-sizing: border-box;
}

.folder-structure pre {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.folder-structure pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.folder-structure code {
    color: #a8e6cf;
}

/* Template Example */
.template-example {
    margin: 2rem 0;
}

.template-example pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    font-size: 0.9rem;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    box-sizing: border-box;
}

/* Projects Listing */
.projects-listing {
    margin: 2rem 0;
}

.project-item {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.project-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.project-item p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.7;
}

.project-item h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.project-item h2 a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.project-item h2 a:hover::after {
    width: 100%;
}

.project-item h2 a:hover {
    color: var(--hover-color);
}

.project-meta {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
}

.project-meta a {
    color: var(--primary-color);
}

/* Blog */
.blog-listing {
    margin: 2rem 0;
}

.blog-card {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.blog-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.7;
}

.blog-card h2 a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: var(--hover-color);
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
}

.blog-article {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
}

/* FAQ */
.faq-list {
    margin: 2rem 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1.8rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.faq-item h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.faq-item h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.faq-item h2 a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.faq-item h2 a:hover::after {
    width: 100%;
}

.faq-item h2 a:hover {
    color: var(--hover-color);
}

.faq-answer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.faq-answer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.faq-answer a:hover {
    color: var(--hover-color);
    text-decoration: none;
}

.faq-answer a:hover::after {
    width: 100%;
}

/* Content Page */
.content-page {
    max-width: 900px;
    margin: 0 auto;
}

.content-page section {
    margin: 3rem 0;
}

.content-page section:first-of-type {
    margin-top: 0;
}

.content-page p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-page h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.content-page h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-page ul,
.content-page ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    line-height: 1.8;
}

.content-page li {
    margin: 0.75rem 0;
    line-height: 1.7;
}

.content-page ul li::marker {
    color: var(--primary-color);
}

.content-page ol li::marker {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.form-group-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.form-group-checkbox label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.5;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(212, 165, 116, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--hover-color) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(212, 165, 116, 0.4);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-link {
    background: none;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    position: relative;
    display: inline-block;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--hover-color);
}

.btn-link:hover::after {
    background: var(--hover-color);
}

.cookie-banner .btn-link {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cookie-banner .btn-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cookie-banner .btn-link::after {
    display: none;
}

/* Related Links */
.related-content {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.08) 0%, rgba(201, 169, 107, 0.05) 100%);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    box-shadow: var(--shadow-soft);
}

.related-content h2 {
    margin-top: 0;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.related-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0;
}

.related-links li {
    margin: 0;
    list-style: none;
}

.related-links a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    display: inline-block;
}

.related-links a:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
}

/* Project Links */
.project-links {
    list-style: none;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.project-links li {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.project-links li:hover {
    padding-left: 0.5rem;
}

.project-links li {
    margin: 0.75rem 0;
}

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0;
    position: relative;
}

.project-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.project-links a:hover {
    text-decoration: none;
    color: var(--hover-color);
}

.project-links a:hover::after {
    width: 100%;
}

/* Quick Links */
.quick-links {
    margin: 3rem 0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    margin-top: 1.5rem;
}

.links-grid a {
    display: block;
    padding: 1.25rem;
    background: var(--card-bg);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    font-weight: 500;
}

.links-grid a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

/* Featured Projects */
.featured-projects {
    margin: 3rem 0;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card h3 {
    margin: 0 0 0.5rem;
}

.project-card a {
    text-decoration: none;
    color: inherit;
}

.project-card h3 {
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 10000;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-banner .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-banner .btn-link {
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal-content h2 {
    margin-top: 0;
}

.cookie-settings {
    margin: 2rem 0;
}

.cookie-setting-item {
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cookie-setting-item label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.cookie-setting-item input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cookie-setting-item span {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.cookie-setting-item small {
    display: block;
    color: #666;
    font-size: 0.9rem;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Contact Info */
.contact-info {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    margin: 2rem 0;
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-info a {
    color: var(--primary-color);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 400px;
    font-weight: 500;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.notification-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        margin-top: 70px;
    }

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        width: 100vw;
        height: 100vh;
    }

    .menu-overlay.active {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        max-height: 100vh;
        background: var(--card-bg);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 80px 0 0 0;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        align-items: stretch;
        width: 100%;
        margin: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-nav a {
        display: block;
        padding: 1.25rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
        border: none;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a.active {
        background: rgba(212, 165, 116, 0.15);
        border-left: 4px solid var(--primary-color);
        border-right: none;
        font-weight: 600;
        padding-left: calc(1.5rem - 4px);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-content {
        position: relative;
        width: 100%;
        max-width: 100%;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-item strong {
        font-size: 1.5rem;
    }

    .section-with-image {
        grid-template-columns: 1fr;
    }

    .section-image {
        order: -1;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }

    .category-item {
        grid-template-columns: 1fr;
    }

    .category-item:nth-child(even) {
        direction: ltr;
    }

    .category-item img {
        max-width: 100%;
        width: 100%;
    }

    .card img {
        max-width: 100%;
        width: 100%;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: left;
        gap: 1.25rem;
    }

    .cookie-banner p {
        min-width: 0;
        width: 100%;
        margin-bottom: 0;
    }

    .cookie-banner-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-banner .btn {
        width: 100%;
        flex: 1;
        min-width: 0;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        text-align: center;
        justify-content: center;
    }

    .cookie-banner .btn-link {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        text-align: center;
    }

    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .resources-table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .resources-table thead,
    .resources-table tbody,
    .resources-table tr {
        display: block;
    }

    .resources-table th,
    .resources-table td {
        padding: 0.5rem;
        display: block;
        text-align: left;
    }

    .resources-table th {
        border-bottom: 2px solid rgba(255,255,255,0.3);
    }
}

@media (max-width: 480px) {
    .main-content {
        margin-top: 65px;
    }

    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .cookie-modal {
        padding: 1rem;
    }

    .cookie-modal-content {
        padding: 1.5rem;
    }
}
