/*
Theme Name: Shanti Business Academy
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Shanti Business Academy.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ShantiBusinessAcademy
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/


:root {
    --color-oxford-blue: #002147;
    --color-oxford-blue-dark: #001a38;
    --color-body-text: #5a6275;
    --color-heading-text: #1d2b3a;
    --color-background: #ffffff;
    --color-accent-light: #f0f4ff;
    --color-accent-green: #d1fae5;
    --max-content-width: 1120px;
    --radius: 0.75rem;
    --shadow-light: rgba(0, 33, 71, 0.03);
    --shadow-medium: rgba(0, 33, 71, 0.08);
    --transition-duration: 0.4s;
    scroll-behavior: smooth;
    scroll-padding-block-start: 6rem;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    
    margin: 0;
    font-family:
        "Plus Jakarta Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Open Sans",
        "Helvetica Neue",
        sans-serif;
    background: var(--color-background);
    color: var(--color-body-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
}

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-oxford-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}
.loader-content {
    display: flex;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    gap: 0.5rem;
}
.loader-char {
    opacity: 0;
    transform: translateY(20px);
}

/* --- UTILITIES --- */
.container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}
.hidden-for-anim {
    opacity: 0;
    transform: translateY(30px);
}

/* --- NAVIGATION --- */
nav {
    position: relative;
    border-bottom: 1px solid var(--shadow-light);
    transition: all var(--transition-duration) ease;
}

nav.scrolled {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
    max-width: var(--max-content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}
.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-oxford-blue);
    user-select: none;
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-link {
    color: var(--color-heading-text);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.25rem 0;
    position: relative;
    text-decoration:none;
    transition: color var(--transition-duration) ease;
}
.nav-link:hover {
    color: var(--color-oxford-blue);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    background: var(--color-oxford-blue);
    transition: width var(--transition-duration) ease;
}
.nav-link:hover::after {
    width: 100%;
}
.cta-button {
    background: var(--color-oxford-blue);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    box-shadow: 0 4px 12px var(--shadow-medium);
    cursor: pointer;
    transition: all var(--transition-duration) ease;
    font-size: 1rem;
    transform-origin: center;
    text-decoration: none;
}
.cta-button:hover,
.cta-button:focus {
    background-color: var(--color-oxford-blue-dark);
    box-shadow: 0 6px 16px var(--shadow-medium);
    transform: scale(1.05) translateY(-2px);
    outline: none;
}

/* --- HAMBURGER MENU --- */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--color-oxford-blue);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--shadow-light);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-menu.active {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-link {
    color: var(--color-heading-text);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    text-decoration: none;
    border-bottom: 1px solid var(--shadow-light);
    transition: color var(--transition-duration) ease;
}

.mobile-nav-link:hover {
    color: var(--color-oxford-blue);
}

.mobile-nav-link:last-of-type {
    border-bottom: none;
}

.mobile-cta {
    margin-top: 0.5rem;
    align-self: flex-start;
}

/* --- HERO SECTION --- */
.hero-wrapper {
    background-color: var(--color-accent-light);
    position: relative;
    overflow: hidden;
}

.hero-wrapper:has(nav.scrolled) .hero {
    margin-top: 96.9px;
}
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.5;
    transform: scale(0); /* For GSAP animation */
}
.shape1 {
    width: 400px;
    height: 400px;
    background: var(--color-accent-green);
    top: -150px;
    left: -150px;
    z-index: -1;
}
.shape2 {
    width: 500px;
    height: 500px;
    background: #cce7ff;
    bottom: -200px;
    right: -200px;
}
header.hero {
    padding: 2rem 1rem 6rem;
    max-width: var(--max-content-width);
    margin: 0 auto;
    user-select: none;
    position: relative;
    z-index: 2;
}
header.hero h1 {
    font-weight: 800;
    font-size: clamp(3rem, 1.131rem + 3.899vw, 4.25rem);
    color: var(--color-heading-text);
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}
header.hero p {
    font-weight: 500;
    font-size: 1.25rem;
    max-width: 680px;
    margin-block-end: 2rem;
}
.hero-gradient {
    background: linear-gradient(45deg, var(--color-oxford-blue), #0056b3); /* Adjust colors as needed */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback for browsers that don't support background-clip: text */
}

.hero-image img {
    max-width: 100%;
    transform: translate(10px, 70px) scale(1.25)
}

/* --- MAIN CONTENT --- */
main.container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
}
section.card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
section.card:nth-child(even) .img-container {
    order: -1;
}
section.card h2 {
    font-weight: 700;
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    margin: 0 0 1.25rem 0;
    color: var(--color-heading-text);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
section.card p {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.7;
}
.img-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-medium);
    transition:
        transform var(--transition-duration) ease,
        box-shadow var(--transition-duration) ease;
}
.img-container:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px var(--shadow-medium);
}
.img-container::before {
    content: "";
    display: block;
    padding-bottom: 75%; /* Aspect ratio 4:3 */
}
section.card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-container:hover img {
    transform: scale(1.1);
}

