* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Varela Round', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

/* Ad Columns - Side Skyscraper Ads (160x600) */
.ad-column {
    position: fixed;
    top: 20px;
    width: 160px;
    z-index: 100;
    display: none; /* Hidden until ads are connected */
    flex-direction: column;
}

.ad-column-left {
    left: 10px;
}

.ad-column-right {
    right: 10px;
}

/* Ad Container - Wide Skyscraper (160x600) */
.ad-space {
    width: 160px;
    height: 600px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-space p {
    color: #999;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
    padding: 10px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 10px;
    position: relative;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    position: relative;
}

header .header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo {
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000;
    margin-bottom: 8px;
}

.logo .o-dot {
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    background: #000;
    border-radius: 50%;
    vertical-align: middle;
    margin: 0 2px;
}

.logo-img {
    max-width: 300px;
    height: auto;
    margin-bottom: 3px;
}

.tagline {
    font-size: 1.1em;
    color: #666;
    font-weight: 300;
}

/* Introduction Header Section */
.intro-header {
    background: white;
    padding: 25px 30px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.intro-header h2 {
    color: #000;
    margin-bottom: 15px;
    font-size: 1.6em;
    line-height: 1.2;
}

/* Introduction Section */
.intro {
    background: white;
    padding: 25px 30px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.intro h2 {
    color: #000;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.6em;
    line-height: 1.2;
}


.intro p {
    margin-bottom: 10px;
    text-align: center;
}

.intro-content {
    text-align: center;
}

.info-blocks {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.info-block {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.info-block:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.info-block h3 {
    color: #000;
    margin-bottom: 12px;
    font-size: 1.1em;
    text-align: left;
}

.info-block p {
    margin-bottom: 10px;
    text-align: left;
    line-height: 1.5;
}

.info-block ul {
    margin-top: 8px;
    margin-bottom: 10px;
    padding-left: 20px;
}

.info-block li {
    margin-bottom: 5px;
}

.highlight-box {
    background: #ffed4e;
    border-left: 4px solid #ffb700;
    padding: 18px 20px;
    margin: 10px auto 20px auto;
    font-size: 1.15em;
    border-radius: 8px;
    max-width: 600px;
    text-align: center;
}

/* Generator Section */
.generator {
    background: white;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.generator h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8em;
}

#calendarForm {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group-half {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.helper-text {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.btn-generate {
    width: 100%;
    padding: 16px;
    background: #2dba40;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.3em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-generate:hover {
    background: #25a035;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(45, 186, 64, 0.3);
}

.btn-generate:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(45, 186, 64, 0.2);
}

/* Calendar Display Section */
.calendar-display {
    background: white;
    padding: 25px 15px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.calendar-controls-bottom {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
    border-color: #ccc;
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* PDF Button with Adobe-like red */
.btn-pdf {
    padding: 12px 30px;
    background: #e31937;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pdf:hover {
    background: #c41230;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(227, 25, 55, 0.3);
}

.btn-pdf:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(227, 25, 55, 0.2);
}

/* Special Moments Instruction */
.moments-instruction {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.btn-star {
    padding: 8px 16px;
    background: #ffd700;
    border: 2px solid #ffb700;
    border-radius: 6px;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-star:hover {
    background: #ffed4e;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

.btn-star:active {
    transform: scale(0.98);
}

.btn-star.active {
    background: #ffed4e;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    transform: scale(1.05);
}

.star-counter {
    font-weight: 600;
    color: #666;
}

/* Calendar Grid */
.calendar-wrapper {
    margin: 20px 0;
    position: relative;
}

.calendar {
    margin: 0 auto;
    padding: 10px 70px 10px 5px;
    background: white;
    position: relative;
    max-width: 100%;
    width: fit-content;
    overflow: visible;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 2px;
}

.calendar-name {
    font-size: 1em;
    font-weight: 600;
}

.calendar-birthdate {
    font-size: 0.8em;
    color: #666;
}

.month-labels {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    margin-bottom: 6px;
    margin-left: 21.5px;
    font-size: 0.6em;
    font-weight: 600;
    text-align: center;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 0;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Year labels removed - month labels now span only the 52 weeks */

.month-label {
    padding: 2px 0;
    position: relative;
}

.month-label.with-separator::after {
    content: '|';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-weight: 400;
}

.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5px;
    position: relative;
}

.year-row {
    display: flex;
    gap: 0;
    margin-bottom: 1.5px;
    align-items: center;
    position: relative;
}

.year-row > .year-number {
    width: 20px;
    flex-shrink: 0;
}

.year-row.decade-end {
    margin-bottom: 10px;
}

.year-row.five-year-end {
    margin-bottom: 5px;
}

.year-number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55em;
    font-weight: 600;
    color: #666;
}

.actual-year {
    position: absolute;
    left: 873px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    font-size: 0.55em;
    font-weight: 600;
    color: #666;
}

.week-box {
    width: 14px;
    height: 14px;
    border: 1px solid #333;
    border-radius: 2px;
    background: white;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    margin-left: 1.5px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.week-box.spacing-month {
    margin-left: 5px;
}

.week-box.spacing-halfyear {
    margin-left: 10px;
}

.week-box.lived {
    background: #1a1a1a;
}

.week-box.star {
    background: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    font-size: 0.6em;
}

.week-box:hover:not(.lived):not(.star) {
    background: #f5f5f5;
    transform: scale(1.05);
}

.week-box.star-mode-active:hover {
    background: #ffed4e;
    cursor: crosshair;
    transform: scale(1.1);
}

.calendar-quote {
    margin-top: 20px;
    font-style: italic;
    font-size: 1em;
    color: #666;
    padding: 15px 0;
    border-top: 2px solid #eee;
    position: relative;
    overflow: visible;
}

/* Moments Notes */
.moments-notes {
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 12px;
    background: white;
    border-radius: 4px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.moment-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.moment-star {
    font-size: 1.1em;
    color: #ffd700;
    min-width: 22px;
}

.moment-input {
    flex: 1;
    padding: 2px 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
    transition: all 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    resize: none;
    min-height: 1.2em;
    font-family: 'Varela Round', sans-serif;
    line-height: 1.4;
    overflow: hidden;
    box-sizing: border-box;
}

.moment-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.moment-delete {
    background: white;
    border: 2px solid #ff4444;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 32px;
}

.moment-delete:hover {
    background: #fff5f5;
    border-color: #ff6666;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(255, 68, 68, 0.2);
}

.moment-delete:active {
    transform: scale(0.95);
}

/* Ad Banner Middle (after second PDF button) - Leaderboard (728x90) */
.ad-banner-middle {
    width: 728px;
    height: 90px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    margin: 30px auto;
    border-radius: 4px;
    display: none; /* Hidden until ads are connected */
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-banner-middle p {
    color: #999;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
}

/* Bottom Section */
.bottom-section {
    margin-top: 40px;
}

/* Ad Banner Bottom - Leaderboard (728x90) */
.ad-banner-bottom {
    width: 728px;
    height: 90px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    margin: 0 auto 20px auto;
    border-radius: 4px;
    display: none; /* Hidden until ads are connected */
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-banner-bottom p {
    color: #999;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
}

.donation {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.donation h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

.donation p {
    color: #666;
    margin-bottom: 20px;
}

.donation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-donate {
    padding: 12px 30px;
    background: #ffd700;
    color: #000;
    border: 2px solid #ffb700;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-donate:hover {
    background: #ffed4e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.btn-donate:active {
    transform: translateY(0);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 0.9em;
}

/* Default container margins for ad columns */
.container {
    margin-left: 275px;
    margin-right: 275px;
}

/* Hide ad columns on smaller screens */
@media (max-width: 1400px) {
    .ad-column {
        display: none;
    }

    .container {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px 5px;
        margin-left: auto;
        margin-right: auto;
    }

    .ad-column {
        display: none;
    }

    header {
        padding: 20px 15px;
    }

    .logo {
        font-size: 2em;
    }

    .logo-img {
        max-width: 200px;
    }

    .tagline {
        font-size: 1em;
    }

    .intro, .generator, .calendar-display {
        padding: 20px 15px;
    }

    .intro h2, .generator h2 {
        font-size: 1.4em;
    }

    .intro h3 {
        font-size: 1em;
    }

    .intro-text {
        font-size: 0.9em;
    }

    #calendarForm {
        padding: 0 5px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group-half {
        margin-bottom: 15px;
    }

    .week-box {
        border-width: 1.5px;
    }

    .calendar {
        padding: 8px 3px;
    }

    .calendar-display {
        padding: 15px 8px;
    }

    .month-labels {
        grid-template-columns: repeat(12, 1fr);
        margin-left: 18px;
        padding-right: 0;
        top: 0;
        width: 100%;
    }

    .year-row > .year-number {
        width: 18px;
    }

    .year-number {
        font-size: 0.5em;
    }

    .month-labels {
        font-size: 0.55em;
    }

    .calendar-header {
        margin-bottom: 8px;
    }

    .calendar-name {
        font-size: 0.9em;
    }

    .calendar-birthdate {
        font-size: 0.7em;
    }

    .calendar-controls {
        flex-direction: column;
        gap: 10px;
    }

    .calendar-controls-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary, .btn-secondary, .btn-pdf {
        width: 100%;
        padding: 12px 20px;
    }

    /* Hide side ad columns on mobile */
    .ad-column {
        display: none;
    }

    /* Make banner ads responsive on mobile */
    .ad-banner-middle,
    .ad-banner-bottom {
        width: 100%;
        max-width: 320px;
        height: 50px;
        margin: 20px auto;
    }

    .ad-banner-middle p,
    .ad-banner-bottom p {
        font-size: 0.8em;
    }
}

/* Print Styles for PDF */
@media print {
    /* Remove browser-generated headers and footers */
    @page {
        margin: 0.5cm;
        size: auto;
    }

    /* Hide all non-calendar elements */
    .ad-column,
    .ad-column-left,
    .ad-column-right,
    .ad-space,
    .ad-banner-middle,
    .ad-banner-bottom,
    .intro-header,
    .generator,
    .intro,
    .bottom-section,
    .donation,
    footer,
    .moments-instruction,
    .calendar-controls,
    .calendar-controls-bottom,
    #btnCreatePDF,
    #btnCreatePDFBottom,
    #btnToggleStarMode,
    #starCounter,
    #calendarForm,
    form,
    .highlight-box,
    .moment-delete,
    .main-nav {
        display: none !important;
    }

    /* Clean body and container for print */
    body {
        margin: 0;
        padding: 10px;
        background: white;
    }

    .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    /* Show header with logo and tagline */
    header {
        display: block !important;
        text-align: center;
        margin-bottom: 2px;
        margin-top: 0;
        page-break-after: avoid;
    }

    .logo-img {
        display: block !important;
        max-width: 120px;
        margin: 0 auto 0;
    }

    .tagline {
        display: none !important;
    }

    /* Calendar display section */
    .calendar-display {
        display: block !important;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .calendar-wrapper {
        display: block !important;
        page-break-inside: auto;
    }

    #calendar {
        display: block !important;
        page-break-inside: auto;
    }

    /* Keep special moments on first page, right after logo */
    #momentsNotes {
        display: block !important;
        page-break-before: avoid;
        page-break-after: avoid;
        page-break-inside: avoid;
        margin-top: 5px;
        margin-bottom: 10px;
        padding: 8px;
    }

    /* Make moment notes display properly in print */
    .moment-note {
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 8px !important;
    }

    .moment-star {
        font-size: 1.1em !important;
        min-width: 22px !important;
    }

    /* Make moment inputs wrap text properly in print with consistent sizing */
    .moment-input {
        flex: 1 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        font-size: 0.9em !important;
        font-family: 'Varela Round', sans-serif !important;
        line-height: 1.4 !important;
        padding: 2px 8px !important;
        border: 1px solid #ddd !important;
        border-radius: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        min-height: 1.2em !important;
        /* Don't set height to allow inline styles from JavaScript to work */
    }

    /* Allow calendar grid to break across pages if needed */
    .calendar {
        break-inside: auto;
        page-break-before: avoid;
        padding: 10px 80px 10px 15px !important; /* More padding for year labels on right */
        width: calc(100% + 20px) !important; /* Add 10px on each side */
        margin-left: -10px !important;
    }

    /* Reduce spacing in print for compact layout */
    .month-labels {
        margin-bottom: 3px !important;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }

    .year-row {
        margin-bottom: 1px !important;
    }

    /* Force exact colors in print */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hide cookie banner in print */
    .cookie-banner,
    .cookie-modal {
        display: none !important;
    }
}

/* Cookie Consent Banner Styles */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    padding: 20px;
}

.cookie-banner-visible {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-banner h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #2c2c2c;
}

.cookie-banner p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.5;
}

.cookie-banner p a {
    color: #2c2c2c;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-family: 'Varela Round', sans-serif;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.cookie-btn-accept {
    background: #2c2c2c;
    color: white;
}

.cookie-btn-accept:hover {
    background: #1a1a1a;
}

.cookie-btn-reject {
    background: #666;
    color: white;
}

.cookie-btn-reject:hover {
    background: #555;
}

.cookie-btn-customize {
    background: white;
    color: #2c2c2c;
    border: 2px solid #2c2c2c;
}

.cookie-btn-customize:hover {
    background: #f5f5f5;
}

.cookie-btn-secondary {
    background: #e0e0e0;
    color: #2c2c2c;
}

.cookie-btn-secondary:hover {
    background: #d0d0d0;
}

/* Cookie Preferences Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal-visible {
    opacity: 1;
}

.cookie-modal-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-modal-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    color: #2c2c2c;
}

.cookie-modal-content > p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.cookie-category-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.cookie-category h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #2c2c2c;
}

.cookie-category p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

.cookie-required {
    font-size: 0.85em;
    color: #999;
    font-weight: normal;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #2c2c2c;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-slider {
    background-color: #2c2c2c;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Footer link styling */
footer a {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
}

footer a:hover {
    text-decoration: underline;
    color: #2c2c2c;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-modal-content {
        padding: 20px;
        margin: 10px;
    }

    .cookie-modal-buttons {
        flex-direction: column;
    }

    .cookie-modal-buttons .cookie-btn {
        width: 100%;
    }
}

/* Navigation Styles */
.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.main-nav a {
    color: #666;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: #2c2c2c;
    background: #f5f5f5;
}

.main-nav a.active {
    color: #2c2c2c;
    background: #ffd700;
}

/* Blog Listing Page */
.blog-list {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-card {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.blog-card h2 {
    margin: 0 0 10px 0;
    font-size: 1.6em;
}

.blog-card h2 a {
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card h2 a:hover {
    color: #000;
}

.blog-meta {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 15px;
}

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

.read-more {
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.read-more:hover {
    color: #000;
    transform: translateX(4px);
}

/* Blog Article Page */
.blog-article {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.article-header h1 {
    font-size: 2.2em;
    margin: 0 0 15px 0;
    color: #2c2c2c;
    line-height: 1.3;
}

.article-meta {
    color: #999;
    font-size: 0.95em;
}

.article-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-content h2 {
    font-size: 1.6em;
    margin: 30px 0 15px 0;
    color: #2c2c2c;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.back-to-blog {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.back-to-blog:hover {
    color: #2c2c2c;
    transform: translateX(-4px);
}

/* Article CTA Section */
.article-cta {
    margin: 40px 0;
    padding: 30px;
    background: #ffd700;
    border-radius: 8px;
    text-align: center;
}

.article-cta h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    color: #2c2c2c;
}

.article-cta p {
    margin: 0 0 20px 0;
    color: #444;
    font-size: 1.05em;
}

.article-cta .btn-pdf {
    display: inline-block;
    text-decoration: none;
}

/* Site Footer */
.site-footer {
    margin-top: 60px;
    padding: 30px 20px;
    background: #f8f9fa;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.site-footer p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9em;
}

.footer-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links .separator {
    color: #ccc;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .main-nav {
        gap: 10px;
    }

    .main-nav a {
        font-size: 0.9em;
        padding: 6px 12px;
    }

    .blog-card {
        padding: 20px;
    }

    .blog-card h2 {
        font-size: 1.3em;
    }

    .article-header h1 {
        font-size: 1.6em;
    }

    .article-content {
        padding: 20px;
    }

    .article-content h2 {
        font-size: 1.3em;
    }

    .article-content p {
        font-size: 1em;
    }
}
