/* ==========================================================================
   SAPIFY GLOBAL DESIGN SYSTEM (Blocksy Sync)
   ========================================================================== */

/* --- LAYOUT & CONTAINERS --- */
.sap-container {
    padding-left: max(20px, calc((100% - 1200px) / 2));
    padding-right: max(20px, calc((100% - 1200px) / 2));
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

/* --- BUTTONS --- */
.sap-btn-group { display: flex; gap: 20px; }
.sap-btn { 
    border-radius: 12px; padding: 16px 38px; font-size: 1rem; font-weight: 700; 
    text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    display: inline-block; position: relative; overflow: hidden; cursor: pointer; text-align: center;
}
.sap-btn-primary { 
    background: var(--theme-palette-color-1); color: #fff !important; border: 2px solid var(--theme-palette-color-1); 
    box-shadow: 0 4px 14px 0 rgba(0, 86, 179, 0.3);
}
.sap-btn-primary:hover { 
    transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4); 
    background: #004494; border-color: #004494; 
}
.sap-btn-outline { 
    border: 2px solid var(--theme-palette-color-1); color: var(--theme-palette-color-1) !important; background: transparent; 
}
.sap-btn-outline:hover { 
    background: var(--theme-palette-color-1); color: #fff !important; transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.2); 
}

/* --- GLOBAL PAGE HEADERS (About, Contact, Courses) --- */
.sap-page-header {
    background: linear-gradient(135deg, #002244 0%, var(--theme-palette-color-2) 100%);
    padding-top: 100px; padding-bottom: 100px; text-align: center; display: flex; 
    flex-direction: column; align-items: center; gap: 25px;
}
.sap-page-header__title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; margin: 0; color: #ffffff; line-height: 1; }
.sap-page-header__highlight {
    background: linear-gradient(135deg, #4da6ff 0%, var(--theme-palette-color-3) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900;
}
.sap-breadcrumb {
    display: inline-flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px); padding: 12px 28px; border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.95rem; font-weight: 600;
}
.sap-breadcrumb__link { color: rgba(255, 255, 255, 0.8); text-decoration: none; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.sap-breadcrumb__link:hover { color: #ffffff; }
.sap-breadcrumb__sep { color: rgba(255, 255, 255, 0.3); }
.sap-breadcrumb__current { color: var(--theme-palette-color-3); }

/* --- HERO SECTION (Home Page) --- */
.sap-hero-wrap { background: var(--theme-palette-color-8); min-height: 90vh; display: flex; align-items: center; position: relative; overflow-x: hidden; padding-top: 100px; padding-bottom: 100px; }
.sap-hero-wrap::before {
    content: ""; pointer-events: none; background: radial-gradient(circle at 70%, rgba(0, 194, 255, 0.05), transparent);
    width: 50%; height: 100%; position: absolute; top: 0; right: 0;
}
.sap-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; z-index: 2; }
.sap-subheading {
    display: block; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; font-size: 1.1rem; font-weight: 700;
    background: linear-gradient(to right, var(--theme-palette-color-1) 20%, var(--theme-palette-color-3) 40%, var(--theme-palette-color-3) 60%, var(--theme-palette-color-1) 80%);
    -webkit-text-fill-color: transparent; background-size: 200%; -webkit-background-clip: text; background-clip: text; animation: sap-shine 3s linear infinite;
}
.sap-hero-h1 { color: var(--theme-palette-color-4); margin-bottom: 25px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; font-weight: 800; }
.sap-brand-hero {
    display: block; white-space: nowrap; font-size: min(1em, 8.5vw); animation: sap-shine 3s linear infinite;
    background: linear-gradient(to right, var(--theme-palette-color-1) 20%, var(--theme-palette-color-3) 40%, var(--theme-palette-color-3) 60%, var(--theme-palette-color-1) 80%);
    -webkit-text-fill-color: transparent; background-size: 200%; -webkit-background-clip: text; background-clip: text;
}
.sap-hero-p { color: var(--theme-palette-color-5); margin-bottom: 40px; font-size: 1.2rem; line-height: 1.6; }
.sap-hero-img img { width: 100%; max-width: 400px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1)); animation: sap-float 6s ease-in-out infinite; }

/* --- CONTENT SECTIONS (Cards & Splits) --- */
.sap-section-header { text-align: center; margin-bottom: 60px; }
.sap-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.sap-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.sap-split-img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

