/* 
 * Abangda88 - Responsible Gaming Page Styles
 * Specific styles for the Responsible Gaming page
 */

/* Hero Section */
.rg-hero {
    background: linear-gradient(rgba(9, 30, 91, 0.85), rgba(9, 30, 91, 0.85)), url('/img/responsible-gaming-hero.jpg') no-repeat center center;
    background-size: cover;
    padding: 5rem 0;
    color: white;
    text-align: center;
    position: relative;
}

.rg-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.rg-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Introduction Section */
.rg-intro {
    padding: 5rem 0;
    background: white;
}

.rg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.rg-content h2 {
    color: #091e5b;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.rg-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #0056b3;
}

.rg-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #444;
}

.rg-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.rg-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.rg-image:hover img {
    transform: scale(1.03);
}

/* Guidelines Section */
.rg-guidelines {
    padding: 5rem 0;
    background-color: #f0f7ff;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #091e5b;
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0056b3;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
    font-size: 1.1rem;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.guideline-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.guideline-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.guideline-icon {
    width: 80px;
    height: 80px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.guideline-icon img {
    width: 40px;
    height: 40px;
}

.guideline-card h3 {
    margin-bottom: 1rem;
    color: #091e5b;
}

.guideline-card p {
    color: #666;
    line-height: 1.6;
}

/* Tools Section */
.rg-tools {
    padding: 5rem 0;
    background: white;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #0056b3;
}

.tool-icon {
    width: 100px;
    height: 100px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.tool-icon img {
    width: 50px;
    height: 50px;
}

.tool-card h3 {
    margin-bottom: 1rem;
    color: #091e5b;
}

.tool-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tool-btn {
    background: #0056b3;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background: #003d82;
    transform: translateY(-2px);
}

/* Warning Signs Section */
.rg-warning-signs {
    padding: 5rem 0;
    background-color: #f0f7ff;
}

.warning-signs-list {
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
}

.warning-signs-list li {
    margin-bottom: 0.8rem;
    color: #444;
    line-height: 1.6;
}

/* Help Resources Section */
.rg-help-resources {
    padding: 5rem 0;
    background: white;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #0056b3;
}

.resource-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.resource-logo img {
    max-width: 100%;
    max-height: 100%;
}

.resource-card h3 {
    margin-bottom: 1rem;
    color: #091e5b;
}

.resource-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.resource-contact {
    text-align: left;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

.contact-item {
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #003d82;
    text-decoration: underline;
}

/* FAQ Section */
.rg-faq {
    padding: 5rem 0;
    background-color: #f0f7ff;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    padding: 1.5rem 0;
    font-weight: 700;
    color: #091e5b;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.faq-question:after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.faq-question.active:after {
    content: "-";
}

.faq-answer {
    display: none;
    padding-bottom: 1.5rem;
}

.faq-answer.show {
    display: block;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #444;
}

.faq-answer ul, 
.faq-answer ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: #444;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Commitment Banner */
.rg-commitment-banner {
    padding: 4rem 0;
    background: linear-gradient(135deg, #091e5b 0%, #1139af 100%);
    color: white;
    text-align: center;
}

.commitment-content {
    max-width: 800px;
    margin: 0 auto;
}

.commitment-content h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.commitment-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.commitment-cta {
    margin-top: 2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    max-width: 600px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.modal-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
}

.modal-header h3 {
    color: #091e5b;
    margin: 0;
}

.modal-body {
    color: #444;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-form-group {
    margin-bottom: 1.5rem;
}

.modal-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.modal-form-group select,
.modal-form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.modal-form-group input[type="number"] {
    -moz-appearance: textfield;
}

.modal-form-group input[type="number"]::-webkit-outer-spin-button,
.modal-form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-cancel {
    background: #f2f2f2;
    color: #666;
    border: 1px solid #ddd;
}

.modal-btn-cancel:hover {
    background: #e6e6e6;
}

.modal-btn-save {
    background: #0056b3;
    color: white;
    border: none;
}

.modal-btn-save:hover {
    background: #003d82;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .rg-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Reorder grid items */
    .rg-grid .rg-content:nth-child(1) {
        order: 2;
    }
    
    .rg-grid .rg-image:nth-child(1) {
        order: 1;
    }
    
    .guidelines-grid,
    .tools-grid,
    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .rg-hero h1 {
        font-size: 2rem;
    }
    
    .rg-hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .guideline-card,
    .tool-card,
    .resource-card {
        padding: 1.5rem;
    }
    
    .guideline-icon,
    .tool-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .guideline-icon img,
    .tool-icon img {
        width: 35px;
        height: 35px;
    }
    
    .modal-content {
        margin: 15% auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .rg-hero h1 {
        font-size: 1.8rem;
    }
    
    .rg-hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .guidelines-grid,
    .tools-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 1.2rem;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-btn {
        width: 100%;
    }
}