/* style/casino.css */
:root {
    --niceph-primary: #F2C14E;
    --niceph-secondary: #FFD36B;
    --niceph-card-bg: #111111;
    --niceph-background: #0A0A0A;
    --niceph-text-main: #FFF6D6;
    --niceph-border: #3A2A12;
    --niceph-glow: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-casino {
    font-family: Arial, sans-serif;
    color: var(--niceph-text-main); /* Main text color for the page */
    background-color: var(--niceph-background); /* Body background from shared.css is dark */
    line-height: 1.6;
}

.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-casino__section {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.page-casino__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--niceph-primary);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__section-description {
    font-size: 1.1em;
    color: rgba(255, 246, 214, 0.8);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__text-block p,
.page-casino li {
    color: var(--niceph-text-main);
    margin-bottom: 15px;
}

.page-casino__text-block h3 {
    color: var(--niceph-secondary);
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Buttons */
.page-casino__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.page-casino__cta-buttons--center {
    justify-content: center;
}

.page-casino__cta-buttons--margin-top {
    margin-top: 50px;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-casino__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-casino__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-casino__btn-secondary {
    background: transparent;
    color: var(--niceph-primary);
    border: 2px solid var(--niceph-primary);
}

.page-casino__btn-secondary:hover {
    background: var(--niceph-primary);
    color: #ffffff;
}

.page-casino__btn-text {
    background: none;
    color: var(--niceph-secondary);
    border: none;
    padding: 8px 0;
    text-decoration: underline;
}

.page-casino__btn-text:hover {
    color: var(--niceph-primary);
}

/* Cards */
.page-casino__card {
    background: var(--niceph-card-bg);
    border: 1px solid var(--niceph-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--niceph-text-main);
}

.page-casino__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__card h3 {
    color: var(--niceph-primary);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.page-casino__card p {
    color: rgba(255, 246, 214, 0.8);
    font-size: 0.95em;
}

/* Images */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-casino__image-full {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.page-casino__image-half {
    width: calc(50% - 10px);
    height: auto;
    object-fit: cover;
}

.page-casino__image-margin-top {
    margin-top: 40px;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-casino__hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-casino__hero-slides {
    display: flex;
    width: 300%; /* For 3 slides */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.page-casino__hero-slide {
    width: 33.333%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.page-casino__hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.page-casino__hero-slide.active {
    opacity: 1;
}

.page-casino__hero-content-wrapper {
    position: relative;
    z-index: 10;
    padding: 40px 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.7); /* Semi-transparent background for readability */
    margin-top: auto; /* Pushes content to the bottom */
}

.page-casino__hero-content {
    text-align: center;
}

.page-casino__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    color: var(--niceph-primary);
    margin-bottom: 15px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 900;
}

.page-casino__hero-description {
    font-size: 1.2em;
    color: rgba(255, 246, 214, 0.9);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.page-casino__hero-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.page-casino__hero-dot.active {
    background: var(--niceph-primary);
}

/* Content Grid */
.page-casino__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-casino__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-casino__content-grid .page-casino__text-block,
.page-casino__content-grid .page-casino__image-full {
    flex: 1;
}

/* Games Showcase */
.page-casino__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-casino__category-item {
    background: var(--niceph-card-bg);
    border: 1px solid var(--niceph-border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-casino__category-item:hover {
    transform: translateY(-5px);
}

.page-casino__category-item img {
    
    
    margin: 0 auto 15px auto;
    object-fit: contain;
    border-radius: 0;
}

.page-casino__category-item h3 {
    color: var(--niceph-secondary);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.page-casino__category-item p {
    color: rgba(255, 246, 214, 0.7);
    font-size: 0.9em;
    min-height: 80px;
}

.page-casino__games-images {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Bonuses */
.page-casino__bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__bonus-grid .page-casino__card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__bonus-grid .page-casino__card .page-casino__btn-primary,
.page-casino__bonus-grid .page-casino__card .page-casino__btn-secondary {
    margin-top: auto;
    align-self: center;
    width: 100%;
}

/* Payment Methods */
.page-casino__payment-methods-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__payment-methods-list .page-casino__card {
    text-align: center;
}

/* Customer Support */
.page-casino__support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__support-options .page-casino__card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__support-options .page-casino__card .page-casino__btn-text {
    margin-top: auto;
    align-self: center;
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: #0d0d0d;
}

.page-casino__faq-list {
    margin-top: 40px;
}

.page-casino__faq-item {
    background: var(--niceph-card-bg);
    border: 1px solid var(--niceph-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background: var(--niceph-card-bg);
    color: var(--niceph-primary);
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 1px solid var(--niceph-border);
}

.page-casino__faq-item.active .page-casino__faq-question {
    border-bottom: none;
}

.page-casino__faq-question:hover {
    background: rgba(242, 193, 78, 0.1);
}

.page-casino__faq-question h3 {
    margin: 0;
    color: var(--niceph-primary);
    font-size: 1.1em;
}

.page-casino__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--niceph-secondary);
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg);
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: rgba(255, 246, 214, 0.8);
    background: var(--niceph-card-bg);
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 25px !important;
}

.page-casino__faq-answer p {
    margin-bottom: 0;
}

/* Responsible Gaming */
.page-casino__responsible-gaming {
    background-color: #0d0d0d;
}

/* Latest News */
.page-casino__latest-news {
    background-color: #0d0d0d;
}

.page-casino__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__news-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--niceph-border);
}

.page-casino__news-card img {
    width: 100%;
    height: 200px; /* Fixed height for news card images */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.page-casino__news-card h3 {
    padding: 15px 20px 0 20px;
    margin-top: 0;
    font-size: 1.3em;
    line-height: 1.3;
}

.page-casino__news-card h3 a {
    color: var(--niceph-primary);
    text-decoration: none;
}

.page-casino__news-card h3 a:hover {
    text-decoration: underline;
}

.page-casino__news-card p {
    padding: 0 20px 15px 20px;
    font-size: 0.9em;
    color: rgba(255, 246, 214, 0.7);
}

.page-casino__news-card .page-casino__btn-text {
    display: block;
    text-align: left;
    padding: 0 20px 20px 20px;
}

/* Partners */
.page-casino__partners {
    background-color: #0d0d0d;
}

.page-casino__partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-casino__partner-logos img {
    
    
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(150%); /* Make logos adapt to dark background, not changing original color */
    opacity: 0.7;
    transition: opacity 0.3s ease;
    border-radius: 0;
}

.page-casino__partner-logos img:hover {
    opacity: 1;
}

/* About niceph section - expandable content */
.page-casino__about-niceph {
    padding-bottom: 80px;
}

.page-casino__expandable-content {
    max-height: 500px; /* Initial height */
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    position: relative;
}

.page-casino__expandable-content.collapsed {
    max-height: 250px; /* Collapsed height */
}

.page-casino__expandable-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Gradient fade effect */
    background: linear-gradient(to top, var(--niceph-background), transparent);
    pointer-events: none;
    transition: opacity 0.5s ease-out;
}

.page-casino__expandable-content.collapsed::after {
    opacity: 1;
}

.page-casino__expandable-content:not(.collapsed)::after {
    opacity: 0;
}

.page-casino__load-less-btn {
    margin-top: 30px;
    color: var(--niceph-primary);
    border-color: var(--niceph-primary);
    background-color: transparent;
}

.page-casino__load-less-btn:hover {
    background-color: var(--niceph-primary);
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__section-title {
        font-size: 2em;
    }

    .page-casino__hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .page-casino__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-casino__hero-section {
        height: 50vh;
        min-height: 350px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media */
    }

    .page-casino__hero-content-wrapper {
        padding: 20px 0;
    }

    .page-casino__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        padding: 0 15px;
    }

    .page-casino__hero-description {
        font-size: 1em;
        padding: 0 15px;
    }

    .page-casino__section {
        padding: 30px 0;
    }

    .page-casino__section-title {
        font-size: 1.8em;
        padding: 0 15px;
    }

    .page-casino__section-description {
        font-size: 1em;
        padding: 0 15px;
    }

    .page-casino__content-grid {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }

    .page-casino__content-grid--reverse {
        flex-direction: column;
    }

    .page-casino__content-grid .page-casino__text-block,
    .page-casino__content-grid .page-casino__image-full {
        width: 100%;
    }

    .page-casino__games-images {
        flex-direction: column;
        gap: 20px;
    }

    .page-casino__image-half {
        width: 100%;
    }

    .page-casino__game-categories,
    .page-casino__bonus-grid,
    .page-casino__payment-methods-list,
    .page-casino__support-options,
    .page-casino__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-casino__cta-button,
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino a[class*="button"],
    .page-casino a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    .page-casino__cta-buttons,
    .page-casino__button-group,
    .page-casino__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }

    .page-casino__faq-question,
    .page-casino__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-casino__section,
    .page-casino__card,
    .page-casino__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__partner-logos {
        gap: 20px;
        padding: 0 15px;
    }

    .page-casino__partner-logos img {
        
        
    }

    .page-casino__expandable-content.collapsed {
        max-height: 200px; /* Adjust for mobile */
    }

    .page-casino__news-card img {
        
    }
}

@media (max-width: 480px) {
    .page-casino__hero-section {
        height: 45vh;
        min-height: 300px;
    }
    .page-casino__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-casino__hero-description {
        font-size: 0.9em;
    }
    .page-casino__section-title {
        font-size: 1.5em;
    }
    .page-casino__category-item p {
        min-height: 60px;
    }
}