/* Categories Section Styles */
.categories-section {
    padding: 40px 0;
    /*background: #76181d;*/ /*0a0327*/
    padding-bottom: 1100px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    /*max-width: 1200px;*/
    margin: 0 auto;
}

.category-card {
    /*background: linear-gradient(90deg,rgba(82, 22, 182, 1) 0%, rgba(37, 150, 190, 1) 50%, rgba(103, 190, 217, 1) 100%);*/
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.category-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.category-title {
    font-size: 50px;
    font-weight: bold !important;
    margin-bottom: 8px;
    /*text-shadow: 2px 2px 4px rgba(0,0,0,0.5);*/
}


.category-subtitle {
    /*font-size: 23px;*/
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    background-image: url(/public/img/LinksAnh-108_cleanup.png);
    background-repeat: no-repeat;
    text-align: center;
    padding-right: 250px;
}

.category-info {
    padding: 50px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-header h4 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.price-range {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guarantee {
    color: #000;
    font-size: 20px;
    font-weight: 500;
}

.view-all-btn {
    background: #d46452;
    color: #fff;
    padding: 8px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.view-all-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* Footer Sections Styles */
.security-section {
    background: linear-gradient(185deg, #fbf0b7, #de9d53); /*linear-gradient(185deg, #ddcbb2, #dd8497);*/
    padding: 45px 0;
    position: relative;
    overflow: visible;
    margin-bottom: 40px;
}

.security-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.security-character {
    flex-shrink: 0;
}

.security-character img {
    max-width: 418px;
    /*height: auto;*/
    margin-bottom: -60px;
    z-index: 20;
    position: absolute;
    left: 0;
    bottom: -161px;
}

.security-info {
    text-align: center;
    color: white;
    flex-grow: 1;
    margin: 0 40px;
    left: 300px;
}

.security-info h2 {
    font-size: 32px;
    font-weight: bold !important;
    margin-bottom: 0px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.security-info .subtitle {
    font-size: 25px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.security-buttons {
    margin-bottom: 20px;
}

.btn-security-primary,
.btn-security-secondary {
    padding: 5px 40px;
    margin: 0 10px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 20px;
}

.btn-security-primary {
    background: white;
    color: #f13f53;
}

.btn-security-secondary {
    background: linear-gradient(86deg, #521699, #8263d1);
    color: white;
    /*border: 2px solid white;*/
}

.btn-security-primary:hover {
    background: #f8f9fa;
    color: #ff6b9d;
    text-decoration: none;
}

.btn-security-secondary:hover {
    background: white;
    color: #ff6b9d;
    text-decoration: none;
}

.security-note {
    font-size: 20px;
    /*opacity: 0.8;*/
    line-height: 1.5;
    color: #000000;
    font-weight: 500;
}

.support-section {
    /*background: linear-gradient(135deg, #8b5cf6, #a855f7);*/
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    max-width: 1500px;
    margin: 0 auto;
    border-radius: 15px;
}

.support-banner{
    border-radius: 30px;
}

.support-banner-section .container{
    max-width: 1480px;
    padding: 30px 0;
}

.banner-description{
    color: #fff;
}

.support-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    max-width: 1500px;
    margin: 0 auto;
}

.support-character img {
    max-width: 400px;
    height: auto;
    margin-right: -400px;
    border-radius: 40px;
}

.support-info {
    flex-grow: 1;
    text-align: center;
    margin-left: -1700px;
}

.support-info h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fbbf24;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.support-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.support-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.btn-support {
    background: #f8f9fa;
    color: #e74c3c;
    padding: 15px 30px;
    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;
}

.btn-support:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: #e74c3c;
    text-decoration: none;
}

.support-qr {
    flex-shrink: 0;
    margin-right: 110px;
}

.support-qr .qr-code {
    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);
}

.support-qr img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
}

.support-qr p {
    font-size: 0.9rem;
    color: #333333;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

.policy-banner {
    background-size: 1400px;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px 0;
    color: white;
    position: relative;
    border-radius: 25px;
    margin: 0 15px;
    overflow: hidden;
}

.policy-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: rgba(0, 0, 0, 0.3);*/
    z-index: 1;
}

.policy-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
    gap: 30px;
}

.policy-text-section {
    /*background: rgba(75, 0, 130, 0.9);*/
    padding: 25px 35px;
    /*border-radius: 20px;*/
    /*backdrop-filter: blur(10px);*/
    /*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);*/
    max-width: 500px;
}

.policy-title {
    font-size: 22px;
    font-weight: bold;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.3;
}

.policy-subtitle {
    font-size: 16px;
    color: #FFD700;
    margin: 0;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.policy-button {
    background: white;
    color: #dc2626;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid transparent;
}

.policy-button:hover {
    background: #f8f9fa;
    color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    border-color: #dc2626;
}

/* Legacy styles for backward compatibility */
.policy-text {
    display: none;
}

.policy-details {
    display: none;
}

.policy-link {
    display: none;
}

/* Policy Banner Responsive Design */
@media (max-width: 768px) {
    .policy-banner {
        margin: 0 10px;
        border-radius: 15px;
        padding: 20px 0;
    }
    
    .policy-content {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
        text-align: center;
    }
    
    .policy-text-section {
        max-width: 100%;
        padding: 20px 25px;
    }
    
    .policy-title {
        font-size: 18px;
    }
    
    .policy-subtitle {
        font-size: 14px;
    }
    
    .policy-button {
        padding: 10px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .policy-banner {
        margin: 0 8px;
        border-radius: 12px;
        padding: 15px 0;
    }
    
    .policy-content {
        padding: 0 15px;
        gap: 15px;
    }
    
    .policy-text-section {
        padding: 15px 20px;
    }
    
    .policy-title {
        font-size: 16px;
    }
    
    .policy-subtitle {
        font-size: 13px;
    }
    
    .policy-button {
        padding: 8px 20px;
        font-size: 13px;
    }
}

.main-footer {
    background: #0b035c;
    padding: 40px 0 20px;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: start;
}

.footer-social {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link.facebook { background: #1877f2; }
.social-link.tiktok { background: #000; }
.social-link.zalo { background: #0068ff; }
.social-link.instagram { background: #e1306c; }
.social-link.youtube { background: #ff0000; }

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #60a5fa;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-column a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #60a5fa;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    font-size: 14px;
    color: #94a3b8;
}

.support-qr img {
    max-width: 180px;
    height: auto;
    margin-bottom: 10px;
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0 25px;
    }
    
    .category-card {
        border-radius: 15px;
    }
    
    .category-title {
        font-size: 42px;
    }
    
    .category-subtitle {
        font-size: 20px;
    }
    
    .support-content {
        padding: 0 40px;
        flex-direction: column;
        text-align: center;
    }
    
    .support-character img {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .support-info {
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .support-info h2 {
        font-size: 2.2rem;
    }
    
    .support-info h3 {
        font-size: 1.6rem;
    }
    
    .support-qr {
        margin-right: 0;
    }
}

/* Mobile landscape and tablets */
@media (max-width: 768px) {
    .categories-section {
        padding: 30px 0 0px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }
    
    .category-card {
        border-radius: 12px;
    }
    
    .category-image {
        height: 160px;
    }
    
    .category-title {
        font-size: 36px;
    }
    
    .category-subtitle {
        font-size: 18px;
    }
    
    .category-header h4 {
        font-size: 16px;
    }
    
    .price-range {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .guarantee {
        font-size: 16px;
    }
    
    .view-all-btn {
        padding: 6px 20px;
        font-size: 16px;
    }
    
    .security-section {
        padding: 35px 0;
    }
    
    .security-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    
    .security-character {
        margin-bottom: 20px;
    }
    
    .security-character img {
        position: static;
        max-width: 300px;
        margin-bottom: 0;
    }
    
    .security-info {
        margin: 0;
        left: auto;
    }
    
    .security-info h2 {
        font-size: 28px;
    }
    
    .security-info .subtitle {
        font-size: 22px;
    }
    
    .security-buttons {
        margin-bottom: 15px;
    }
    
    .btn-security-primary,
    .btn-security-secondary {
        padding: 8px 30px;
        font-size: 18px;
        margin: 5px;
    }
    
    .security-note {
        font-size: 18px;
    }
    
    .support-section {
        padding: 40px 0;
    }
    
    .support-content {
        padding: 0 20px;
        flex-direction: column;
        gap: 30px;
    }
    
    .support-info h2 {
        font-size: 2rem;
    }
    
    .support-info h3 {
        font-size: 1.4rem;
    }
    
    .support-description {
        font-size: 1rem;
    }
    
    .btn-support {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
    
    .support-qr img {
        width: 150px;
        height: 150px;
    }
    
    .policy-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 0 20px;
    }
    
    .footer-social {
        flex-direction: row;
        justify-content: center;
    }
    
    .footer-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-column h4 {
        font-size: 15px;
    }
    
    .footer-column li {
        font-size: 13px;
    }
}

/* Mobile portrait */
@media (max-width: 576px) {
    .categories-section {
        padding: 25px 0 0px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 15px;
    }
    
    .category-card {
        border-radius: 10px;
    }
    
    .category-image {
        height: 140px;
    }
    
    .category-title {
        font-size: 28px;
    }
    
    .category-subtitle {
        font-size: 16px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .category-header h4 {
        font-size: 15px;
    }
    
    .price-range {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .guarantee {
        font-size: 14px;
    }
    
    .view-all-btn {
        padding: 5px 16px;
        font-size: 14px;
    }
    
    .security-section {
        padding: 25px 0;
    }
    
    .security-info h2 {
        font-size: 24px;
    }
    
    .security-info .subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .btn-security-primary,
    .btn-security-secondary {
        padding: 6px 20px;
        font-size: 16px;
        display: block;
        margin: 5px auto;
        text-align: center;
    }
    
    .security-note {
        font-size: 16px;
        text-align: center;
    }
    
    .support-section {
        padding: 30px 0;
    }
    
    .support-info h2 {
        font-size: 1.8rem;
    }
    
    .support-info h3 {
        font-size: 1.2rem;
    }
    
    .support-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .btn-support {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .support-qr img {
        width: 120px;
        height: 120px;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-column h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .footer-column li {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .policy-content {
        padding: 0 10px;
    }
    
    .policy-text {
        font-size: 14px;
    }
    
    .policy-details {
        font-size: 12px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .categories-section {
        padding: 20px 0 0px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 12px;
    }
    
    .category-image {
        height: 120px;
    }
    
    .category-title {
        font-size: 24px;
    }
    
    .category-subtitle {
        font-size: 14px;
    }
    
    .security-section {
        padding: 20px 0;
    }
    
    .security-info h2 {
        font-size: 20px;
    }
    
    .security-info .subtitle {
        font-size: 16px;
    }
    
    .security-buttons {
        margin-bottom: 12px;
    }
    
    .btn-security-primary,
    .btn-security-secondary {
        padding: 5px 15px;
        font-size: 14px;
    }
    
    .security-note {
        font-size: 14px;
    }
    
    .support-section {
        padding: 25px 0;
    }
    
    .support-info h2 {
        font-size: 1.6rem;
    }
    
    .support-info h3 {
        font-size: 1.1rem;
    }
    
    .support-description {
        font-size: 0.9rem;
    }
    
    .btn-support {
        padding: 8px 18px;
        font-size: 0.95rem;
    }
    
    .support-qr img {
        width: 100px;
        height: 100px;
    }
    
    .policy-text {
        font-size: 13px;
    }
    
    .policy-details {
        font-size: 11px;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    .categories-section {
        padding: 15px 0 0px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 8px;
    }
    
    .category-card {
        border-radius: 8px;
    }
    
    .category-image {
        height: 100px;
    }
    
    .category-title {
        font-size: 20px;
    }
    
    .category-subtitle {
        font-size: 12px;
    }
    
    .security-section {
        padding: 15px 0;
    }
    
    .security-info h2 {
        font-size: 18px;
    }
    
    .security-info .subtitle {
        font-size: 14px;
    }
    
    .btn-security-primary,
    .btn-security-secondary {
        padding: 4px 12px;
        font-size: 13px;
    }
    
    .security-note {
        font-size: 13px;
    }
    
    .support-section {
        padding: 20px 0;
    }
    
    .support-info h2 {
        font-size: 1.4rem;
    }
    
    .support-info h3 {
        font-size: 1rem;
    }
    
    .support-description {
        font-size: 0.85rem;
    }
    
    .btn-support {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .support-qr img {
        width: 80px;
        height: 80px;
    }
    
    .policy-text {
        font-size: 12px;
    }
    
    .policy-details {
        font-size: 10px;
    }
    
    .footer-content {
        padding: 0 10px;
    }
    
    .footer-info {
        gap: 20px;
    }
    
    .footer-column h4 {
        font-size: 13px;
    }
    
    .footer-column li {
        font-size: 11px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .category-card,
    .category-card:hover,
    .category-image img,
    .category-card:hover .category-image img,
    .security-character img,
    .social-link,
    .btn-security-primary,
    .btn-security-secondary,
    .btn-support {
        transition: none;
    }
    
    .category-card:hover {
        transform: none;
    }
    
    .category-card:hover .category-image img {
        transform: none;
    }
}