/* ===== SWIPER BANNER SECTION ===== */
.royal-banner {
    background: #222;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.royal-swiper-banner {
    width: 100%;
    height: 100%;
}

/* Slide item */
.royal-swiper-banner-item {
    width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Image zoom animation */
.royal-swiper-banner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    animation: imageZoom 15s infinite ease-in-out;
    z-index: 1;
}

@keyframes imageZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Overlay */
.royal-swiper-banner-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

/* Content container */
.royal-swiper-banner-item .royal-container {
    z-index: 3;
}

.royal-banner-info {
    margin-bottom: 30px;
}

/* Title with breathing effect */
.royal-banner-info h1 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.royal-gold-text {
    color: #b8941f !important;
    animation: breathe 3s infinite ease-in-out;
}

@keyframes breathe {
    0%, 100% { 
        opacity: 0.6; 
        font-size: 100%; 
        text-shadow: 0 0 10px rgba(184, 148, 31, 0.5); 
    }
    50% { 
        opacity: 1; 
        font-size: 102%; 
        text-shadow: 0 0 20px rgba(184, 148, 31, 0.8); 
    }
}

.royal-banner-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -moz-box;
    -moz-line-clamp: 2;
    -moz-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@supports (-moz-appearance: none) {
    .royal-banner-info p { 
        max-height: 4.8em; 
        position: relative; 
    }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .royal-banner-info p { 
        max-height: 4.8em; 
        white-space: nowrap; 
        text-overflow: ellipsis; 
    }
}

/* Buttons */
.royal-banner-btns {
    display: flex;
    gap: 20px;
}

.royal-banner-btns a {
    font-size: 15px;
    padding: .8em 1.5em;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.royal-banner-btns a:nth-child(2) {
    animation-delay: 0.3s;
}

/* Pagination */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
    background: #b8941f !important;
    transform: scale(1.2);
}

/* Navigation buttons */
.royal-banner-next,
.royal-banner-prev {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.royal-banner-next:after,
.royal-banner-prev:after {
    content: none;
}

.royal-banner-next i,
.royal-banner-prev i {
    color: #ffffff;
    font-size: 15px;
}

.royal-banner-next:hover,
.royal-banner-prev:hover {
    background: rgba(184, 148, 31, 0.3);
    transform: scale(1.1);
}

.royal-banner-next {
    right: 20px !important;
}

.royal-banner-prev {
    left: 20px !important;
}

/* ===== PRODUCTS SECTION ===== */
.royal-index-products-section {
    padding: 60px 0;
    overflow: hidden;
}

/* Products Grid */
.royal-index-products-grid {
    margin: 0 -15px;
}

.royal-index-product-item {
    padding: 15px;
}

/* Product Card */
.royal-index-product-card {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    background-color: #fff;
    position: relative;
    border: 1px solid #f0f0f0;
}

.royal-index-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
}

.royal-index-product-img-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.royal-index-product-img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    overflow: hidden;
}

.royal-index-product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.royal-index-product-card:hover .royal-index-product-img {
    transform: scale(1.1);
}

