/*
Theme Name: Infinity Space Theme
Description: A modern WordPress theme for Infinity Space Business School
Version: 1.0
Author: Infinity Space
Text Domain: infinity-space
*/

/* Global CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Ensure Tailwind utilities are available */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Ensure common Tailwind classes work */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline {
    display: inline;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.inline-grid {
    display: inline-grid;
}

.contents {
    display: contents;
}

.list-item {
    display: list-item;
}

.table {
    display: table;
}

.inline-table {
    display: inline-table;
}

.table-row {
    display: table-row;
}

.table-cell {
    display: table-cell;
}

.table-column {
    display: table-column;
}

.table-column-group {
    display: table-column-group;
}

.table-footer-group {
    display: table-footer-group;
}

.table-header-group {
    display: table-header-group;
}

.table-row-group {
    display: table-row-group;
}

.flow-root {
    display: flow-root;
}

/* Additional Tailwind utilities */
.space-x-1>*+* {
    margin-left: 0.25rem;
}

.space-x-2>*+* {
    margin-left: 0.5rem;
}

.space-x-4>*+* {
    margin-left: 1rem;
}

.space-x-8>*+* {
    margin-left: 2rem;
}

.space-y-1>*+* {
    margin-top: 0.25rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-8>*+* {
    margin-top: 2rem;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-white {
    color: #ffffff;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-900 {
    color: #111827;
}

.text-blue-600 {
    color: #2563eb;
}

.text-blue-700 {
    color: #1d4ed8;
}

/* Background utilities */
.bg-white {
    background-color: #ffffff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-gray-800 {
    background-color: #1f2937;
}

.bg-gray-900 {
    background-color: #111827;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-blue-700 {
    background-color: #1d4ed8;
}

/* Border utilities */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-gray-700 {
    border-color: #374151;
}

.border-white {
    border-color: #ffffff;
}

.border-blue-600 {
    border-color: #2563eb;
}

/* Rounded utilities */
.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Padding utilities */
.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

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

/* Margin utilities */
.m-0 {
    margin: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-8 {
    margin-top: 2rem;
}

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Shadow utilities */
.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hover utilities */
.hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.hover\:bg-white:hover {
    background-color: #ffffff;
}

.hover\:text-blue-600:hover {
    color: #2563eb;
}

.hover\:text-blue-700:hover {
    color: #1d4ed8;
}

.hover\:text-white:hover {
    color: #ffffff;
}

.hover\:text-gray-900:hover {
    color: #111827;
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Transition utilities */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Opacity utilities */
.opacity-0 {
    opacity: 0;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-100 {
    opacity: 1;
}

/* Visibility utilities */
.invisible {
    visibility: hidden;
}

.visible {
    visibility: visible;
}

/* Cursor utilities */
.cursor-not-allowed {
    cursor: not-allowed;
}

.cursor-pointer {
    cursor: pointer;
}

/* Position utilities */
.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

/* Z-index utilities */
.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* Overflow utilities */
.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

/* Object fit utilities */
.object-cover {
    object-fit: cover;
}

/* Width and height utilities */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-8 {
    height: 2rem;
}

.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

.h-32 {
    height: 8rem;
}

.h-48 {
    height: 12rem;
}

.h-64 {
    height: 16rem;
}

.h-96 {
    height: 24rem;
}

.h-screen {
    height: 100vh;
}

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

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

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

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

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* Flex utilities */
.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Text size utilities */
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

/* Font weight utilities */
.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

/* Line height utilities */
.leading-tight {
    line-height: 1.25;
}

.leading-normal {
    line-height: 1.5;
}

/* Max width utilities */
.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-7xl {
    max-width: 80rem;
}

/* Responsive utilities */
@media (min-width: 640px) {
    .sm\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    .sm\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .sm\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .sm\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .sm\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .sm\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }

    .sm\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }

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

    .sm\:flex-row {
        flex-direction: row;
    }

    .sm\:flex-col {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .md\:hidden {
        display: none;
    }

    .md\:flex {
        display: flex;
    }

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

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

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

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

    .md\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }

    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }

    .md\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }
}

@media (min-width: 1024px) {
    .lg\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

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

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

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

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Custom font weights */
.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-black {
    font-weight: 900;
}

/* Hero background styles */
.hero-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* WordPress specific styles */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

/* Page Template Styles */
/* Floating Icons Animation */
.floating-icon {
    position: absolute;
    animation: smoothFloat 6s ease-in-out infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

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

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

@keyframes smoothFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 1;
    }

    90% {
        opacity: 1;
    }
}

/* Text Gradients */
.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, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInText 1.2s ease-out 1.5s forwards;
}

/* .courses-gradient {
    background: linear-gradient(180deg, #3b82f6, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  } */
.courses-gradient {
    background: linear-gradient(90deg, #4E9DFF 0%, #4E9DFF 25%, #F90068 65%, #FF00D3 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

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

/* Carousel Word Animation */
.carousel-word {
    background: linear-gradient(90deg, #4E9DFF 0%, #4E9DFF 25%, #F90068 65%, #FF00D3 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    opacity: 0;
    position: absolute;
    left: 0;
    bottom: 0;
    animation: wordFade 12s infinite;
    transform: translateY(30px);
}

.carousel-word:nth-child(1) {
    animation-delay: 0s;
}

.carousel-word:nth-child(2) {
    animation-delay: 4s;
}

.carousel-word:nth-child(3) {
    animation-delay: 8s;
}

@keyframes wordFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    8.33% {
        opacity: 1;
        transform: translateY(0);
    }

    25% {
        opacity: 1;
        transform: translateY(0);
    }

    33.33% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* Course Cards Styles - moved to course.css to avoid conflicts */

/* Removed conflicting Three Cards hover effect - handled in course.css */

/* Card title and subtitle styles moved to course.css to avoid conflicts */

/* Removed conflicting Three Cards subtitle hover effect - handled in course.css */

/* Team Member Styles */
.team-member {
    opacity: 0;
    transform: translateY(50px);
    animation: slideInCard 0.8s ease-out forwards;
}

.team-member:nth-child(1) {
    animation-delay: 0s;
}

.team-member:nth-child(2) {
    animation-delay: 0.2s;
}

.team-member:nth-child(3) {
    animation-delay: 0.4s;
}

.team-member:nth-child(4) {
    animation-delay: 0.6s;
}

.team-member:nth-child(5) {
    animation-delay: 0.8s;
}

.team-member:nth-child(6) {
    animation-delay: 1s;
}

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

.team-image-container {
    position: relative;
    width: 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-image-container:hover {
    transform: scale(1.05);
}

.team-member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-name {
    font-size: 2rem;
    font-weight: bold;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.team-member-role {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-member-description {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.placeholder-container {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-placeholder {
    width: 80px;
    height: 80px;
    background: #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 2rem;
}

/* Lecturer Card Styles */
.lecturer-card {
    position: relative;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.lecturer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.lecturer-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.lecturer-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lecturer-card:hover .lecturer-name {
    transform: translateY(0);
}

/* Modal Styles (for lecturers) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    max-width: 90vw;
    max-height: 90vh;
    width: 1000px;
    height: 600px;
    display: flex;
    position: relative;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-image-section {
    flex: 1;
    background: #000;
}

.modal-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-content-section {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
}

.classes-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Think Tank Styles */
.contributor-card-full {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 200px;
    margin-bottom: 16px;
}

.contributor-card-full:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.resource-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.resource-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.youtube-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Profile group styles */
.profile-group {
    display: flex;
    align-items: center;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
    margin-left: -10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-img:first-child {
    margin-left: 0;
}

.profile-img:hover {
    transform: translateY(-2px);
    z-index: 10;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-image-container {
        width: 250px;
        height: 350px;
    }

    .lecturer-card {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .modal-content {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
    }

    .modal-image-section {
        height: 300px;
    }

    .modal-content-section {
        padding: 2rem;
    }
}

/* Temporary Font Test: Quicksand (Replacing SF Pro Display & Mona Sans) */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
button,
input,
select,
textarea,
.nav-link,
.courses-gradient,
.lecturer-name,
.lecturer-hover-name,
.lecturer-description,
.testimonial-name,
.testimonial-text,
.ca-course-title,
.ca-course-body,
.ca-course-code,
.ca-overlay-title,
.register-title,
.about-description,
.team-description,
.footer h3 {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

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


/* ==========================================================================
   Navigation Menu Alignment & Think Tank Styling
   ========================================================================== */

/* Universal Floating Navigation Header - Glassmorphism Effect */
.header-floating {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(50px) !important;
    -webkit-backdrop-filter: blur(50px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    isolation: isolate;
    will-change: backdrop-filter;
}

/* Desktop Navigation Menu (Only on screens >= 1024px) */
@media (min-width: 1024px) {

    .header-floating ul#menu-menu,
    .header-floating ul.hidden.lg\:flex {
        display: flex !important;
        align-items: center !important;
    }

    .header-floating ul#menu-menu li,
    .header-floating ul.hidden.lg\:flex li {
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: middle !important;
    }

    .header-floating ul#menu-menu .nav-link,
    .header-floating ul.hidden.lg\:flex .nav-link {
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: middle !important;
        line-height: 1.2 !important;
    }
}

/* Mobile Navigation (Screens < 1024px) */
@media (max-width: 1023px) {

    .header-floating ul.hidden,
    .header-floating ul.hidden.lg\:flex {
        display: none !important;
    }

    #mobileMenu.hidden {
        display: none !important;
    }

    #mobileMenu:not(.hidden) {
        display: block !important;
    }

    #mobileMenu ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 8px 0 !important;
    }

    #mobileMenu li {
        display: block !important;
        width: 100% !important;
    }

    #mobileMenuBtn {
        cursor: pointer !important;
        position: relative !important;
        z-index: 50 !important;
    }

    #mobileMenu .nav-link {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 10px 16px !important;
        border-radius: 8px !important;
    }

    #mobileMenu .nav-link.active {
        background: rgba(255, 255, 255, 0.45) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        color: #0a0a0d !important;
        font-weight: 600 !important;
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    }
}

/* Active Navigation Item Styling - Subtle Frosted Glass Capsule */
.header-floating .nav-link.active {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: #0a0a0d !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    border-radius: 9999px !important;
    transform: translateY(-1px);
}

/* Think Tank Gradient text styling */
.think-tank-nav {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
    background: linear-gradient(90deg, #4E9DFF 0%, #4E9DFF 25%, #F90068 65%, #FF00D3 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    font-weight: 700 !important;
}

/* Think Tank Active State: Keep vibrant gradient text within frosted glass capsule */
.header-floating .think-tank-nav.active {
    position: relative !important;
    background: linear-gradient(90deg, #4E9DFF 0%, #4E9DFF 25%, #F90068 65%, #FF00D3 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    border-radius: 9999px !important;
    border: none !important;
    box-shadow: none !important;
}

.header-floating .think-tank-nav.active::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

#mobileMenu .think-tank-nav.active::before {
    border-radius: 8px !important;
}

/* ==========================================================================
   Header Positioning Configuration (Standardized top space across all pages)
   ========================================================================== */
.site-header {
    position: absolute !important;
    top: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    width: 91.666667% !important;
}

@media (min-width: 768px) {
    .site-header {
        top: 24px !important;
    }
}

@media (min-width: 1024px) {
    .site-header {
        top: 40px !important;
    }
}

/* WordPress Admin Bar Compatibility
   We remove the core html margin-top bump so html has no top margin gap,
   pin #wpadminbar to top: 0, and position the floating header cleanly below the admin bar. */

html {
    margin-top: 0 !important;
}

* html body {
    margin-top: 0 !important;
}

@media screen and (max-width: 782px) {
    html {
        margin-top: 0 !important;
    }

    * html body {
        margin-top: 0 !important;
    }
}

body.admin-bar {
    overflow-x: clip !important;
}

body.admin-bar #wpadminbar {
    top: 0 !important;
    position: fixed !important;
}

@media screen and (max-width: 600px) {
    body.admin-bar #wpadminbar {
        position: absolute !important;
    }
}

body.admin-bar .site-header {
    top: calc(16px + 46px) !important;
}

@media (min-width: 783px) {
    body.admin-bar .site-header {
        top: calc(28px + 32px) !important;
    }
}

@media (min-width: 1024px) {
    body.admin-bar .site-header {
        top: calc(40px + 32px) !important;
    }
}

/* Fallback if site-header is dynamically or manually toggled to fixed */
body.admin-bar .site-header.is-fixed,
body.admin-bar .site-header.fixed {
    top: calc(16px + 46px) !important;
}

@media (min-width: 783px) {

    body.admin-bar .site-header.is-fixed,
    body.admin-bar .site-header.fixed {
        top: calc(28px + 32px) !important;
    }
}

@media (min-width: 1024px) {

    body.admin-bar .site-header.is-fixed,
    body.admin-bar .site-header.fixed {
        top: calc(40px + 32px) !important;
    }
}

/* ==========================================================================
   Standardized Hero Section & Top Spacing for Inner Pages
   ========================================================================== */
.hero-inner-section {
    min-height: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    padding-top: 112px !important;
    padding-bottom: 24px !important;
}

@media (min-width: 640px) {
    .hero-inner-section {
        min-height: 340px !important;
        padding-top: 136px !important;
        padding-bottom: 32px !important;
    }
}

@media (min-width: 768px) {
    .hero-inner-section {
        min-height: 420px !important;
        padding-top: 160px !important;
        padding-bottom: 40px !important;
    }
}

@media (min-width: 1024px) {
    .hero-inner-section {
        min-height: 460px !important;
        padding-top: 180px !important;
        padding-bottom: 48px !important;
    }
}

@media (min-width: 1280px) {
    .hero-inner-section {
        min-height: 520px !important;
        padding-top: 200px !important;
        padding-bottom: 60px !important;
    }
}

/* Lecturer Carousel: Uniform 3-line description with click expansion */
.lecturer-description {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: pointer !important;
}

@media (max-width: 640px) {
    .lecturer-description {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
}

.lecturer-description.expanded,
.lecturer-card.expanded .lecturer-description {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow-y: auto !important;
    max-height: 180px !important;
    padding-right: 4px !important;
}

.lecturer-expand-btn {
    display: none;
    /* Only shown if text actually overflows 3 lines */
    font-size: 12px;
    font-weight: 600;
    color: #60a5fa !important;
    margin-top: 4px;
    cursor: pointer;
    text-decoration: underline;
    background: transparent;
    border: none;
    padding: 0;
}

.lecturer-expand-btn:hover {
    color: #ffffff !important;
}

/* Statistics Counter: Prevent text wobbling during number animation and apply Think Tank gradient */
.counter {
    background: linear-gradient(90deg, #4E9DFF 0%, #4E9DFF 25%, #F90068 65%, #FF00D3 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" 1 !important;
    display: inline-block !important;
    text-align: center !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

.stats-item {
    text-align: center !important;
}

/* Registration Section: NEW COURSE Gradient Title */
.register-title {
    background: linear-gradient(90deg, #4E9DFF 0%, #4E9DFF 25%, #F90068 65%, #FF00D3 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ==========================================================================
   Header Navigation Sign In Button
   ========================================================================== */
.nav-signin-btn {
    background: linear-gradient(90deg, #4E9DFF 0%, #4E9DFF 25%, #F90068 65%, #FF00D3 100%) !important;
    color: #ffffff !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none !important;
    user-select: none;
    position: relative !important;
    z-index: 1001 !important;
}

.nav-signin-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 8px 20px rgba(249, 0, 104, 0.4);
}

.nav-signin-btn:active {
    filter: brightness(0.95);
    transform: scale(0.96) !important;
}

li.menu-item-signin {
    list-style: none !important;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   Global Footer Background Style (Ensures footer is never upside down)
   ========================================================================== */
.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: -20%;
    left: -30%;
    width: 160%;
    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%
    );
    pointer-events: none;
}