/* ============================================================
   Jules Credentials Section – Elementor Widget Stylesheet
   jules-credentials.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
.jules-credentials {
    --jc-badge:        #c9a227;
    --jc-title:        #ffffff;
    --jc-subtitle:     rgba(255, 255, 255, 0.70);
    --jc-card-bg:      rgba(255, 255, 255, 0.07);
    --jc-card-border:  rgba(255, 255, 255, 0.12);
    --jc-cert-title:   #ffffff;
    --jc-cert-issuer:  rgba(255, 255, 255, 0.55);
    --jc-bg-start:     #3b1f5e;
    --jc-bg-end:       #5a2d82;
}

/* ── Outer wrapper ── */
.jules-credentials {
    display: block;
    background: radial-gradient(ellipse at 30% 40%, var(--jc-bg-end) 0%, var(--jc-bg-start) 60%);
    padding: 80px 80px 100px;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Subtle texture overlay */
.jules-credentials::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 15% 80%, rgba(255,255,255,0.02) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

/* ── Header ── */
.jc-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

/* Badge */
.jc-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--jc-badge);
    margin-bottom: 24px;
}

.jc-badge-line {
    display: block;
    width: 36px;
    height: 1px;
    background: var(--jc-badge);
    opacity: 0.6;
}

/* Section title */
.jc-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 68px);
    font-weight: 400;
    color: var(--jc-title);
    margin: 0 0 20px;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

/* Section subtitle */
.jc-section-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--jc-subtitle);
    margin: 0 auto;
    max-width: 540px;
}

/* ── Grid ── */
.jc-grid {
    display: grid;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Column variants */
.jc-cols-1 .jc-grid { grid-template-columns: 1fr; }
.jc-cols-2 .jc-grid { grid-template-columns: repeat(2, 1fr); }
.jc-cols-3 .jc-grid { grid-template-columns: repeat(3, 1fr); }

/* Default (no class yet during init) */
.jules-credentials .jc-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* ── Card ── */
.jc-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--jc-card-bg);
    border: 1px solid var(--jc-card-border);
    border-radius: 14px;
    padding: 24px 28px;
    box-sizing: border-box;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.jc-card:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ── Icon wrap ── */
.jc-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jc-icon-wrap i,
.jc-icon-wrap svg {
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jc-icon-img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* ── Card text ── */
.jc-card-text {
    flex: 1;
    min-width: 0;
}

.jc-cert-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(14px, 1.5vw, 17px);
    font-weight: 700;
    color: var(--jc-cert-title);
    margin: 0 0 6px;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.jc-cert-issuer {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--jc-cert-issuer);
    margin: 0;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* ── Apply column class from data attribute ── */
.jules-credentials.jc-cols-1 .jc-grid { grid-template-columns: 1fr; max-width: 600px; }
.jules-credentials.jc-cols-2 .jc-grid { grid-template-columns: repeat(2, 1fr); }
.jules-credentials.jc-cols-3 .jc-grid { grid-template-columns: repeat(3, 1fr); }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .jules-credentials {
        padding: 60px 48px 80px;
    }
}

@media (max-width: 900px) {
    .jules-credentials.jc-cols-3 .jc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .jules-credentials {
        padding: 48px 32px 64px;
    }

    .jules-credentials.jc-cols-2 .jc-grid,
    .jules-credentials.jc-cols-3 .jc-grid {
        grid-template-columns: 1fr;
    }

    .jc-section-title {
        font-size: 36px;
    }

    .jc-card {
        padding: 20px 20px;
    }
}

@media (max-width: 480px) {
    .jules-credentials {
        padding: 40px 20px 56px;
    }

    .jc-cert-title {
        font-size: 14px;
    }
}
