/* Price Sections */
.price-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    font-family: sans-serif;
}

.price-text {
    text-align: right;
    line-height: 1.2;
}

.old-price {
    color: #999;
    font-size: 14px;
    display: block;
    text-decoration: line-through;
}

.new-price {
    color: #333;
    font-size: 20px;
    font-weight: bold;
    display: block;
}

.save-badge {
    background-color: #eaf8e1;
    color: #87B501;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    line-height: 1.4;
    border: 1px solid #d4edda;
}

.plan-header-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.plan-title {
    font-size: 28px;
    font-weight: bold;
    color: #87B501;
}

.badge-best-value {
    background-color: #87B501;
    color: #ffffff;
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

/* 2. Flip Card Core Styles */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 520px; 
    perspective: 1000px;
    margin-bottom: 20px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px; 
    padding: 30px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: none !important;
}

.flip-card-front {
    background-color: #eaf8e1;
}

.flip-card-back {
    background-color: #ffffff;
    transform: rotateY(180deg);
}

.flip-card-front img {
    width: 80%;
    max-width: 250px;
    height: auto;
}

.flip-card-back ul {
    text-align: left;
    padding-left: 15px;
    margin: 15px 0;
    color: #333;
    list-style-type: disc;
}

.flip-card-back li {
    margin-bottom: 10px;
    font-size: 15px;
}

.flip-btn, .flip-btn-back {
    background-color: #0d1b2a;
    color: white !important;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s ease;
}

.flip-btn:hover {
    background-color: #54b435;
}

html {
    scroll-behavior: smooth;
}

.job-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.job-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    border-left: 6px solid #87B501;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1 1 calc(45% - 30px);
    min-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.job-title {
    font-size: 24px;
    font-weight: bold;
    color: #0d1b2a;
    margin-bottom: 10px;
}

.job-contract {
    font-size: 14px;
    color: #888;
    font-style: italic;
    margin-bottom: 15px;
    display: block;
}

.job-points {
    padding-left: 20px;
    margin-bottom: 20px;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more-link {
    color: #87B501;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    margin-top: auto;
    display: inline-block;
}

.read-more-link:hover {
    color: #0d1b2a;
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .job-item {
        flex: 1 1 100%;
        min-width: unset;
    }
}

/* 3. Modern Features Grid (Welcome Section) */
.km-features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.km-feature-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(33.333% - 30px);
    min-width: 300px;
    height: 100%;
    box-sizing: border-box;
}

/* Hover Effect: Card green border */
.km-feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #87B501;
}

.km-feature-card h3 {
    color: #0d1b2a;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

/* green line */
.km-feature-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #87B501;
    border-radius: 50px;
    transition: width 0.3s ease;
}

.km-feature-card:hover h3::after {
    width: 70px;
}