.royal-index-product-content {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.royal-index-product-info {
    padding: 0 30px;
}

.royal-index-product-card:hover .royal-index-product-content {
    background-color: rgba(0, 0, 0, 0.6);
}

.royal-index-product-name {
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.royal-index-product-desc {
    line-height: 1.6;
    color: #ccc;
}

.royal-index-product-btn {
    transform: translateY(10px);
    opacity: 0;
}

.royal-index-product-card:hover .royal-index-product-btn {
    transform: translateY(0);
    opacity: 1;
}

/* ===== APPLICATIONS SECTION ===== */
.royal-index-applications-section {
    background: #F6F6F6;
    overflow: hidden;
    padding: 60px 0;
}

/* Applications Grid */
.royal-index-applications-grid {
    margin: 0 -15px;
}

.royal-index-applications-item {
    padding: 15px;
}

/* Applications Card */
.royal-index-applications-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    background: transparent;
    position: relative;
}

.royal-index-applications-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Icon Container */
.royal-index-applications-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Icon Content */
.royal-index-applications-icon i {
    font-size: 30px;
    color: #C9A227;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    position: relative;
}

/* Icon Background Effects */
.royal-index-applications-icon:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #C9A227 0%, #b8941f 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Hover Effects */
.royal-index-applications-card:hover .royal-index-applications-icon {
    transform: rotateY(180deg);
    box-shadow: 0 10px 20px #b8941f3a;
}

.royal-index-applications-card:hover .royal-index-applications-icon:before {
    opacity: 1;
}

.royal-index-applications-card:hover .royal-index-applications-icon i {
    transform: rotateY(-180deg) scale(1.1);
    color: #fff;
}

.royal-index-applications-name {
    font-size: 20px; 
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.royal-index-applications-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    transition: color 0.3s ease;
}

/* ===== BRAND SECTION ===== */
.royal-index-brand-section {
    padding: 90px 0;
    background: #fff;
    overflow: hidden;
}

.royal-index-brand-content {
    display: flex;
    gap: 60px;
}

/* Image Section */
.royal-index-brand-img {
    position: relative; 
    height: 600px;
}

.royal-index-brand-imgtop,
.royal-index-brand-imgimddle,
.royal-index-brand-imgbottom { 
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    position: absolute;
}

.royal-index-brand-imgtop {
    width: 80%;
    height: 30%; 
    top: 0;
    right: 0;
    z-index: 1;
}

.royal-index-brand-imgimddle {
    width: 60%;
    height: 30%;  
    top: 35%;
    right: 0;
    z-index: 2;
}

.royal-index-brand-imgbottom {
    width: 90%;
    height: 30%; 
    top: 70%;
}

.royal-index-brand-imgtop img,
.royal-index-brand-imgimddle img,
.royal-index-brand-imgbottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Info Section */
.royal-index-brand-info {
    overflow: hidden;
    padding-top: 30px;
}

.royal-index-brand-name {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.royal-index-brand-desc {  
    color: #666;
    margin-bottom: 15px;
}

/* Advantages List */
.royal-index-brand-adv {
    overflow: hidden;
    margin: 30px 0 0;
}
.royal-index-brand-adv ul{
    overflow: hidden;
    padding: 0;
    list-style: none;
}

.royal-index-brand-adv li {
 
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    margin-bottom: 15px;
    position: relative;
    text-indent: 20px;
}

.royal-index-brand-adv  em {
    color: #b8941f;   
    transition: transform 0.3s ease;
    position: absolute;
    left: -5px;
    top: 50%;
    text-align: center;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-top: -8px;
}

.royal-index-brand-adv-item:hover i {
    transform: translateX(5px);
}

.royal-index-brand-adv-item p { 
    line-height: 1.6;
    color: #666;
    margin: 0;
    flex: 1;
}

/* Button */
.royal-index-brand-more { 
    margin-top: 20px;
}

/* ===== SERVICES SECTION ===== */
.royal-index-services-section {
    background: #F6F6F6;
    overflow: hidden;
    padding: 60px 0;
}

/* Services Grid */
.royal-index-services-grid {
    margin: 0 -15px;
}

.royal-index-services-item {
    padding: 15px;
}

/* Services Card */
.royal-index-services-card {
    display: flex;
    flex-direction: column; 
    padding: 60px 30px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    background: transparent;
    position: relative;
    background: #ffffff82;
}

.royal-index-services-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Icon Container */
.royal-index-services-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Icon Content */
.royal-index-services-icon i {
    font-size: 30px;
    color: #C9A227;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    position: relative;
}

/* Icon Background Effects */
.royal-index-services-icon:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #C9A227 0%, #b8941f 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Hover Effects */
.royal-index-services-card:hover .royal-index-services-icon {
    transform: rotateY(180deg);
    box-shadow: 0 10px 20px #b8941f3a;
}

.royal-index-services-card:hover .royal-index-services-icon:before {
    opacity: 1;
}

.royal-index-services-card:hover .royal-index-services-icon i {
    transform: rotateY(-180deg) scale(1.1);
    color: #fff;
}

.royal-index-services-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -moz-box;
    -moz-line-clamp: 1;
    -moz-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@supports (-moz-appearance: none) {
    .royal-index-services-name { 
        max-height: 4.8em; 
        position: relative; 
    }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .royal-index-services-name { 
        max-height: 4.8em; 
        white-space: nowrap; 
        text-overflow: ellipsis; 
    }
}

.royal-index-services-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    transition: color 0.3s ease;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 992px) {
    /* Banner Section */
    .royal-banner {
        height: 60vh;  
    }
    
    .royal-banner-content {
        text-align: center;
    }
    
    .royal-banner-info h1 {
        font-size: 24px;    
    }
    
    .royal-banner-info p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .royal-banner-btns {
        display: block;
    }
    
    .royal-banner-btns a {
        display: inline-block;
        margin: 0 5px;
        font-size: 14px;
    }
    
    /* Hide navigation buttons */
    .royal-banner-next,
    .royal-banner-prev {
        display: none;
    }
    
    /* Pagination */
    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
    
    /* Products Section */
    .royal-index-products-section {
        padding: 30px 0;  
    }
    
    .royal-index-products-grid {
        padding: 0 5px;
    }
    
    .royal-index-product-item {
        padding: 5px;
    }
    
    .royal-index-product-card {
        border-radius: 10px;
    }
    
    .royal-index-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }
    
    .royal-index-product-name {
        font-size: 16px;  
        margin-bottom: 0;
    }
    
    .royal-index-product-desc {
        font-size: 12px;
        display: none;
    }
    
    .royal-index-product-info {
        padding: 0 15px;
    }
    
    .royal-index-product-btn {
        display: none;
    }
    
    /* Applications Section */
    .royal-index-applications-section {
        padding: 30px 0 25px; 
    }
    
    .royal-index-applications-grid {
        padding: 0 10px;
    }
    
    .royal-index-applications-item {
        padding: 5px;
    }
    
    .royal-index-applications-card {
        padding: 30px 15px;
        border-radius: 10px;
        background: #fff;
    }
    
    .royal-index-applications-icon {
        width: 60px;
        height: 60px;
        border-radius: 10px;
        margin-bottom: 15px;
    }
    
    .royal-index-applications-icon i {
        font-size: 20px;
    }
    
    .royal-index-applications-name {
        font-size: 16px;
        margin-bottom: 0;
    }
    
    .royal-index-applications-desc {
        font-size: 12px;
        display: none;
    }
    
    /* Brand Section */
    .royal-index-brand-section {
        padding: 30px 0;
    }
    
    .royal-index-brand-content {
        display: block;
        gap: 0;
    }
    
    .royal-index-brand-img {
        height: 300px;
        margin-bottom: 60px;
    }
    
    .royal-index-brand-imgtop,
    .royal-index-brand-imgimddle,
    .royal-index-brand-imgbottom {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    }
    
    .royal-index-brand-imgtop {
        width: 100%;
        height: 35%;
    }
    
    .royal-index-brand-imgimddle {
        width: 100%;
        height: 35%;
        top: 40%; 
    }
    
    .royal-index-brand-imgbottom {
        width: 100%;
        height: 35%;
        top: 80%;
    }
    
    .royal-index-brand-info {
        padding-top: 0;
    }
    
    .royal-index-brand-name {
        font-size: 20px;
        margin-bottom: 0;
    }
    
    .royal-index-brand-desc {
        font-size: 14px;
        margin-bottom: 15px; 
    }
    
    .royal-index-brand-adv {
        margin: 20px 0 0;
    }
    
 
    
     .royal-index-brand-adv em {
        display: none;
    }
    
     .royal-index-brand-adv li {
        text-indent: 0;
    }
    
    .royal-index-brand-more {
        margin-top: 10px;
        text-align: center;
    }
    
    /* Services Section */
    .royal-index-services-section {
        padding: 30px 0;
    }
    
    .royal-index-services-grid {
        padding: 0 10px;
    }
    
    .royal-index-services-item {
        padding: 5px;
    }
    
    .royal-index-services-card {
        padding: 30px 15px;
        border-radius: 10px;
        background: #fff;
    }
    
    .royal-index-services-icon {
        width: 60px;
        height: 60px;
        border-radius: 10px;
        margin-bottom: 15px;
    }
    
    .royal-index-services-icon i {
        font-size: 20px;
    }
    
    .royal-index-services-name {
        font-size: 16px;
        margin-bottom: 0;
    }
    
    .royal-index-services-desc {
        font-size: 12px;
        display: none;
    }
    
    /* Reduce hover animation */
    .royal-index-services-card:hover,
    .royal-index-applications-card:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
}