/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.page-description {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: #505050;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
}

/* Design Card */
.design-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.design-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 1.5rem;
    background-color: var(--primary-color);
    border-bottom: 1px solid #eee;
    color: #fff;
}

.card-content {
    padding: 2rem;
}

.design-container {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* Common SVG Container */
.svg-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Design 1: Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.grid-item {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.item-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.grid-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem 1rem 0.5rem;
    color: #2c3e50;
}

.grid-item p {
    font-size: 0.9rem;
    margin: 0 1rem 1rem;
    color: #666;
}

/* Design 2: Magazine Style */
.magazine-layout {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.magazine-header {
    padding: 1.5rem;
    background-color: #2c3e50;
    color: #fff;
}

.magazine-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.magazine-header .subheading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.magazine-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
}

.featured-image {
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.text-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #4a4a4a;
}

.magazine-caption {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-style: italic;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* Design 3: Card-Based Design */
.card-based-layout {
    padding: 1rem;
    background-color: #f4f7f9;
    border-radius: 8px;
}

.content-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 250px;
    overflow: hidden;
}

.card-body {
    padding: 1.5rem;
}

.card-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.card-body p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #505050;
}

.card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background-color: #e9f0f8;
    color: #3498db;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.tag:hover {
    background-color: #d1e3f6;
}

/* Design 4: Waterfall Layout */
.waterfall-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-rows: minmax(120px, auto);
    gap: 1rem;
}

.waterfall-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.waterfall-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.waterfall-image {
    width: 100%;
    height: 100%;
    min-height: 140px;
}

.waterfall-item h4 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

.item1 {
    grid-row: span 2;
}

.item2 {
    grid-column: span 1;
    grid-row: span 1;
}

.item3 {
    grid-row: span 2;
}

.item4 {
    grid-column: span 1;
    grid-row: span 1;
}

.item5 {
    grid-column: span 1;
    grid-row: span 2;
}

/* Design 5: Column Layout */
.column-layout {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.column-header {
    padding: 1.5rem;
    background-color: #34495e;
    color: #fff;
    text-align: center;
}

.column-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.column-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
}

.text-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

.text-column p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #505050;
}

.image-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.column-image {
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.image-caption {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    color: #777;
    text-align: center;
}

/* Responsive Styles */
@media screen and (min-width: 768px) {
    .magazine-content {
        grid-template-columns: 1fr 1fr;
    }

    .column-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (min-width: 992px) {
    .card-title {
        font-size: 1rem;
    }

    .grid-layout {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .magazine-header h2 {
        font-size: 3rem;
    }

    .magazine-header .subheading {
        font-size: 1.2rem;
    }

    .text-content h3 {
        font-size: 2rem;
    }

    .waterfall-layout {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .grid-container {
        gap: 2.5rem;
    }

    .card-title {
        padding: 1.2rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .featured-image {
        height: 250px;
    }
}

@media screen and (max-width: 480px) {
    .main-content {
        padding: 0 1.2rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .grid-container {
        gap: 2rem;
    }

    .card-content {
        padding: 1.2rem;
    }

    .grid-layout {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 200px;
    }

    .magazine-header h2 {
        font-size: 2rem;
    }

    .text-content h3 {
        font-size: 1.5rem;
    }

    .waterfall-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}