.sap-card {
    background: var(--theme-palette-color-8); border-radius: 20px; padding: 50px 40px; border: 1px solid var(--theme-palette-color-6);
    transition: all 0.4s ease; display: flex; flex-direction: column; text-align: left;
}
/* Solid Hover (Home Features) */
.sap-card-solid:hover { background: var(--theme-palette-color-1); border-color: var(--theme-palette-color-1); box-shadow: 0 15px 35px rgba(0, 86, 179, 0.2); }
.sap-card-solid:hover h3, .sap-card-solid:hover p, .sap-card-solid:hover svg { color: var(--theme-palette-color-8) !important; }
/* Outline Hover (About/Courses) */
.sap-card-outline:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.05); border-color: var(--theme-palette-color-1); transform: translateY(-5px); }

.sap-card svg { width: 40px; height: 40px; color: var(--theme-palette-color-1); margin-bottom: 30px; transition: 0.3s; flex-shrink:0; }
.sap-card h3 { font-size: 1.5rem; font-weight: 700; color: var(--theme-palette-color-4); margin-bottom: 15px; transition: 0.3s; }
.sap-card p { font-size: 1.05rem; line-height: 1.6; color: var(--theme-palette-color-5); margin: 0 0 35px 0; transition: 0.3s; flex-grow: 1; }
/* --- COURSE BADGES --- */
.sap-badge-popular {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--theme-palette-color-3);
    color: var(--theme-palette-color-2);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 194, 255, 0.3);
}

.sap-list { list-style: none; padding: 0; margin-top: 25px; }
.sap-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 1.1rem; color: var(--theme-palette-color-5); }
.sap-list svg { width: 22px; color: var(--theme-palette-color-1); flex-shrink: 0; }

.sap-cta-box { background: linear-gradient(45deg, var(--theme-palette-color-1), var(--theme-palette-color-3)); border-radius: 16px; padding: 60px; text-align: center; color: var(--theme-palette-color-8); }
.sap-cta-box h2 { color: var(--theme-palette-color-8); font-size: 2.5rem; margin-bottom: 20px; font-weight: 800; }

/* --- CONTACT LAYOUT & FORMS --- */
.sap-contact { display: grid; grid-template-columns: 350px 1fr; gap: 50px; align-items: start; }
.sap-contact__cards { display: flex; flex-direction: column; gap: 20px; }
.sap-contact-card { background: var(--theme-palette-color-8); border: 1px solid var(--theme-palette-color-6); border-radius: 16px; padding: 30px 25px; display: flex; align-items: center; gap: 20px; transition: 0.3s ease; }
.sap-contact-card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); border-color: var(--theme-palette-color-1); transform: translateY(-3px); }
.sap-contact-card__icon { color: var(--theme-palette-color-1); width: 32px; height: 32px; flex-shrink: 0; }

/* --- THIS IS THE NEW LINE I ADDED FOR YOU --- */
.sap-contact-card__details { text-align: left; width: 100%; }
/* -------------------------------------------- */

.sap-contact-card__label { font-size: 1.1rem; font-weight: 800; color: var(--theme-palette-color-4); margin: 0 0 5px 0; }
.sap-contact-card__value { font-size: 0.95rem; color: var(--theme-palette-color-5); margin: 0; line-height: 1.4; }

