/* --- Master Reset & Globals --- */
*, *::before, *::after { box-sizing: border-box; }
.policies-wrapper { background: #fff; color: #1e272e; font-family: 'Montserrat', sans-serif; overflow-x: hidden; width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; width: 100%; }

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; color: #1e272e; margin-top: 0; word-wrap: break-word; }
.sub-title { text-transform: uppercase; letter-spacing: 5px; font-size: 0.75rem; color: #b08d57; font-weight: 700; display: block; margin-bottom: 10px; }
.gold-divider.center { width: 50px; height: 1px; background: #b08d57; margin: 20px auto; }
.section-intro { text-align: center; margin-bottom: 60px; }

/* --- Reveal Animation --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Hero Section --- */
.hero { height: 50vh; min-height: 400px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; border-bottom: 4px solid #b08d57; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(30, 39, 46, 0.5); }
.hero-overlay { position: relative; z-index: 1; color: #fff; padding: 0 20px; }
.hero-overlay h2 { color: #fff; font-size: clamp(2.5rem, 6vw, 4rem); margin: 0; letter-spacing: 2px; }
.hero-overlay p { text-transform: uppercase; letter-spacing: 4px; font-size: 0.9rem; margin-bottom: 15px; font-weight: 700; color: #b08d57; }

/* --- Policies Content Grid --- */
.policies-content { padding: 100px 0; background: #fafafa; }

.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Reduced min-width to prevent overflow */
    gap: 30px;
    width: 100%;
}

.policy-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    width: 100%;
    word-wrap: break-word; /* Prevents long URLs or text from breaking the card */
}

.policy-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.06); }

/* The Fine Print Highlight */
.highlight-card { border-left: 4px solid #b08d57; background: #fffdfa; }

.policy-card h3 {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.cat-icon { margin-right: 15px; font-size: 1.6rem; flex-shrink: 0; }

.policy-card p { color: #555; line-height: 1.7; font-size: 0.95rem; margin-bottom: 0; }

.policy-card ul { list-style: none; padding: 0; margin: 0; }
.policy-card li { position: relative; padding-left: 25px; margin-bottom: 15px; color: #555; font-size: 0.95rem; line-height: 1.6; }
.policy-card li:last-child { margin-bottom: 0; }
.policy-card li::before { content: '•'; position: absolute; left: 0; top: -2px; color: #b08d57; font-size: 1.5rem; line-height: 1; }
.policy-card li strong { color: #1e272e; }

/* Wider layout for dense information (like Children/Beds) */
@media (min-width: 992px) {
    .span-2 { grid-column: span 2; }
    .split-list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
}

.split-list strong { 
    display: block; 
    color: #1e272e; 
    margin-bottom: 15px; 
    font-family: 'Playfair Display', serif; 
    font-size: 1.1rem; 
    border-bottom: 1px dashed #eee; 
    padding-bottom: 10px; 
}

/* --- PAYMENT CARDS --- */
.payment-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.pay-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    width: 75px;
    height: 48px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
    padding: 6px; 
}

.pay-card img {
    max-width: 100%;
    max-height: 28px;
    object-fit: contain;
}

.pay-card:hover {
    border-color: #b08d57;
    box-shadow: 0 8px 15px rgba(176, 141, 87, 0.15);
    transform: translateY(-3px);
}

.text-card span {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #1e272e;
    line-height: 1.1;
    text-align: center;
    padding: 0 5px;
}

.cash-card {
    background: #f8f9fa;
    border-style: dashed;
    border-color: #ccc;
}

.cash-card span {
    color: #27ae60;
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    .policies-content { padding: 60px 0; }
    
    /* Force the grid to stack strictly on mobile to completely prevent horizontal overflow */
    .policies-grid { grid-template-columns: 1fr; } 
    
    .policy-card { padding: 25px; }
    
    /* Ensure the 2-span card on desktop resets for mobile */
    .span-2 { grid-column: span 1; }
    
    .split-list { display: block; }
    .split-list > div { margin-bottom: 30px; }
    .split-list > div:last-child { margin-bottom: 0; }
}