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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

.container {
    /* max-width: 1400px; */
    margin: 0 auto;
    padding: 0 24px; /* was 40px made 24px to see how I like it while active. */ 
}

/* Header */
.header {
    padding: 30px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.7;
}

.header-btn {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0px;
    transition: background-color 0.3s ease;
    width: 180px;
}

.header-btn:hover {
    background-color: #333333;
}

/* Hero Section */
.hero {
    padding: 80px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.hero-title {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
}

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

.hero-description-right {
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    padding-top: 10px;
}

/* Newsletter Form */
.newsletter-form {
    position: relative;
    display: flex;
    width: 95%;
    background-color: #d3d3d342;
    border-radius: 0px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 16px;
    border: none;
    border-radius: 0px;
    background-color: transparent;
    color: #000000;
    font-family: inherit;
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-input::placeholder {
    color: #000000;
}

.newsletter-btn {
    background-color: transparent;
    color: #000000;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0px;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    opacity: 0.7;
}

.newsletter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-message {
    font-size: 14px;
    min-height: 20px;
    margin: 0;
}

.form-message.success {
    color: #008000;
}

.form-message.error {
    color: #ff0000;
}

/* Contact Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #ffffff;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #000000;
    transition: opacity 0.3s ease;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000000;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #000000;
    border-radius: 0px;
    background-color: #ffffff;
    color: #000000;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px #000000;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.submit-btn {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #333333;
}

.submit-btn:disabled {
    background-color: #666666;
    cursor: not-allowed;
}

.contact-form-message {
    font-size: 14px;
    margin: 0;
    text-align: center;
}

.contact-form-message.success {
    color: #008000;
}

.contact-form-message.error {
    color: #ff0000;
}

/* Filters */
.filters {
    padding: 40px 0;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0px;
    transition: all 0.3s ease;
    width: 180px;
}

.filter-btn:hover {
    background-color: #333333;
}

.filter-btn.active {
    background-color: #444444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Resources Grid */
.resources {
    padding: 0px 0 80px; /* removed top padding */ 
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Resource Card */
.resource-card {
    background-color: #d3d3d3;
    border-radius: 32px;
    padding: 30px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

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

.resource-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
    min-height: 280px;
    flex-shrink: 0;
}

.resource-image {
    max-width: 200px;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.resource-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
}

.resource-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    line-height: 1.3;
}

.resource-category {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource-arrow {
    width: 30px;
    height: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    transform: rotate(90deg);
    color: black;
    flex-shrink: 0;
}

.resource-card:hover .resource-arrow {
    opacity: 1;
}

/* Responsive Design */

/* Tablet (2 columns) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 60px;
    }

    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Mobile (1 column) */
@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 20px 0;
    }

    .header .container {
        align-items: center;
    }

    .header-btn {
        width: 35%;
    }

    .hero {
        padding: 40px 0 0 0;
    }

    .hero-title {
        font-size: 32px;
        text-align: center;
    }

    .hero-description-right {
        font-size: 14px;
        text-align: center;
    }

    .filters {
        padding: 20px 0;
    }

    .filter-buttons {
        gap: 12px;
    }

    .filter-btn {
        flex: 1;
        min-width: calc(50% - 6px);
        padding: 10px 20px;
        font-size: 13px;
    }

    .resources {
        padding: 20px 0 40px;
    }

    .resource-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .resource-card {
        padding: 30px 20px 20px;
    }

    .resource-image-wrapper {
        min-height: 240px;
    }

    .resource-image {
        max-width: 160px;
        max-height: 240px;
    }

    .newsletter-form {
        width: 100%;
    }

    .calculator-card-text {
        font-size: 48px;
    }
}

/* Calculator Card Preview */
.calculator-card-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.calculator-card-text {
    font-size: 72px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.1;
}

/* Hidden class for filtering */
.hidden {
    display: none;
}

/* Footer */
.footer {
    padding: 24px 24px;
    margin-top: 24px;
}

.footer p {
    font-size: 12px;
    color: #666666;
    text-align: left;
}
