/* --- Global Styles --- */
.card-price { font-size: 1.5rem; font-weight: bold; margin-bottom: 0; }
.list-unstyled li { font-size: 0.9rem; margin-bottom: 8px; }

/* Container for the 4 tiers */
.tier-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* gap: 20px; /* Increased gap slightly for shadows */
    margin: 40px auto;
    max-width: 1200px;
    padding: 20px; /* Padding so shadows aren't clipped */
}

/* --- The Card Column with Shadows --- */
.tier-column {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 15px; /* Softer corners match the image */
    border: 1px solid #eee; 
    
    /* Subtle background shadow */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
    
    /* Smooth transition for the hover lift */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect: Lifts the card and deepens the shadow */
.tier-column:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Tier-Specific Frames */
.tier-basic { border: 3px solid #2193b0; }
.tier-guided { border: 2px solid #8e44ad; }
.tier-pro { border: 3px solid #f39c12; background: #fffdf9; }

/* --- Top Section (Description) --- */
.tier-description {
    flex: 1; 
    padding: 35px 25px;
    text-align: center;
    border-bottom: 1px solid #eee; /* Default horizontal line */
}

/* Color match the horizontal line for highlighted tiers */
.tier-basic .tier-description { border-bottom: 2px solid #2193b0; }
.tier-guided .tier-description { border-bottom: 1px solid #8e44ad; }
.tier-pro .tier-description { border-bottom: 2px solid #f39c12; }

.tier-description h3 {
    margin-top: 0;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
}

.tier-description ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left; 
    display: inline-block;
}

/* --- Bottom Section (Buttons) --- */
.tier-button-row {
    padding: 30px 20px;
    text-align: center;
    background: transparent;
}

.tier-btn {
    display: inline-block;
    width: 85%;
    padding: 15px 0;
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    /* Small shadow on the button itself for depth */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s, transform 0.2s;
}

.tier-btn:hover { 
    opacity: 0.95;
    transform: scale(1.02);
}

/* Button Colors */
.btn-free { background: #bdc3c7; }
.btn-basic { background: #2193b0; }
.btn-guided { background: #8e44ad; }
.btn-pro { background: #f39c12; }

.fancy-login-button {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #6e8efb, #a777e3); /* Fancy Gradient */
    color: white !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.4);
}

.fancy-login-button:hover {
    transform: translateY(-2px); /* Subtle lift */
    box-shadow: 0 6px 20px rgba(110, 142, 251, 0.6);
    filter: brightness(1.1);
}

.fancy-login-button i {
    margin-right: 8px; /* Space for the icon */
}

.button-green {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #28a745, #218838); /* Rich Forest Green Gradient */
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 5px; /* Subtle rounded corners */
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
    border: none;
    cursor: pointer;
}

.button-green:hover {
    background: linear-gradient(135deg, #218838, #1e7e34); /* Darkens slightly on hover */
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
}

/* Force-center if 'text-center' doesn't work in your theme 
.text-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
}*/

.button-logout {
    background-color: #d9534f; /* Red */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
.button-logout:hover {
    background-color: #c9302c;
}


/* Force the Action Gold Button */
.btn-action-gold {
    background-color: #ff9900 !important;
    border-color: #e68a00 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 15px 30px !important;
    width: 100%;
    display: block;
    border-radius: 8px;
}

/* The floating card effect */
.form-card {
    max-width: 500px;
    margin: -285px auto 60px auto; 
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10;
}

/* Ensure the theme's masthead has enough height for the overlap */
header.masthead {
    padding-top: 150px;
    padding-bottom: 100px !important;
}

/* Container and Spacing */
.lesson-list, .d-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between buttons */
    margin-top: 15px;
}

/* Base Button Style */
.btn-outline-primary, .btn-outline-secondary {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

/* Primary Level Lessons (Blue) */
.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff !important;
}
.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff !important;
}

/* Previous Level Archives (Gray) */
.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d !important;
}
.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff !important;
}

/* Archives Section Styling */
.lower-level-access {
    background: #fdfdfd !important;
    border: 1px solid #eee !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
