.letter-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    background-color: transparent !important;
    padding-bottom: 0 !important;
    padding-top: 1.5rem !important;
}

.mockup-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mockup-image {
    width: 100%;
    aspect-ratio: 1.25/1;
    border-radius: 15px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;

}

.mockup-image:hover {
    transform: translateY(-6px) scale(1.01);
}

.mockup-image img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    display: block;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.07);
    border: 1.5px solid #f1f3f4;
    padding: 2.2rem 2rem 2rem 2rem;
    height: fit-content;
}

.services-header {
    font-size: 1.04rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.services-header hr {
    flex: 1;
    border: none;
    border-top: 1.5px solid #f1f3f4;
    margin: 0;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-radius: 15px;
    border: 1px solid #e8ecf4;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.service-item:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%);
    border-color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.1);
    text-decoration: none;
    color: inherit;
}

.service-icon {
    font-size: 1.4rem;
    color: #2196f3;
    min-width: 24px;
    text-align: center;
}

.service-content {
    flex: 1;
    text-align: left;
    margin-top: 2px;
}

.service-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.service-description {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.4;
    margin: 0;
}

.description-section {
    border-radius: 15px;
    padding: 2.5rem 2.5rem 0rem 0;
}

.description-section p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.description-section h2 {
    color: #2c3e50;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.description-section ul {
    color: #4a5568;
    padding-left: 1.5rem;
}

.description-section li {
    margin-bottom: 0.5rem;
}

/* Key Features Section Styles */
.key-features h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 1.5rem;
    text-align: left;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 1rem;
    background: #FDFDFF;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid #e8ecf4;
    transition: all 0.3s ease;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.feature-item:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%);
    border-color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.1);
    text-decoration: none;
    color: inherit;
}

.feature-icon {
    font-size: 2.3rem;
    color: #2196F3;
    margin-bottom: 0.8rem;
    text-align: center;
}

.feature-text {
    color: #2C3E50;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 2rem 0;
}

/* Merge repeated border-radius for .mockup-image and .mockup-image img */
.mockup-image,
.mockup-image img {
    border-radius: 15px;
}




/* Custom styles for smaller alphabet design cards */
.alphabet-designs-grid .alphabet-design-card {
    /* box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px; */
    /* background: #FFFFFF; */
    /* border-top: 1px solid #e8ecf4; */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 230px;
    transition: box-shadow 0.2s, transform 0.2s;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;

}

.alphabet-designs-grid .alphabet-design-card img {
    border-radius: 15px;
    background: transparent;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alphabet-designs-grid .alphabet-design-card:hover {
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.15);
    transform: translateY(-4px) scale(1.03);
}

/* Download button overlay styles */
.download-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    border-radius: 15px;
}

.alphabet-design-card:hover .download-overlay {
    opacity: 1;
}
.col-lg-2-4 {
    flex: 0 0 20%; 
    max-width: 20%;
    padding: 0 8px;
}

.row {
    margin: 0 -8px;
}

.alphabet-designs-grid .alphabet-design-card {
    height: 230px;
    border-radius: 15px;
}

/* responsive section start */

@media (max-width: 1200px) {
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
        padding: 0 8px;
    }

    .row {
        margin: 0 -8px;
    }
    
    .alphabet-designs-grid .alphabet-design-card {
        height: 230px;
        border-radius: 15px;
    }
    .main-content {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 25%;
        max-width: 100%;
    }
    .main-content {
        grid-template-columns: 1fr ;
    }

    .sidebar {
        max-width: 560px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .key-features {
        width: 80%;
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .col-lg-2-4 {
        flex: 0 0 30%;
        max-width: 100%;
    }
    .letter-detail-page {
        padding: 1rem 0.5rem;
    }

    .page-title {
        font-size: 1.8rem;
        padding: 5px 15px 0;
    }

    .section-title {
        padding-left: 20px;
    }

    .explore_card_btn {
        margin-right: 15px;
    }

    .main-content {
        gap: 1.5rem;
    }

    .description-section {
        padding: 1.5rem 1rem 0rem;
    }

    .mockup-image {
        aspect-ratio: 1/1;
        min-height: 220px;
    }

    .mockup-images {
        gap: 1.2rem;
        padding: 0 10px;
    }

    .key-features {
        width: 100%;
    }

    .key-features h2 {
        font-size: 1.4rem;
    }

    features-grid {
        grid-template-columns: 1fr 1fr;
        display: grid;
    }

    .feature-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    /* Show 3 images per row on 600px screens */
    .col-6.col-md-4.col-lg-2-4 {
        flex: 0 0 33.333333%;
        max-width: 33%;
        padding: 0 5px;

    }
    
    .row {
        margin: 0 -5px;
    }
    
    /* Adjust card height for better fit */
    .alphabet-designs-grid .alphabet-design-card {
        height: 200px;
        border-radius: 12px;
    }
    
    .alphabet-designs-grid .alphabet-design-card img {
        border-radius: 12px;
        object-fit: cover;
    }
    
    .download-overlay {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .row>* {
        padding-right: 5px !important;
        padding-left: 5px !important;
        margin: 0 0 10px !important;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .mockup-images {
        gap: 1rem;
    }

    .sidebar-section {
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
        max-width: 98vw;
    }

    .mockup-image,
    .mockup-image img {
        border-radius: 15px;
    }

    .service-item {
        padding: 0.8rem;
    }

    .service-title {
        font-size: 0.95rem;
    }

    .service-description {
        font-size: 0.85rem;
    }

    .key-features {
        width: 100%;
        padding: 1rem;
    }

    .key-features h2 {
        font-size: 1.2rem;
    }

    .feature-item {
        padding: 0.8rem;
    }

    .feature-icon {
        font-size: 1.3rem;
    }

    .feature-text {
        font-size: 0.8rem;
    }
}

@media (max-width : 350px) {
    .section-title {
        font-size: 1.4rem;
        text-align: left;
    }

    .explore_card_btn {
        padding: 11px 28px;
    }

    /* Fix alphabet design cards for 350px width */
    .alphabet-designs-grid .alphabet-design-card {
        height: 180px;
        border-radius: 12px;
    }

    .alphabet-designs-grid .alphabet-design-card img {
        border-radius: 12px;
        object-fit: cover;
        padding: 8px;
    }

    .download-overlay {
        border-radius: 12px;
    }

    /* Adjust grid layout for better fit */
    .col-6.col-md-4.col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 5px;
    }

    .row {
        margin: 0 -5px;
    }
}