/* Simple Updates */
p a {
    color: var(--secondary-royal-blue);
}

.container-narrow {
    max-width: 1200px;
}

#mainCarousel .sign-up-button {
    padding: 12px 24px;
}
/* Custom CSS for 2UFi Theme New Blocks */

/* WYSIWYG Content Block Styling */
.wysiwyg-content h1,
.wysiwyg-content h2,
.wysiwyg-content h3,
.wysiwyg-content h4,
.wysiwyg-content h5,
.wysiwyg-content h6 {
    font-family: "park-lane", "Helvetica", sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.wysiwyg-content h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.wysiwyg-content h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.wysiwyg-content h3 {
    font-size: 1.5rem;
    line-height: 2rem;
}

.wysiwyg-content h4 {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.wysiwyg-content h5 {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.wysiwyg-content h6 {
    font-size: 1rem;
    line-height: 1.5rem;
}

.wysiwyg-content p {
    margin-bottom: 1rem;
}

.wysiwyg-content ul,
.wysiwyg-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.wysiwyg-content li {
    margin-bottom: 0.5rem;
}

.wysiwyg-content a {
    color: var(--secondary-royal-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.wysiwyg-content a:hover {
    color: #3651d1;
}

.wysiwyg-content blockquote {
    border-left: 4px solid var(--secondary-royal-blue);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.wysiwyg-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
}

/* Responsive typography adjustments */
@media (min-width: 768px) {
    .wysiwyg-content h1 {
        font-size: 3rem;
        line-height: 1;
    }
    
    .wysiwyg-content h2 {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .wysiwyg-content h3 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

/* Icon Card Grid hover effects */
.tufi-icon-card-grid-block .grid > div:hover {
    transform: translateY(-2px);
}

/* Content Block responsive adjustments */
@media (max-width: 767px) {
    .tufi-content-block .flex-col.md\:flex-row > div:first-child {
        order: 1;
    }
    
    .tufi-content-block .flex-col.md\:flex-row > div:last-child {
        order: 2;
    }
}

/* Gap utilities for new blocks */
.gap-12 {
    gap: 3rem;
}

.gap-16 {
    gap: 4rem;
}

.gap-20 {
    gap: 5rem;
}

/* Responsive gap utilities */
@media (min-width: 768px) {
    .md\:gap-16 {
        gap: 4rem;
    }
    
    .md\:gap-20 {
        gap: 5rem;
    }
}

@media (min-width: 1024px) {
    .lg\:gap-20 {
        gap: 5rem;
    }
    
    .lg\:gap-24 {
        gap: 6rem;
    }
}

/* Padding utilities for new blocks */
.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Responsive padding utilities */
@media (min-width: 768px) {
    .md\:py-24 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media (min-width: 1024px) {
    .lg\:py-32 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* Grid utilities for icon card grid block */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* Responsive grid utilities */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Disclaimer Content Styling */
.disclaimer-content p {
    margin: 0;
}

.disclaimer-content p + p {
    margin-top: 0.5rem;
}

/* Missing Padding Utilities */
.pb-0 {
    padding-bottom: 0;
}

.p-6 {
    padding: 1.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Missing Margin Utilities */
.mt-8 {
    margin-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-14 {
    margin-top: 3.5rem;
}

.mt-16 {
    margin-top: 4rem;
}

.mt-20 {
    margin-top: 5rem;
}

.mt-24 {
    margin-top: 6rem;
}

/* Navigation Menu Styling */
.desktop-nav {
    margin-left: 2rem;
}

.desktop-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.desktop-menu li {
    margin: 0;
}

.desktop-menu a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #091c30;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.desktop-menu a:hover {
    color: #4a6bf0;
}

.desktop-menu .current-menu-item > a,
.desktop-menu .current-menu-ancestor > a,
.desktop-menu .current_page_item > a,
.desktop-menu .current_page_ancestor > a {
    color: var(--secondary-royal-blue);
    font-weight: 600;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    position: relative;
    z-index: 50;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #091c30;
    margin: 3px 0;
    transition: all 0.3s ease;
}

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

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Menu */
.mobile-nav {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #091c30;
    text-decoration: none;
    padding: 1rem 0;
    display: block;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: #4a6bf0;
}

.mobile-menu .current-menu-item > a,
.mobile-menu .current-menu-ancestor > a,
.mobile-menu .current_page_item > a,
.mobile-menu .current_page_ancestor > a {
    color: var(--secondary-royal-blue);
}

/* Responsive Navigation Display */
@media (min-width: 1300px) {
    .desktop-nav {
        display: block !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 1299px) {
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Hover Cards Block Styling */
.cards-grid-container {
    max-width: 1100px;
    margin: 0 auto;
}
.cards-grid-container > div {
    justify-items: center;
    align-items: start;
}

/* When there are exactly 2 cards, center them in a 2-column layout */
/* Override the lg:grid-cols-3 when there are exactly 2 cards */
.tufi-hover-cards-block:has(.carousel-item:nth-last-child(2):first-child) .cards-grid-container > div {
    max-width: 750px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .tufi-hover-cards-block:has(.carousel-item:nth-last-child(2):first-child) .cards-grid-container > div {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
.tufi-hover-cards-block .carousel-item {
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Initial state for animate-slide-up elements (required for animation to work) */
.tufi-hover-cards-block .animate-slide-up {
    opacity: 1; /* Keep visible initially for bottom-positioned content */
    transition: none; /* Disable any conflicting transitions */
}

/* For bottom-aligned cards: entire container should be visible and animate to top on hover */
.tufi-hover-cards-block .carousel-item:hover > div[id^="cotentContainer"] {
    top: 25px !important;
    transition: top 0.8s ease;
}

/* For top-aligned cards: only description should animate in */
.tufi-hover-cards-block .hid-content.animate-slide-up {
    opacity: 0;
    transform: translateY(100%);
    margin-top: 1rem; /* Add spacing between title and description for top-aligned cards */
}

/* Ensure hover trigger works for grid layout */
.tufi-hover-cards-block .carousel-item:hover .animate-slide-up {
    --y-translate: 0px;
    animation: text-slide-up 0.8s ease forwards;
}

/* Hover Cards specific hover positioning (extends the original carousel-item:hover styles) */
.tufi-hover-cards-block .carousel-item:hover {
    background-image: none !important;
    border: 1px solid rgba(201, 199, 197, 0.4);
}

/* Single Slide Banner Block Styling - Centered Layout When No Phone */
.tufi-single-slide-banner-block[data-has-phone="false"] .absolute.inset-0 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tufi-single-slide-banner-block[data-has-phone="false"] .relative.w-full.absolute {
    position: relative !important;
    height: auto;
}

/* Ensure content is properly centered when no phone image */
.tufi-single-slide-banner-block[data-has-phone="false"] .basis-128 {
    max-width: 800px;
    padding: 2rem 1rem;
}

/* Math Cards Block Styling */
.tufi-math-cards-block .math-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tufi-math-cards-block .math-card {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 1.5rem 2rem;
}

.tufi-math-cards-block .math-card:hover {
    transform: translateY(-4px);
}

.tufi-math-cards-block .math-card-special {
    border: none;
}

.tufi-math-cards-block .math-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    user-select: none;
}

/* Responsive layout for Math Cards */
@media (min-width: 1024px) {
    .tufi-math-cards-block .math-cards-container {
        flex-direction: row;
    }
    
    .tufi-math-cards-block .math-card {
        min-height: 200px;
        padding: 2rem 2.5rem;
    }
    
    .tufi-math-cards-block .math-symbol {
        align-self: center;
    }
}

/* Mobile: Stack cards vertically with reduced spacing */
@media (max-width: 1023px) {
    .tufi-math-cards-block .math-symbol {
        margin: 0.25rem 0;
        transform: rotate(0deg);
    }
    
    .tufi-math-cards-block .math-card {
        min-height: 140px;
    }
}
