@import url("https://fonts.googleapis.com/css2?family=Mona+Sans:wght@300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.cdnfonts.com/css/sf-pro-display");

body {
    font-family: "Quicksand", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    sans-serif;
}

/* Mona Sans for titles and headers */
h1,
h2,
h3,
h4,
h5,
h6,
.nav-link,
.text-gradient,
.text-gradient-light,
.footer h3 {
    font-family: "Quicksand", "Mona Sans", sans-serif;
}

/* Hero background with gradient only on top portion */
.hero-bg {
    background: linear-gradient(
            180deg,
            rgba(173, 216, 230, 0.4) 0%,
            rgba(221, 160, 221, 0.3) 20%,
            rgba(255, 182, 193, 0.3) 40%,
            rgba(255, 218, 185, 0.2) 60%,
            rgba(240, 248, 255, 0.1) 80%,
            transparent 100%
    );
    position: relative;
}

.hero-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            ellipse at 30% 20%,
            rgba(173, 216, 230, 0.21) 0%,
            transparent 70%
    ),
    radial-gradient(
            ellipse at 70% 10%,
            rgba(221, 160, 221, 0.13) 0%,
            transparent 70%
    ),
    radial-gradient(
            ellipse at 20% 40%,
            rgba(255, 182, 193, 0.12) 0%,
            transparent 60%
    ),
    radial-gradient(
            ellipse at 80% 30%,
            rgba(255, 218, 185, 0.16) 0%,
            transparent 60%
    );
}

/* Footer background */
.footer-bg {
    rotate: 180deg;
    background: linear-gradient(
            180deg,
            rgba(173, 216, 230, 0.4) 0%,
            rgba(221, 160, 221, 0.2) 20%,
            rgba(255, 182, 193, 0.15) 40%,
            rgba(255, 218, 185, 0.12) 60%,
            rgba(240, 248, 255, 0.07) 80%,
            transparent 100%
    );
    position: relative;
    overflow: hidden;
}

.footer-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            ellipse at 30% 20%,
            rgba(173, 216, 230, 0.21) 0%,
            transparent 70%
    ),
    radial-gradient(
            ellipse at 70% 10%,
            rgba(221, 160, 221, 0.13) 0%,
            transparent 70%
    ),
    radial-gradient(
            ellipse at 20% 40%,
            rgba(255, 182, 193, 0.12) 0%,
            transparent 60%
    ),
    radial-gradient(
            ellipse at 80% 30%,
            rgba(255, 218, 185, 0.16) 0%,
            transparent 60%
    );
}



.floating-icon {
    position: absolute;
    animation: smoothFloat 6s ease-in-out infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

.floating-icon:nth-child(1) {
    animation-delay: 0.5s;
}

.floating-icon:nth-child(2) {
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    animation-delay: 3.5s;
}

@keyframes smoothFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) rotate(-2deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-15px) rotate(1deg);
        opacity: 1;
    }
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
}

.header-floating {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: slideInHeader 1s ease-out 0.3s forwards;
    isolation: isolate;
    will-change: backdrop-filter;
}

@keyframes slideInHeader {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    border-radius: 25px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #000000;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 8px 16px;
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
}

.nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent
    );
    transition: left 0.8s ease;
    pointer-events: none;
    z-index: -1;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #6b7280;
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #0a0a0d;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInText 1.2s ease-out 1s forwards;
}