.km-feature-card p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* 4. Modern Apply Popup Styling */
.popup-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.popup-content {
    background: #fff;
    margin: 2% auto;
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.close-btn {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.close-btn:hover { color: #87B501; }

.app-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-field label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-field input {
    width: 90%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
}

.submit-btn {
    background: #87B501;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.submit-btn:hover { background: #0d1b2a; }

/* Mobile Adjustments for Grid */
@media (max-width: 991px) {
    .km-feature-card {
        flex: 1 1 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .km-feature-card {
        flex: 1 1 100%;
    }
}

/* --- unique code --- */
.km-team-wrapper {
    padding: 50px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    display: block !important;
}

.km-team-title {
    color: #87B501 !important;
    font-size: 36px !important;
    margin-bottom: 15px !important;
    font-weight: bold !important;
}

.km-team-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.km-hierarchy {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.km-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

/* Card design */
.km-member-box {
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 15px !important;
    padding: 20px !important;
    width: 200px !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    text-align: center !important;
}

.km-member-box img {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain !important;
    margin-bottom: 15px !important;
}

.km-name-text {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 5px 0 !important;
}

.km-role-text {
    font-size: 12px !important;
    color: #87B501 !important; 
    font-weight: bold !important;
}

/* Job Section Styling */
.job-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.job-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    border-left: 6px solid #87B501; /* New Green */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1 1 calc(45% - 30px);
    min-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.read-more-link {
    color: #87B501; /* New Green */
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    margin-top: auto;
    display: inline-block;
}

.read-more-link:hover {
    color: #0d1b2a;
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .job-item {
        flex: 1 1 100%;
        min-width: unset;
    }
}

/* --- Premium Section Brand Update --- */

.km-premium-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
}

.km-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.km-premium-item {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Badge Styling */
.km-premium-badge {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #87B501, #6a8e01); 
    border-radius: 16px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px; 
    box-shadow: 0 10px 20px rgba(135, 181, 1, 0.2);
}

/* restored Text Sizes */
.km-premium-item h3 {
    font-size: 22px !important;
    color: #0d1b2a !important;
    margin-bottom: 15px;
    font-weight: 700;
}

.km-premium-item p {
    font-size: 15px !important;
    color: #666 !important;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Hover Line */
.km-premium-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #87B501;
    transition: width 0.4s ease;
}

.km-premium-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.km-premium-item:hover .km-premium-line {
    width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .km-premium-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .km-premium-grid { grid-template-columns: 1fr; }
}

/* --- SpellKar Registration Section --- */
:root {
    --primary: #87B501;        
    --primary-light: #fafdf5;  
    --accent: #ff5e57;         
    --dark: #1e293b;           
    --text-muted: #64748b;     
    --border-color: #e2e8f0;   
}

.registration-wrapper { 
    padding: 60px 20px; 
    background: #f8fafc; 
    font-family: 'Poppins', sans-serif; 
}

.glass-card {
    max-width: 1100px; 
    margin: 0 auto; 
    background: #ffffff;
    border-radius: 30px; 
    padding: 50px; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.08);
}

.header-content { text-align: center; margin-bottom: 40px; }

.title { 
    font-size: 32px; 
    font-weight: 800; 
    color: var(--dark); 
    margin-bottom: 20px; 
}

.title span { color: var(--primary); }

/* Tab Navigation Styling */
.tab-nav { 
    display: inline-flex; 
    background: #f1f5f9; 
    padding: 6px; 
    border-radius: 50px; 
}

.tab-link {
    border: none; 
    padding: 12px 35px; 
    border-radius: 50px; 
    font-weight: 700;
    cursor: pointer; 
    transition: all 0.3s ease; 
    color: var(--text-muted); 
    background: transparent;
}

.tab-link.active { 
    background: var(--primary); 
    color: white !important; 
    box-shadow: 0 10px 15px rgba(135, 181, 1, 0.25); 
}

/* Form Grid & Inputs */
.form-grid { display: grid; gap: 20px; margin-bottom: 20px; }
.col-3 { grid-template-columns: repeat(3, 1fr); }
.col-2 { grid-template-columns: repeat(2, 1fr); }

.input-box label { 
    display: block; 
    font-weight: 600; 
    font-size: 13px; 
    margin-bottom: 8px; 
    color: var(--dark); 
}

.input-box input {
    width: 100%; 
    padding: 12px 15px; 
    border: 1.5px solid var(--border-color); 
    border-radius: 12px; 
    transition: all 0.3s ease;
    background: #fff;
}

.input-box input:focus { 
    border-color: var(--primary); 
    outline: none; 
    background: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(135, 181, 1, 0.1);
}

/* Section Divider */
.divider { 
    width: 100%; 
    border-bottom: 1px solid var(--border-color); 
    line-height: 0.1em; 
    margin: 35px 0 25px; 
}

.divider span { 
    background: #fff; 
    padding: 0 15px; 
    color: var(--primary); 
    font-weight: 700; 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

/* Submit Button */
.btn-submit {
    margin-top: 20px; 
    padding: 16px 60px; 
    background: var(--accent); 
    color: white;
    border: none; 
    border-radius: 15px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.3s ease;
}

.btn-submit:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(255, 94, 87, 0.3);
    filter: brightness(1.1);
}

/* Confirmation Modal Styling */
.modal-overlay {
    display: none; 
    position: fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%;
    background: rgba(15, 23, 42, 0.75); 
    backdrop-filter: blur(8px); 
    z-index: 10000;
    justify-content: center; 
    align-items: center;
}

.modal-card {
    background: white; 
    padding: 40px; 
    border-radius: 25px; 
    max-width: 450px; 
    width: 90%;
    text-align: center; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    transform: scale(0.85); 
    transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card { transform: scale(1); }

.modal-icon {
    width: 75px; 
    height: 75px; 
    background: var(--primary); 
    color: white;
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 35px; 
    margin: 0 auto 20px;
}

.modal-card h2 { color: var(--dark); margin-bottom: 12px; font-weight: 700; }
.modal-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 30px; line-height: 1.6; }

.modal-btns { display: flex; gap: 15px; justify-content: center; }

.modal-btn {
    padding: 12px 28px; 
    border-radius: 12px; 
    border: none; 
    font-weight: 700; 
    cursor: pointer; 
    transition: 0.2s;
}

.modal-btn.cancel { background: #f1f5f9; color: #475569; }
.modal-btn.confirm { background: var(--primary); color: white; }

.modal-btn:hover { opacity: 0.9; transform: scale(1.03); }

/* Tab Animations */
.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Mobile View Improvements */
@media (max-width: 768px) { 
    .col-3, .col-2 { grid-template-columns: 1fr; } 
    .glass-card { padding: 30px 20px; }
    .title { font-size: 26px; }
    .tab-link { padding: 10px 20px; font-size: 14px; }
}

/* --- Contact Section Styling --- */

.km-contact-section {
    padding: 120px 20px 80px 20px !important; 
    background-color: #e9f7e9 !important; 
    font-family: 'Segoe UI', Roboto, sans-serif !important;
    display: flex !important;
    justify-content: center !important;
}

.km-main-card {
    max-width: 1150px !important;
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    background: #ffffff !important;
    border-radius: 40px !important;
    overflow: hidden !important;
    box-shadow: 0 30px 70px rgba(0,0,0,0.04) !important;
}

.km-left-panel {
    flex: 1 !important;
    padding: 60px 50px !important;
    background: #ffffff !important;
    border-right: 1px solid #f2f2f2 !important;
    min-width: 300px !important;
}

.km-left-panel h2 {
    font-size: 42px !important;
    font-weight: 800 !important;
    color: #0b1c2c !important;
    margin-bottom: 25px !important;
}

.km-left-panel p {
    font-size: 16px !important;
    color: #555 !important;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
}

.km-info-card {
    background: #f1f9f1 !important;
    border-radius: 22px !important;
    padding: 25px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 18px !important;
    transition: 0.3s ease !important;
}

.km-info-card:hover {
    transform: translateY(-5px) !important;
    background: #e6f4e6 !important;
}

.km-card-icon { font-size: 24px !important; }

.km-card-content strong {
    display: block !important;
    font-size: 18px !important;
    color: #0b1c2c !important;
    margin-bottom: 5px !important;
}

.km-card-content span, .km-card-content a {
    font-size: 15px !important;
    color: #444 !important;
    text-decoration: none !important;
    line-height: 1.6 !important;
    word-break: break-word !important;
}

.km-right-panel {
    flex: 1.2 !important;
    padding: 60px !important;
    min-width: 300px !important;
}

.km-right-panel .wpforms-form input,
.km-right-panel .wpforms-form textarea {
    background: #fafafa !important;
    border: 2px solid #eee !important;
    border-radius: 14px !important;
    padding: 15px !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .km-contact-section {
        padding: 80px 15px 40px 15px !important;
    }

    .km-main-card {
        border-radius: 25px !important;
    }

    .km-left-panel, .km-right-panel {
        flex: 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        padding: 40px 25px !important;
        border-right: none !important;
    }

    .km-left-panel {
        border-bottom: 1px solid #f2f2f2 !important;
    }
}


/* WhatsApp Floating Icon Styling */
.whatsapp-chat-btn {
    position: fixed;
    bottom: 30px;      
    right: 30px;       
    width: 60px;       
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;     
    transition: all 0.3s ease;
}

.whatsapp-chat-btn img {
    width: 35px;      
    height: 35px;
}

.whatsapp-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}


@media (max-width: 768px) {
    .whatsapp-chat-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-chat-btn img {
        width: 28px;
        height: 28px;
    }
}