/* --- AI CAREER cta SECTION --- */
.cta {
    text-align: center;
    background-color: var(--color-accent-light);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    border: 1px solid #e5e7eb;
}
.cta h2 {
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--color-heading-text);
    margin: 0 0 1rem 0;
}
.cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
}
.cta-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
}
#interestInput {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid #d1d5db;
    width: 100%;
    max-width: 400px;
    transition:
        border-color 0.3s,
        box-shadow 0.3s;
}
#interestInput:focus {
    outline: none;
    border-color: var(--color-oxford-blue);
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.1);
}
#ctaBtn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* AI Result Display */
#ctaResult {
    text-align: left;
    background: var(--color-background);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid #e5e7eb;
    margin-top: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    display: none; /* Initially hidden */
}
#ctaResult h3 {
    margin-top: 0;
    color: var(--color-oxford-blue);
}
#ctaResult ul {
    padding-left: 20px;
}
#ctaResult li {
    margin-bottom: 0.5rem;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--color-oxford-blue);
    animation: spin 1s ease infinite;
    margin: 2rem auto;
    display: none; /* Initially hidden */
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* --- FOOTER --- */
footer {
    background: var(--color-oxford-blue);
    color: #e0e0e0;
    padding: 5rem 1rem;
    user-select: none;
}
footer .footer-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 4rem;
    align-items: stretch;
}
footer a {
    color: white;
    transition: opacity var(--transition-duration) ease;
}
footer a:hover {
    opacity: 0.8;
}
footer h3 {
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    font-size: 1.75rem;
    color: white;
}
footer address {
    font-style: normal;
    font-weight: 500;
    line-height: 1.8;
}
footer .copyright {
    margin-top: auto;
    margin-bottom: 0;
    font-size: 0.95rem;
    opacity: 0.7;
}
footer iframe {
    width: 100%;
    border-radius: var(--radius);
    border: none;
    min-height: 320px;
    filter: grayscale(0.8) invert(0.9);
    transition: filter var(--transition-duration) ease;
}
footer iframe:hover {
    filter: grayscale(0) invert(0);
}

.footer-info {
    display: flex;
    flex-direction: column;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    section.card,
    .cta {
        grid-template-columns: 1fr;
        gap: 1rem 2.5rem;
    }
    section.card:nth-child(even) .img-container {
        order: 1;
    }
    .nav-links,
    .nav-cta {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}
@media (max-width: 768px) {
    footer .footer-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    header.hero h1 {
        font-size: 2.75rem;
    }
    header.hero p {
        font-size: 1.1rem;
    }
    section.card h2 {
        font-size: 2rem;
    }
}
@media (max-width: 500px) {
    .cta-form {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .hero-image img {
        max-width: 100%;
        transform: translate(0px, 80px) scale(1.35)
    }

    header.hero {
        padding: 6rem 1rem 4rem;
        display: flex;
    }

    .hero-content {
        min-width: 50%;
    }


    .footer-container {
      grid-template-rows: 1fr auto;
    }

    footer iframe {
      grid-row: 1 / -1;
      grid-column-start: 2;
    }
}

@media (min-width: 1024px) {
    .hero-image img {
        max-width: 100%;
        transform: translate(0px, 50px) scale(1.45)
    }

    header.hero {
        padding: 8rem 1rem 8rem;
        display: flex;
    }
}

.open-page {
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
}

.open-page a {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625em 1.25em;
    border-radius: 999px;
    background-color: var(--color-accent-light);
    color: var(--color-oxford-blue);
    border: 2px solid var(--color-oxford-blue);
    transition: background-color var(--transition-duration) ease, color var(--transition-duration) ease;
}

.open-page a:hover {
    background-color: var(--color-oxford-blue);
    color: var(--color-accent-light);
}