/* ========================================
   SECTION 4: KARPET MERAH
   ======================================== */

.karpet-section {
    background: #00A0DF;
    padding: 80px 20px 270px;
    text-align: center;
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* Widget Image for Section 4 - Desktop Only */
.karpet-widget {
    position: absolute;
    left: 0;
    top: 150px;
    width: 180px;
    height: auto;
    z-index: 2;
    display: none;
}

/* .karpet-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 50px,
        rgba(255, 255, 255, 0.03) 50px,
        rgba(255, 255, 255, 0.03) 100px
    );
    z-index: 0;
} */

.karpet-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.karpet-image {
    width: 800px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 40px;
    /* border-radius: 20px; */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInScale 1s ease-out;
    display: block;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.karpet-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 56px;
    color: var(--title-yellow);
    text-transform: uppercase;
    margin-bottom: 30px;
    text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.watch-button {
    display: inline-block;
    background: #FFDA11;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    padding: 18px 50px;
    /* border-radius: 50px; */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.watch-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.watch-button:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    color: #000;
}

.watch-button:hover::before {
    width: 300px;
    height: 300px;
}

/* ========================================
   FOOTER SECTION
   ======================================== */

.footer-section {
    background: #F73ACB;
    padding: 80px 30px 40px;
    text-align: center;
    position: relative;
    margin-top: -225px;
    z-index: 10;
    border-top-left-radius: 233.5px;
    border-top-right-radius: 233.5px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Logo */
.footer-logo {
    width: 255px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 50px;
    /* filter: brightness(0) invert(1); */
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Sponsors Section */
.sponsors-container {
    margin-bottom: 50px;
}

.sponsors-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.sponsor-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.sponsor-label {
    /* font-style: light; */
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1;
    /* opacity: 0.7; */
}

.sponsor-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.sponsor-logo-wrapper img {
    max-width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.sponsor-logo-wrapper img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Individual Sponsor Logo Sizes - Controllable */
.sponsor-logo-1 {
    width: 154px;
    height: auto;
}


.sponsor-logo-2 {
    width: 200px;
    height: auto;
}

.sponsor-logo-3 {
    width: 150px;
    height: auto;
}

/* Rakan Media Section */
.rakan-media-section {
    margin-top: 60px;
    margin-bottom: 50px;
}

.rakan-media-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 10px;
    /* opacity: 0.7; */
}

.rakan-media-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.rakan-media-grid img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.rakan-media-grid img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Rakan Media Logo Sizes - Controllable */
.rakan-logo-1 {
    width: 120px;
    height: auto;
}

.rakan-logo-2 {
    width: 110px;
    height: auto;
}

.rakan-logo-3 {
    width: 130px;
    height: auto;
}

.rakan-logo-4 {
    width: 130px;
    height: auto;
}

.rakan-logo-5 {
    width: 80px;
    height: auto;
}

.rakan-logo-6 {
    width: 130px;
    height: auto;
}

/* ========================================
   COPYRIGHT SECTION - SEPARATE FROM FOOTER
   ======================================== */

.copyright-section {
    background: #000000;
    padding: 20px 20px;
    text-align: center;
    width: 100%;
}

.copyright-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.copyright-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #FFFFFF;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 0;
}

.copyright-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.copyright-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copyright-links a:hover {
    color: var(--title-yellow);
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Desktop Large (1400px and up) */
@media (min-width: 1400px) {
    .karpet-widget {
        display: block;
        width: 90px;
        height: auto;
        top: -25px;
    }
    
    .karpet-title {
        font-size: 64px;
    }
    
    .sponsor-label {
        font-size: 12px;
    }
    
    .rakan-media-title {
        font-size: 12px;
    }
}

/* Desktop (768px to 1399px) */
@media (min-width: 768px) and (max-width: 1399px) {
    .karpet-widget {
        display: block;
        width: 90px;
        height: auto;
        top: -25px;
    }
    
    .karpet-image {
        width: 700px;
    }
    
    .karpet-title {
        font-size: 48px;
    }
    
    .sponsor-label {
        font-size: 12px;
    }
    
    .rakan-media-title {
        font-size: 12px;
    }
    
    .sponsors-row {
        gap: 40px;
    }
}

/* Tablet/Mobile (below 768px) */
@media (max-width: 767px) {
    .karpet-section {
        padding: 60px 15px 300px;
    }
    
    .karpet-widget {
        display: none;
    }
    
    .karpet-image {
        width: 400px;
        max-width: 100%;
        border-radius: 15px;
        margin-bottom: 30px;
    }
    
    .karpet-title {
        font-size: 36px;
        margin-bottom: 25px;
    }
    
    .watch-button {
        font-size: 16px;
        padding: 15px 40px;
    }
    
    /* Footer Mobile */
    .footer-section {
        padding: 60px 20px 50px;
        margin-top: -200px;
        border-top-left-radius: 220px;
        border-top-right-radius: 220px;
    }
    
    .footer-logo {
        width: 200px;
        margin-bottom: 40px;
    }
    
    .sponsors-row {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .sponsor-label {
        font-size: 12px;
    }
    
    .sponsor-logo-1 {
        width: 130px;
    }
    
    .sponsor-logo-2 {
        width: 160px;
    }
    
    .sponsor-logo-3 {
        width: 130px;
    }
    
    .rakan-media-section {
        margin-top: 50px;
        margin-bottom: 40px;
    }
    
    .rakan-media-title {
        font-size: 12px;
        margin-bottom: 25px;
    }
    
    .rakan-media-grid {
        gap: 25px;
        max-width: 100%;
    }
    
    /* Mobile: 2 rows with 3 items each */
    .rakan-media-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        
    }
    
    .rakan-logo-1,
    .rakan-logo-2,
    .rakan-logo-3,
    .rakan-logo-4,
    .rakan-logo-5,
    .rakan-logo-6 {
        width: 100%;
        max-width: 115px;
    }
    
    .copyright-section {
        padding: 25px 15px;
    }
    
    .copyright-content {
        flex-direction: column;
        gap: 10px;
        max-width: 350px;
    }
    
    .copyright-text {
        max-width: 100%;
    }
    
    .copyright-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Small Mobile (400px and below) */
@media (max-width: 400px) {
    .karpet-section {
        padding: 50px 10px 300px;
    }
    
    .karpet-image {
        width: 100%;
        max-width: 350px;
    }
    
    .karpet-title {
        font-size: 28px;
    }
    
    .watch-button {
        font-size: 14px;
        padding: 12px 35px;
    }
    
    .footer-section {
        padding: 50px 15px 40px;
        margin-top: -200px;
        border-top-left-radius: 180px;
        border-top-right-radius: 180px;
    }
    
    .footer-logo {
        width: 180px;
        margin-bottom: 35px;
    }
    
    .sponsor-label {
        font-size: 11px;
    }
    
    .sponsor-logo-1 {
        width: 130px;
    }
    
    .sponsor-logo-2 {
        width: 140px;
    }
    
    .sponsor-logo-3 {
        width: 130px;
    }
    
    .rakan-media-title {
        font-size: 11px;
    }
    
    .rakan-media-grid {
        gap: 15px;
    }
    
    .rakan-logo-1,
    .rakan-logo-2,
    .rakan-logo-3,
    .rakan-logo-4,
    .rakan-logo-5,
    .rakan-logo-6 {
        max-width: 100px;
    }
    
    .copyright-text {
        font-size: 12px;
        max-width: 350px;
    }
    
    .copyright-links a {
        font-size: 12px;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .karpet-title {
        font-size: 24px;
    }
    
    .footer-section {
        border-top-left-radius: 150px;
        border-top-right-radius: 150px;
    }
    
    .footer-logo {
        width: 160px;
    }
    
    .rakan-logo-1,
    .rakan-logo-2,
    .rakan-logo-3,
    .rakan-logo-4,
    .rakan-logo-5,
    .rakan-logo-6 {
        max-width: 100px;
    }
}