/* --- 1. Beautiful "Or" Separator Line --- */
form .flex.gap-3:has(a[href*="social-login"]) {
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    border-top: 1px solid #e5e7eb;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    gap: 0.75rem;
}

form .flex.gap-3:has(a[href*="social-login"])::before {
    content: "OR";
    position: absolute;
    top: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    /* Matches the white form background */
    padding: 0 1rem;
    color: #9ca3af;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* --- 2. Enhanced Social Login Buttons --- */
form a[href*="social-login"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 374px;
    /* Matches the primary 'Sign In' button */
    padding: 0.875rem 2rem;
    border: 1px solid #d1d5db;
    border-radius: 1rem;
    background-color: #ffffff;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* Subtle resting shadow */
}

/* --- 3. Premium Hover Effects --- */
form a[href*="social-login"]:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    opacity: 1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* Larger shadow on hover */
    transform: translateY(-1px);
    /* Lifts the button slightly */
}

form a[href*="social-login"]:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Ensure the SVG icon scales correctly */
form a[href*="social-login"] svg {
    width: 20px;
    height: 20px;
}

/* --- 4. Dynamically insert text for each provider --- */
form a[href*="social-login/google"]::after {
    content: "Continue with Google";
}

form a[href*="social-login/facebook"]::after {
    content: "Continue with Facebook";
}

form a[href*="social-login/github"]::after {
    content: "Continue with GitHub";
}

form a[href*="social-login/twitter"]::after {
    content: "Continue with Twitter";
}

form a[href*="social-login/linkedin"]::after {
    content: "Continue with LinkedIn";
}

/* ------------------------------------------------------------- */
/* Clean & Organized Login/Registration Layout                   */
/* ------------------------------------------------------------- */

/* 0. Center the Main Page Heading and Subtitle */
.container .m-auto>h1.font-dmserif,
.container .m-auto>p.text-zinc-500:not(.mt-5) {
    text-align: center !important;
}

/* Add some clean spacing below the subtitle */
.container .m-auto>p.text-zinc-500:not(.mt-5) {
    margin-bottom: 2rem !important;
}

/* 1. Ensure the primary submit wrapper is strictly centered */
.container form .mt-8.flex.flex-wrap {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    /* We control spacing via margins for precision */
    width: 100% !important;
}

/* 2. Lock Primary Buttons to an exact width and perfectly center them */
.container form button.primary-button[type="submit"] {
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
}

/* 3. Constrain the Social Login block (This forces the "OR" line to perfectly match the button width!) */
.container form .mt-8.flex.flex-wrap>.flex.flex-wrap.gap-4,
.container form>.mt-8.flex.flex-wrap~div {
    width: 100% !important;
    max-width: 380px !important;
    margin: 35px auto 0 auto !important;
    /* Perfect 35px gap above the OR line */
    padding-top: 30px !important;
    /* Perfect 30px gap below the OR line */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    border-top: 1px solid #e5e7eb !important;
    position: relative !important;
}

/* 4. Force the Google Button width to match the primary button width exactly */
.container form a[href*="social-login"],
.container form a[href*="google"] {
    width: 100% !important;
    max-width: 380px !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

/* 5. Center the footer links ("New customer?", "Already have an account?", "Back to sign in") */
.container .m-auto p.mt-5 {
    text-align: center !important;
    margin-top: 35px !important;
    display: block !important;
    width: 100% !important;
}






/* BUTTON STYLING & FULL-CARD CLICKABLE */
.collection-card {
    position: relative;
    /* Required to make the whole card clickable */
    /* ... keep your existing border-radius, background, etc. here ... */
}

.collection-overlay {
    /* ... keep your existing styles, but make sure to add this: */
    align-items: center;
    /* This centers the button and text */
}

/* Replaces your old text-link styling */
.collection-overlay a {
    display: inline-block;
    background-color: #ffd369;
    /* Bright yellow button */
    color: #1a1a2e;
    /* Dark contrasting text */
    padding: 10px 24px;
    border-radius: 30px;
    /* Pill-shaped button */
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.collection-overlay a:hover {
    background-color: #ffc107;
    transform: scale(1.05);
}

/* MAGICAL FIX: This stretches the link to cover the entire card! */
.collection-overlay a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

/* ------------------------------------------------------------- */
/* CMS Page Content Styling — Mamta Enterprise                   */
/* ------------------------------------------------------------- */

/* ===== Base Container ===== */
.cms-page-content {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: #4b5563;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 0 40px;
    line-height: 1.8;
}

/* ===== Typography ===== */
.cms-page-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #e94560;
    line-height: 1.3;
}

.cms-page-content h2 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 2.25rem;
    margin-bottom: 0.875rem;
    line-height: 1.3;
}