.text-gradient-light {
    background: linear-gradient(135deg, #93c5fd, #dbeafe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInText 1.2s ease-out 1.3s forwards;
}

@keyframes slideInText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInCard {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.footer-link {
    color: rgba(51, 51, 51, 0.85);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #374151;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link:hover {
    color: #374151;
}

/* Newsletter input animation */
.newsletter-input {
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.newsletter-button {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-button:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Social icons animation */
.social-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    color: #3b82f6 !important;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .floating-icon {
        animation: none;
        opacity: 1;
    }
    
    .floating-icon:nth-child(1) {
        top: 20px !important;
        left: 10px !important;
    }
    
    .floating-icon:nth-child(2) {
        top: 30px !important;
        right: 10px !important;
    }
    
    .floating-icon:nth-child(3) {
        bottom: 20px !important;
    }
}

@media (max-width: 768px) {
    .hero-bg {
        padding: 0 15px;
    }
    
    .floating-icon {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-bg {
        padding: 0 10px;
    }
    
    .floating-icon {
        display: none;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Page load animation */
.page-fade-in {
    opacity: 0;
    animation: pageLoad 1s ease-out forwards;
}

/* Three Cards Section Styles */
.cards-section {
    background: #ffffff;
    padding: 80px 0;
}

.card-container {
    height: 50vh;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-inner {
    background: white;
    border: 2px solid #f3f4f6;
    border-radius: 24px;
    padding: 48px 0px;
    text-align: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Default state: keep icon + title vertically centered (no hover). */
    justify-content: center;
}

/* Hover state background - moved to combined rule below */

.card-container:hover .infinity-icon{
    position: absolute;
    bottom: 0.2vh;
}

/* Icon container */
.icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    z-index: 2;
}

/* Alpine.js animation classes */
.-translate-y-20 {
    transform: translateY(-5rem);
}

.translate-y-26 {
    transform: translateY(6.5rem);
}

/* Title styling */
.card-title {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    transition: all 2s ease-in-out;
    position: relative;
    z-index: 2;
    /* Title should be visible without hover (centered by .card-inner). */
    margin-top: 0;
}

.card-container:hover .card-title {
    color: white;
}

.card-container:hover .icon-white {
    display: block;
}

.card-container:hover .icon-blue {
    display: none;
}

/* Subtitle styling */
.card-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
    position: absolute;
    z-index: 2;
    width: 100%;
    text-align: center;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%) translateY(20px);
}

.card-container:hover .card-subtitle {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Hover effects */
.card-container:hover {
    transform: translateY(-12px) !important;
}

.card-container:hover .card-inner{
    background: linear-gradient(
            180deg,
            #c6e5fa 0%,
            #8cd0fc 50%,
            #009aff 100%
    ) !important;
    border-color: transparent !important;
    box-shadow: 0 25px 50px -12px rgba(140, 208, 252, 0.21),
    0 20px 40px -8px rgba(0, 154, 255, 0.27) !important;
    transform: none !important;
}

/* Icon bounce animation */
.card-container:hover .icon-container {
    animation: iconBounce 0.6s ease-in-out;
}

/* Load animations */
.card-container {
    opacity: 0;
    transform: translateY(50px);
    animation: slideInCard 0.8s ease-out forwards;
}

.card-container:nth-child(1) {
    animation-delay: 0.2s;
}

.card-container:nth-child(2) {
    animation-delay: 0.4s;
}

.card-container:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideInCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile and responsive styles for 3-column cards section */
@media (max-width: 1024px) {
    .card-container {
        height: 38vh;
        min-height: 250px;
    }

    .card-inner {
        padding: 24px 12px;
        border-radius: 20px;
    }

    .card-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .card-subtitle {
        font-size: 12px;
        bottom: 24px;
    }
}

@media (max-width: 768px) {
    .cards-section {
        padding: 12px 0 35px;
    }

    .card-container {
        height: auto;
        min-height: 155px;
        aspect-ratio: 1 / 1.15;
        margin-bottom: 0;
    }

    .card-inner {
        padding: 14px 6px;
        border-radius: 16px;
        min-height: unset;
        justify-content: center;
    }

    .card-title {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 4px;
        margin-top: 6px;
        line-height: 1.2;
        word-break: normal;
    }

    .card-subtitle {
        font-size: 9.5px;
        line-height: 1.2;
        bottom: 10px !important;
        padding: 0 4px;
    }

    .-translate-y-20 {
        transform: translateY(-1.75rem) !important;
    }

    .infinity-icon {
        bottom: -15px !important;
    }

    .card-container:hover .infinity-icon {
        bottom: 0 !important;
    }

    .icon-container {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .cards-section {
        padding: 8px 0 25px;
    }

    .card-container {
        min-height: 130px;
        aspect-ratio: 1 / 1.18;
        margin-bottom: 0;
    }

    .card-inner {
        padding: 10px 4px;
        border-radius: 12px;
    }

    .card-title {
        font-size: 11px;
        font-weight: 600;
        margin-bottom: 2px;
        margin-top: 4px;
        line-height: 1.15;
    }

    .card-subtitle {
        font-size: 8px;
        line-height: 1.15;
        bottom: 6px !important;
        padding: 0 2px;
    }

    .-translate-y-20 {
        transform: translateY(-1.35rem) !important;
    }

    .infinity-icon {
        bottom: -10px !important;
    }
}

@keyframes pageLoad {
    to {
        opacity: 1;
    }
}

@media (min-width: 1800px) {
    .custom-4k\:top-96 {
        top: 20rem !important;
    }
    .custom-4k\:left-96 {
        left: 30rem !important;
    }
    .custom-4k\:right-96 {
        right: 30rem !important;
    }
    .custom-4k\:bottom-32 {
        bottom: 8rem !important;
    }
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(25px)) {
    .header-floating {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ==========================================================================
   Course Hero Cross-Fade Slider & Section Dimensions
   ========================================================================== */
.hero-inner-section {
    min-height: 480px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    padding-top: 140px !important;
    padding-bottom: 50px !important;
}

body.admin-bar .hero-inner-section {
    padding-top: 186px !important;
}

@media (min-width: 640px) {
    .hero-inner-section {
        min-height: 520px !important;
        padding-top: 150px !important;
        padding-bottom: 50px !important;
    }
    body.admin-bar .hero-inner-section {
        padding-top: 196px !important;
    }
}

@media (min-width: 768px) {
    .hero-inner-section {
        min-height: 580px !important;
        padding-top: 160px !important;
        padding-bottom: 60px !important;
    }
    body.admin-bar .hero-inner-section {
        padding-top: 192px !important;
    }
}

@media (min-width: 1024px) {
    .hero-inner-section {
        min-height: 640px !important;
        padding-top: 170px !important;
        padding-bottom: 60px !important;
    }
    body.admin-bar .hero-inner-section {
        padding-top: 202px !important;
    }
}

@media (min-width: 1280px) {
    .hero-inner-section {
        min-height: 700px !important;
        padding-top: 180px !important;
        padding-bottom: 70px !important;
    }
    body.admin-bar .hero-inner-section {
        padding-top: 212px !important;
    }
}

.hero-slide-item picture,
.hero-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


.hero-breadcrumb-item {
    transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1), transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-breadcrumb-item.is-hidden {
    opacity: 0 !important;
    transform: scale(0.96) !important;
    pointer-events: none !important;
}

.hero-slider-wrap,
.hero-video-wrap {
    transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slider-wrap.is-visible,
.hero-video-wrap.is-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ==========================================================================
   Course Hero Video Mode - Full Aspect Ratio Display (Zero Cropping)
   ========================================================================== */
.hero-inner-section.is-video-hero {
    overflow: hidden;
    transition: height 0.25s ease, min-height 0.25s ease;
}

.hero-inner-section.is-video-hero #courseHeroVideo {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

.hero-slider-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.35s ease-in-out, visibility 0.35s ease-in-out;
    will-change: opacity;
}

.hero-slide-item.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2;
    pointer-events: auto;
}

.course-slider-dot {
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

.course-slider-dot.active {
    width: 2rem !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
}

/* ==========================================================================
   Course Details Modal Scrollbar Styling
   ========================================================================== */
#coursePopup .overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

#coursePopup .overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

#coursePopup .overflow-y-auto::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 9999px;
}

#coursePopup .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

#coursePopup .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================================
   Course Details Modal Rich Text Content Styling
   Restores standard formatting stripped by Tailwind Preflight
   ========================================================================== */
#coursePopupContent {
    color: #4b5563;
    line-height: 1.7;
}

#coursePopupContent p {
    margin-bottom: 0.75rem;
}

#coursePopupContent p:last-child {
    margin-bottom: 0;
}

#coursePopupContent strong,
#coursePopupContent b {
    font-weight: 700 !important;
    color: #0b0b0b !important;
}

#coursePopupContent em,
#coursePopupContent i {
    font-style: italic;
}

#coursePopupContent ul,
#coursePopupContent .wp-block-list {
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 1.5rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.75rem !important;
}