.sap-contact__form-box { background: var(--theme-palette-color-8); border-radius: 24px; padding: 50px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08); border: 1px solid var(--theme-palette-color-6); }
.sap-form-wrapper .fluentform { background: transparent !important; }
.sap-form-wrapper .ff-el-input--label { display: none !important; }
.sap-form-wrapper .ff-el-form-control { width: 100% !important; padding: 16px 20px !important; border: 1px solid var(--theme-palette-color-6) !important; border-radius: 12px !important; font-size: 1rem !important; color: var(--theme-palette-color-4) !important; background: var(--theme-palette-color-8) !important; box-shadow: none !important; transition: all 0.3s ease !important; font-family: inherit !important; margin-bottom: 5px !important; }
.sap-form-wrapper .ff-el-form-control:focus { border-color: var(--theme-palette-color-1) !important; box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1) !important; outline: none !important; }
.sap-form-wrapper textarea.ff-el-form-control { min-height: 160px !important; resize: vertical !important; }
.sap-form-wrapper .ff-btn-submit { background: var(--theme-palette-color-1) !important; color: #ffffff !important; padding: 18px 30px !important; border: none !important; border-radius: 12px !important; font-size: 1.05rem !important; font-weight: 700 !important; width: 100% !important; cursor: pointer !important; transition: 0.3s !important; margin-top: 15px !important; }
.sap-form-wrapper .ff-btn-submit:hover { background: #004494 !important; transform: translateY(-2px) !important; box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3) !important; }
.sap-form-wrapper .text-danger { color: #d32f2f !important; font-size: 0.85rem !important; font-weight: 600 !important; margin-top: 2px !important; display: block !important; }
.sap-form-wrapper .ff-el-is-error .ff-el-form-control { border-color: #d32f2f !important; background: #fffbfc !important; }
.sap-form-wrapper .ff-message-success { background-color: #f0fdf4 !important; border: 1px solid #22c55e !important; color: #15803d !important; border-radius: 12px !important; padding: 20px !important; font-weight: 600 !important; text-align: center !important; }

/* --- FOOTER --- */
.sap-footer { background: var(--theme-palette-color-2); color: var(--theme-palette-color-6); padding: 80px max(20px, calc((100% - 1200px) / 2)) 0; border-top: 4px solid var(--theme-palette-color-3); }
.sap-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 60px; }
.sap-footer__logo { max-width: 80px; margin-bottom: 25px; filter: brightness(0) invert(1); }
.sap-footer__col h3 { color: var(--theme-palette-color-8); font-size: 1.3rem; margin: 0 0 25px; font-weight: 600; }
.sap-footer__list { list-style: none; padding: 0; margin: 0; }
.sap-footer__list-item { margin-bottom: 16px; font-size: 0.95rem; display: flex; align-items: flex-start; gap: 12px; }
.sap-footer__link { color: inherit; text-decoration: none; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.sap-footer__link:hover { color: var(--theme-palette-color-3); transform: translateX(6px); display: inline-block; }
.sap-footer__icon, .sap-footer__star { color: var(--theme-palette-color-3); width: 18px !important; height: 18px !important; flex-shrink: 0; margin-top: 2px; }
.sap-footer__trust { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--theme-palette-color-6); font-weight: 600; margin-top: 20px; }
.sap-footer__star { color: var(--sap-gold); }
.sap-footer__socials { display: flex; gap: 15px; margin-top: 30px; }
.sap-footer__social-link { background: rgba(255,255,255,0.05); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: #fff; transition: 0.3s; text-decoration: none; }
.sap-footer__social-link svg { width: 18px; height: 18px; }
.sap-footer__social-link:hover { background: var(--theme-palette-color-3); color: var(--theme-palette-color-2); box-shadow: 0 0 15px rgba(0, 194, 255, 0.5); }
.sap-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 25px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.sap-footer__bottom-links { display: flex; gap: 20px; }
.sap-footer__bottom-link { color: var(--theme-palette-color-6); text-decoration: none; transition: 0.3s; }
.sap-footer__bottom-link:hover { color: var(--theme-palette-color-8); }

/* --- ANIMATIONS & MEDIA QUERIES --- */
@keyframes sap-shine { to { background-position: 200% center; } }
@keyframes sap-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

@media (max-width: 992px) {
    .sap-page-header { padding-top: 80px; padding-bottom: 80px; }
    .sap-hero-wrap { padding-top: 80px; padding-bottom: 80px; }
    .sap-hero-grid, .sap-split, .sap-contact { grid-template-columns: 1fr; text-align: center; }
    .sap-split-img { order: -1; }
    .sap-btn-group { justify-content: center; }
    .sap-hero-img { order: 2; width: 100%; margin: 0 auto; }
    .sap-footer__grid { grid-template-columns: repeat(2, 1fr); row-gap: 60px; column-gap: 30px; }
    .sap-footer__col:nth-child(1), .sap-footer__col:nth-child(4) { grid-column: span 2; }
    .sap-footer__bottom { flex-direction: column; gap: 15px; text-align: center; margin-top: 20px; } 
}
@media (max-width: 768px) {
    .sap-card { padding: 30px 20px; }
    .sap-contact__form-box { padding: 40px 25px; }
}
@media (max-width: 576px) {
    .sap-footer__grid { row-gap: 50px; }
    .sap-footer__col:nth-child(2), .sap-footer__col:nth-child(3) { grid-column: span 1; }
    .sap-footer__bottom-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .sap-btn-group { flex-direction: column; }
    .sap-btn { width: 100%; }
}