/**
 * What's On Frontend Styles
 * 
 * @package HelloElementorChild
 * @version 1.0.0
 */

/* Reset and base styles */
.whats-on-single {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Main container */
.whats-on-main {
    width: 100%;
    /* min-height: 100vh; */
    position: relative;
    overflow-x: hidden;
}

/* Hero section */
.whats-on-hero {
    /* min-height: 100vh; */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #f7fcfc;
    color: #ffffff;
    padding: 2rem 0;
    box-sizing: border-box;
    padding-top: 8rem;
}

/* Container */
.whats-on-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding:6rem 2rem;
    position: relative;
    z-index: 2;
}

/* Content layout */
.whats-on-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Text content */
.whats-on-text-content {
    max-width: 600px;
    animation: slideInLeft 1s ease-out;
}

/* More specific selector to override Elementor styles */
/* Target Elementor kit styles specifically */
.elementor-kit-7 .whats-on-main h2.whats-on-title,
.elementor-kit-7 .whats-on-hero h2.whats-on-title,
.elementor-kit-7 .whats-on-text-content h2.whats-on-title,
.whats-on-main .whats-on-hero .whats-on-text-content h2.whats-on-title,
.whats-on-main .whats-on-hero h2.whats-on-title,
.whats-on-hero .whats-on-text-content h2.whats-on-title,
h2.whats-on-title {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 0 1.5rem 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.whats-on-description {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin: 0 0 2.5rem 0;
    color: #313283 !important;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.whats-on-description p {
    margin: 0 0 1rem 0;
}

.whats-on-description p:last-child {
    margin-bottom: 0;
}

/* CTA Button */
.whats-on-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.whats-on-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: #313283;
    fill: #ffffff;
    border-style: solid;
    border-width: 2px 2px 2px 2px;
    border-color: #313283;
}

.whats-on-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.whats-on-button:hover::before {
    left: 100%;
}

.whats-on-button:hover {
    background: transparent;
    border-color: #313283;
    transform: translateY(-2px);
    color: #313283 !important;
}

.whats-on-button-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.whats-on-button:hover .whats-on-button-icon {
    transform: translateX(4px);
}

/* Secondary CTA Button - Yellow */
.whats-on-button.whats-on-button-secondary {
    background-color: #FFD700;
    border-color: #FFD700;
    color: #313283 !important;
}

.whats-on-button.whats-on-button-secondary:hover {
    background: transparent;
    border-color: #FFD700;
    color: #313283 !important;
}

.whats-on-button.whats-on-button-secondary:hover .whats-on-button-icon {
    transform: translateX(4px);
}

/* Image content */
.whats-on-image-content {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: slideInRight 1s ease-out 0.4s forwards;
}

.whats-on-image-wrapper {
    position: relative;
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.whats-on-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.whats-on-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Background decoration */
.whats-on-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
    radial-gradient(circle at 20% 80%, #f7fcfc 0%, transparent 50%), 
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Gutenberg Content Section */
.whats-on-gutenberg-content {
    padding: 4rem 0;
    background: #ffffff;
}

.whats-on-gutenberg-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.whats-on-gutenberg-content .wp-block {
    max-width: 100%;
}

.whats-on-gutenberg-content h1,
.whats-on-gutenberg-content h2,
.whats-on-gutenberg-content h3,
.whats-on-gutenberg-content h4,
.whats-on-gutenberg-content h5,
.whats-on-gutenberg-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1e1e1e;
}

.whats-on-gutenberg-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #333333;
}

.whats-on-gutenberg-content .wp-block-image {
    margin: 2rem 0;
}

.whats-on-gutenberg-content .wp-block-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .whats-on-container {
        max-width: 1000px;
        padding: 0 1.5rem;
    }
    
    .whats-on-content {
        gap: 3rem;
    }
}

/* Tablets */
@media (max-width: 968px) {
    .whats-on-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .whats-on-text-content {
        order: 1;
        max-width: 100%;
    }
    
    .whats-on-image-content {
        order: 2;
    }
    
    .whats-on-image-wrapper {
        transform: perspective(1000px) rotateY(0deg);
        max-width: 500px;
    }
    
    .whats-on-hero {
        min-height: auto;
        padding: 4rem 0;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .whats-on-container {
        padding: 3rem 1rem;
    }
    .whats-on-cta{
        justify-content: center;
    }
    .whats-on-content {
        gap: 2rem;
        padding: 1rem 0;
    }
    
    .whats-on-main .whats-on-hero .whats-on-text-content h2.whats-on-title,
    .whats-on-main .whats-on-hero h2.whats-on-title,
    .whats-on-hero .whats-on-text-content h2.whats-on-title,
    h2.whats-on-title {
        margin-bottom: 1rem !important;
        font-size: 3rem !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        line-height: 1em !important;
    }
    
    
    .whats-on-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        color: #313283 !important;
    }
    
    .whats-on-button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
   
    }
    
    .whats-on-hero {
        padding: 6rem 0;
    }
    
    .whats-on-image-wrapper {
        max-width: 100%;
        border-radius: 15px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .whats-on-container {
        padding: 0 0.75rem;
    }
    
    .whats-on-main .whats-on-hero .whats-on-text-content h2.whats-on-title,
    .whats-on-main .whats-on-hero h2.whats-on-title,
    .whats-on-hero .whats-on-text-content h2.whats-on-title,
    h2.whats-on-title {
        font-size: clamp(1.75rem, 10vw, 2.5rem) !important;
    }
    
    .whats-on-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        background-color: #313283;
        fill: #ffffff;
        color: #ffffff;
        border-style: solid;
        border-width: 2px 2px 2px 2px;
        border-color: #313283;
    }
    
    .whats-on-image-wrapper {
        border-radius: 12px;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .whats-on-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}


/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .whats-on-text-content,
    .whats-on-description,
    .whats-on-cta,
    .whats-on-image-content {
        animation: none;
        opacity: 1;
    }
    
    .whats-on-button,
    .whats-on-image-wrapper,
    .whats-on-image {
        transition: none;
    }
    
    .whats-on-button::before {
        display: none;
    }
}

/* Print styles */
@media print {
    .whats-on-hero {
        background: #ffffff;
        color: #000000;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .whats-on-main .whats-on-hero .whats-on-text-content h2.whats-on-title,
    .whats-on-main .whats-on-hero h2.whats-on-title,
    .whats-on-hero .whats-on-text-content h2.whats-on-title,
    h2.whats-on-title {
        color: #000000;
        text-shadow: none;
    }
    
    .whats-on-description {
        color: #313283 !important;
    }
    
    .whats-on-button {
        background: #f0f0f0;
        color: #000000;
        border: 2px solid #cccccc;
    }
    
    .whats-on-bg-decoration {
        display: none;
    }
}