#coursePopupContent ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-left: 1.5rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.75rem !important;
}

#coursePopupContent ul ul,
#coursePopupContent ol ul {
    list-style-type: circle !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    padding-left: 1.25rem !important;
}

#coursePopupContent ol ol,
#coursePopupContent ul ol {
    list-style-type: lower-alpha !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    padding-left: 1.25rem !important;
}

#coursePopupContent li {
    display: list-item !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.6;
    color: #4b5563;
}

#coursePopupContent li:last-child {
    margin-bottom: 0 !important;
}

#coursePopupContent h1,
#coursePopupContent h2,
#coursePopupContent h3,
#coursePopupContent h4,
#coursePopupContent h5,
#coursePopupContent h6 {
    color: #0b0b0b;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

#coursePopupContent h1 { font-size: 1.35rem; }
#coursePopupContent h2 { font-size: 1.25rem; }
#coursePopupContent h3 { font-size: 1.15rem; }
#coursePopupContent h4 { font-size: 1.05rem; }
#coursePopupContent h5 { font-size: 0.95rem; }
#coursePopupContent h6 { font-size: 0.85rem; }

#coursePopupContent a {
    color: #009aff;
    text-decoration: underline;
    font-weight: 500;
}

#coursePopupContent a:hover {
    color: #007acc;
}

#coursePopupContent blockquote {
    border-left: 3px solid #009aff;
    padding-left: 1rem;
    margin: 0.75rem 0;
    color: #374151;
    font-style: italic;
}

/* Folder Course Cards - Dynamic stacking and hover elevation */
.folder-course-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.folder-course-card:hover {
    z-index: 99 !important;
}