/* Categories Section Styling */
.categories-section {
    padding: 40px 0;
    /*background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);*/
    min-height: 500px;
}

.categories-section .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    margin: 0;
    padding: 0;
    grid-auto-flow: row;
    max-height: 660px;
}

/* Force the first 4 category cards into specific grid positions (desktop) */
.category-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.category-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.category-card:nth-child(3) { grid-column: 1; grid-row: 2; }
.category-card:nth-child(4) { grid-column: 2; grid-row: 2; }
.category-card:nth-child(5) { grid-column: 1; grid-row: 3; }
.category-card:nth-child(6) { grid-column: 2; grid-row: 3; }
.category-card:nth-child(n+7) { display: none; }

/* Mobile: Reset grid positioning for proper mobile layout */
@media (max-width: 768px) {
    .category-card:nth-child(1),
    .category-card:nth-child(2),
    .category-card:nth-child(3),
    .category-card:nth-child(4),
    .category-card:nth-child(5),
    .category-card:nth-child(6) {
        grid-column: auto;
        grid-row: auto;
        display: block;
    }
}

.category-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    min-height: 300px;
    height: 550px;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

.category-background {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: 99%;
    background-position: top;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    margin-top: 3px;
    border-radius: 1rem;
}

/* Character positioning on left side */
.category-character {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 30%;
    width: 60%;
    z-index: 2;
}

.character-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

/* Badge positioning in top-right */
.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 300px;
    height: 218px;
    z-index: 3;
}

.badge-icon {
    width: 150%;
    height: 150%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    margin-left: -130px;
}

/* Bottom purple section - exactly like image.png */
.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 400px;
    height: 25%;
    /*background: linear-gradient(90deg,rgba(82, 22, 182, 1) 0%, rgba(37, 150, 190, 1) 50%, rgba(103, 190, 217, 1) 100%);*/
    padding: 15px 20px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 4;
}

.category-main {
    flex: 1;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #911d12; /*10038c*/
    margin: 0 0 2px 0;
    text-transform: uppercase;
    /*text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);*/
    line-height: 1.1;
}

.category-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    /*line-height: 1.1;*/
}

.category-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.guarantee {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.view-all-btn {
    background: #ffffff;
    color: #e74c3c;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-all-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #e74c3c;
    text-decoration: none;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .categories-section {
        padding: 30px 0;
        min-height: auto;
    }
    
    .categories-section .container {
        padding: 0 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
        max-height: none;
    }
    
    .category-card {
        height: 280px;
        min-height: 280px;
        position: relative;
        overflow: visible;
    }
    
    .category-character {
        width: 55%;
        bottom: 40%;
        position: absolute;
        left: 0;
        top: 0;
    }
    
    .category-badge {
        width: 90px;
        height: 65px;
        top: 10px;
        right: 10px;
        position: absolute;
    }
    
    .badge-icon {
        width: 250%;
        height: 300%;
        margin-left: -100px;
    }
    
    .category-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        height: 45%;
        padding: 15px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 4;
        border-radius: 0 0 15px 15px;
    }
    
    .category-main {
        flex: 1;
    }
    
    .category-title {
        font-size: 1.1rem;
        font-weight: 900;
        color: #10038c;
        margin: 0 0 5px 0;
    }
    
    .category-subtitle {
        font-size: 0.9rem;
        font-weight: 700;
        color: #e74c3c;
        margin: 0;
        text-shadow: none;
    }
    
    .category-footer {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
    }
    
    .guarantee {
        font-size: 0.75rem;
        color: #666;
        font-weight: 600;
        text-align: left;
    }
    
    .view-all-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        font-weight: bold;
        background: #e74c3c;
        color: white;
        border-radius: 15px;
    }
    
    .view-all-btn:hover {
        background: #c0392b;
        color: white;
    }
}

@media (max-width: 480px) {
    .categories-section {
        padding: 20px 0;
    }
    
    .categories-section .container {
        padding: 0 0.75rem;
    }
    
    .categories-grid {
        gap: 15px;
    }
    
    .category-card {
        height: 250px;
        min-height: 250px;
    }
    
    .category-character {
        width: 50%;
        bottom: 42%;
    }
    
    .category-badge {
        width: 70px;
        height: 50px;
        top: 8px;
        right: 8px;
    }
    
    .badge-icon {
        width: 250%;
        height: 300%;
        margin-left: -100px;
    }
    
    .category-info {
        height: 48%;
        padding: 12px;
        background: rgba(255, 255, 255, 0.98);
    }
    
    .category-title {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    
    .category-subtitle {
        font-size: 0.8rem;
    }
    
    .category-footer {
        margin-top: 6px;
    }
    
    .guarantee {
        font-size: 0.7rem;
    }
    
    .view-all-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

/* Rental Banner Section Styling */
.rental-banner-section {
    padding: 40px 0;
    /*background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);*/
}

.rental-banner-section .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1.5rem;
    padding-bottom: 50px;
}

.rental-banner {
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.banner-content {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 60px 80px;
    align-items: center;
    justify-content: space-between;
}

.banner-left {
    flex: 1;
    max-width: 50%;
}

.banner-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fbbf24;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
}

.banner-subtitle {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.banner-price {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 30px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1;
}

.banner-btn {
    background: #f8f9fa;
    color: #e74c3c;
    padding: 10px 60px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
}

.banner-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: #e74c3c;
    text-decoration: none;
}

.banner-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: 50%;
}

.qr-container {
    /*background: rgba(255, 255, 255, 0.95);*/
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    /*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);*/
    /*backdrop-filter: blur(10px);*/
}

.qr-code {
    /*width: 180px;
    height: 180px;*/
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
}

.qr-text {
    font-size: 0.9rem;
    color: #333333;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

/* Responsive Design for Banner */
@media (max-width: 1200px) {
    .banner-title {
        font-size: 2.8rem;
    }
    
    .banner-price {
        font-size: 3.5rem;
    }
    
    .banner-content {
        padding: 50px 60px;
    }
}

@media (max-width: 968px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        gap: 30px;
    }
    
    .banner-left,
    .banner-right {
        max-width: 100%;
        width: 100%;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-price {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .rental-banner-section {
        padding: 30px 0;
    }
    
    .rental-banner-section .container {
        padding: 0 1rem;
        padding-bottom: 30px;
    }
    
    .rental-banner {
        min-height: 350px;
        border-radius: 20px;
    }
    
    .banner-content {
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .banner-left,
    .banner-right {
        max-width: 100%;
        width: 100%;
    }
    
    .banner-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .banner-subtitle {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .banner-price {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .banner-btn {
        padding: 10px 30px;
        font-size: 1rem;
    }
    
    .qr-container {
        padding: 15px;
        /*margin-right: 105px;*/
    }
    
    .qr-code {
        width: 120px;
        height: 120px;
    }
    
    .qr-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .categories-section .container {
        padding: 0 0.5rem;
    }
    
    .categories-grid {
        gap: 12px;
    }
    
    .category-card {
        height: 220px;
        min-height: 220px;
    }
    
    .category-info {
        height: 50%;
        padding: 10px;
    }
    
    .category-title {
        font-size: 0.9rem;
    }
    
    .category-subtitle {
        font-size: 0.75rem;
    }
    
    .rental-banner {
        min-height: 300px;
    }
    
    .banner-content {
        padding: 20px 15px;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-subtitle {
        font-size: 1.1rem;
    }
    
    .banner-price {
        font-size: 1.8rem;
    }
    
    .banner-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}