.cms-page-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.cms-page-content h4,
.cms-page-content h5,
.cms-page-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.cms-page-content p {
    margin-bottom: 1.125rem;
    line-height: 1.8;
    font-size: 0.9375rem;
}

.cms-page-content strong {
    color: #1f2937;
    font-weight: 600;
}

.cms-page-content .cms-subtitle {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

/* ===== Links ===== */
.cms-page-content a {
    color: #e94560;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cms-page-content a:hover {
    color: #c81e45;
    text-decoration: underline;
}

/* ===== Lists ===== */
.cms-page-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.cms-page-content ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.cms-page-content li {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

/* ===== Tables ===== */
.cms-page-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.cms-page-content thead tr {
    background: #1a1a2e;
    color: #fff;
}

.cms-page-content thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cms-page-content tbody tr {
    transition: background 0.15s ease;
}

.cms-page-content tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.cms-page-content tbody tr:hover {
    background: #f0f1f3;
}

.cms-page-content tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

/* ===== Card Grid ===== */
.cms-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.cms-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid #f0f1f3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cms-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.cms-card .cms-card-icon {
    font-size: 2.25rem;
    margin-bottom: 10px;
    display: block;
}

.cms-card h3 {
    font-size: 1rem;
    color: #1a1a2e;
    margin-top: 0;
    margin-bottom: 6px;
}

.cms-card p {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ===== Bordered Info Card (Contact/Address) ===== */
.cms-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 24px;
    border-left: 4px solid #e94560;
    margin-bottom: 16px;
}

.cms-info-card h3 {
    font-size: 1.0625rem;
    color: #1a1a2e;
    margin-top: 0;
    margin-bottom: 8px;
}

.cms-info-card p {
    margin: 0;
    font-size: 0.9375rem;
}

.cms-info-card .cms-small-text {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-top: 4px;
}

/* ===== Info Cards Grid (Contact Page) ===== */
.cms-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 2rem;
}

/* ===== Alert / Highlight Boxes ===== */
.cms-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.cms-alert p {
    margin: 0;
}

.cms-alert strong {
    color: inherit;
}

.cms-alert-danger {
    background: #fce4ec;
    border-left: 4px solid #e94560;
}

.cms-alert-warning {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-left: 4px solid #ff9800;
}

.cms-alert-success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.cms-alert-info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.cms-alert-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #c62828;
    margin-bottom: 8px;
}

/* ===== FAQ Blocks ===== */
.cms-faq {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.cms-faq .cms-faq-q {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px 0;
}

.cms-faq .cms-faq-a {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* ===== CTA Banner ===== */
.cms-cta {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 28px 32px;
    border-radius: 12px;
    text-align: center;
    margin-top: 2.5rem;
}

.cms-cta p {
    font-size: 1.0625rem;
    margin: 0;
    color: #fff;
    line-height: 1.6;
}

.cms-cta strong {
    color: #fff;
}

.cms-cta a {
    color: #ffd369;
    text-decoration: underline;
}

.cms-cta a:hover {
    color: #ffe08a;
}

/* ===== WhatsApp Button ===== */
.cms-btn-whatsapp {
    display: inline-block;
    background: #25D366;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none !important;
    margin-top: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cms-btn-whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    color: #fff !important;
    text-decoration: none !important;
}

/* ===== Images ===== */
.cms-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin: 1.5rem 0;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .cms-page-content h1 {
        font-size: 1.5rem;
    }
    .cms-page-content h2 {
        font-size: 1.1875rem;
    }
    .cms-card-grid {
        grid-template-columns: 1fr;
    }
    .cms-info-grid {
        grid-template-columns: 1fr;
    }
    .cms-cta {
        padding: 20px 18px;
    }
}