/* ========== UNIFIED CSS STYLESHEET - GREY/WHITE/BLACK THEME ========== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
    --primary: #1f2937;
    --primary-dark: #111827;
    --secondary: #4b5563;
    --accent: #6b7280;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --dark: #0f172a;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --light: #f9fafb;

    --gradient-primary: linear-gradient(135deg, #1f2937, #4b5563);
    --gradient-secondary: linear-gradient(135deg, #4b5563, #6b7280);
    --gradient-dark: linear-gradient(135deg, #0f172a, #1e293b);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    background-attachment: fixed;
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    min-height: 100vh;
    position: relative !important;
}

body.menu-open {
    overflow: hidden !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

img {
    loading: lazy;
    decoding: async;
}

/* ========== LOADER ========== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-wrapper {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content { 
    text-align: center; 
}

.loader-logo { 
    width: 60px; 
    height: 60px; 
    margin: 0 auto 20px; 
}

.loader-progress { 
    width: 200px; 
    height: 2px; 
    background: rgba(0,0,0,0.1); 
    border-radius: 2px; 
    overflow: hidden; 
}

.loader-progress-bar { 
    height: 100%; 
    background: var(--gradient-primary); 
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
}

/* ========== GLASS MORPHISM ========== */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-ghost {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-secondary3 {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    min-width: 120px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-secondary3:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.btn-cancel,
.btn-save {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-cancel {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-cancel:hover {
    background: #f3f4f6;
}

.btn-save {
    background: var(--gradient-primary) !important;
    color: white !important;
}

.btn-save:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== GRADIENT BUTTONS ========== */
.gradient-btn,
.gradient-btn-outline {
    all: unset;
    background: transparent;
    cursor: pointer;
    display: inline-block;
}

.gradient-btn > div,
.gradient-btn-outline > div {
    display: block;
    padding: 0.8em 1.2em;
    background: var(--gradient-primary);
    color: white;
    font-weight: bold;
    border-radius: 8px;
    font-size: 18px;
    position: relative;
    cursor: pointer;
}

.gradient-btn > div > span,
.gradient-btn-outline > div > span {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    color: white !important;
    letter-spacing: 0.15ch;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gradient-btn > div::before,
.gradient-btn-outline > div::before {
    content: "";
    position: absolute;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    background: var(--gradient-primary);
    border-radius: 9px;
    z-index: -1;
    top: -3px;
    left: -3px;
    opacity: 0.3;
    pointer-events: none;
}

.gradient-btn > div::after,
.gradient-btn-outline > div::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -2;
    top: 0;
    left: 0;
    opacity: 1;
    pointer-events: none;
    filter: blur(10px);
}

/* ========== HERO SECTION ========== */
.hero-gradient {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.hero-pattern h1 .bg-clip-text {
    background: var(--gradient-primary) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    filter: blur(100px);
    opacity: 0.2;
    z-index: 0;
    border-radius: 100%;
}

/* ========== HERO SECTION BACKGROUND ========== */
section.relative.min-h-screen.flex.items-start {
    background: linear-gradient(180deg, 
        rgba(249, 250, 251, 1) 0%, 
        rgba(243, 244, 246, 0.95) 15%, 
        rgba(249, 250, 251, 0.9) 30%, 
        rgba(255, 255, 255, 0.85) 45%, 
        rgba(255, 255, 255, 0.8) 60%, 
        rgba(255, 255, 255, 0.7) 75%, 
        rgba(255, 255, 255, 0.5) 90%, 
        transparent 100%) !important;
    position: relative;
    overflow: hidden;
}

/* ========== CARDS ========== */
.card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.card-gradient {
    background: var(--gradient-primary);
    color: white;
}

.feature-card {
    position: relative;
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-base);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========== INPUTS ========== */
.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: white;
    transition: all var(--transition-fast);
}

.input:focus,
input:focus,
textarea:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* ========== SCHOLARSHIP BANNER ========== */
.scholarship-banner {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.scholarship-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* ========== LAYOUT OVERRIDES ========== */
section.relative.min-h-screen.py-20 {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
}

.scholarship-banner {
    margin: 0 !important;
    padding: 0.5rem 1rem !important;
}

.space-y-8 > :first-child + :nth-child(2) {
    margin-top: 0.25rem !important;
}

/* ========== FEATURED PROGRAMS SECTION ========== */
#features {
    background: linear-gradient(180deg, 
        rgba(249, 250, 251, 0.5) 0%, 
        rgba(243, 244, 246, 0.3) 50%, 
        rgba(255, 255, 255, 0.2) 100%) !important;
    position: relative;
    overflow: hidden;
}

#features .program-card {
    position: relative;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gray-300);
    background: white;
    color: var(--gray-800);
    transition: box-shadow 0.2s;
}

#features .program-card:hover {
    box-shadow: var(--shadow-lg);
}

#features .program-card h3 {
    color: var(--gray-900);
}

#features .program-card p {
    color: var(--gray-600);
}

#features .program-card .icon-box {
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid var(--gray-300);
}

#features .program-card .tag-pill {
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid var(--gray-300);
    color: var(--gray-900);
}

#features .program-card .program-link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

#features .program-card .program-link:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

#features .text-center .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#features .text-center span:not(.gradient-text) {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* ========== PROGRAM CARDS ========== */
.program-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 8px 12px rgba(0, 0, 0, 0.08),
        0 25px 30px -5px rgba(0, 0, 0, 0.15),
        0 15px 15px -5px rgba(0, 0, 0, 0.06);
    border-color: var(--gray-300);
}

.icon-box {
    box-shadow: 
        inset 0 2px 4px 0 rgba(0, 0, 0, 0.06),
        inset 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.program-link {
    transition: all 0.3s ease;
}

.program-link:hover {
    gap: 12px;
}

.tag-pill {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.tag-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========== PROGRAM CARD LAYOUT ========== */
.desktop-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
}

.desktop-image-container {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 0.375rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.program-card:hover .desktop-image {
    transform: scale(1.1);
}

.program-title.desktop-title {
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 600;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    word-break: break-word;
    flex: 1;
}

.mobile-content {
    display: none;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.program-title.mobile-title {
    font-size: 0.8rem;
    line-height: 1.2;
    font-weight: 600;
    margin: 0.5rem 0;
    text-align: center;
    width: 100%;
    padding: 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    max-height: 2.4rem;
}

.program-image-container {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.program-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 16/9;
    transition: transform 0.3s ease;
}

.program-card:hover .program-image {
    transform: scale(1.05);
}

.program-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.program-badge i {
    font-size: 0.65rem;
}

#programsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

/* ========== FIGMA-STYLE PROGRAMS SECTION ========== */
.figma-program-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.figma-program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
}

.figma-card-image {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.figma-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.figma-card-image i {
    font-size: 2rem;
    color: var(--gray-700);
}

.figma-card-content {
    flex: 1;
    min-width: 0;
}

.figma-card-provider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.figma-provider-logo {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.figma-provider-name {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.figma-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.figma-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.figma-card-type {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.figma-card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.figma-card-rating i {
    color: #fbbf24;
    font-size: 0.875rem;
}

.figma-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.figma-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.figma-view-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.figma-view-all:hover {
    gap: 0.75rem;
}

.figma-view-all i {
    font-size: 0.75rem;
}

.figma-programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.figma-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.figma-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.figma-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}

.figma-section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== CTA SECTION ========== */
section.py-20.bg-gradient-to-r.from-blue-400.to-purple-300 {
    background: var(--gradient-primary) !important;
    color: white !important;
}

/* ========== NEWSLETTER ========== */
section.py-16.bg-gradient-to-r.from-blue-500.to-purple-600 {
    background: var(--gradient-primary) !important;
    color: white !important;
}

/* ========== FOOTER ========== */
footer.bg-gray-900 {
    background-color: #0f172a !important;
}

/* ========== SOCIAL PROOF ========== */
.flex.-space-x-3 > :last-child {
    background: var(--gradient-primary) !important;
    color: white !important;
    font-weight: bold;
}

.cta-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    height: 2.5rem !important;
    padding: 0 1.5rem !important;
    background: var(--primary) !important;
    color: white !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
}

.cta-button:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* ========== UTILITY CLASSES ========== */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

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

.floating-shape {
    position: absolute;
    opacity: 0.1;
    z-index: -1;
}

.carousel {
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    scroll-snap-align: start;
}

.course-card {
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.stats-item {
    transition: all 0.3s ease;
}

.stats-item:hover {
    transform: scale(1.05);
}

.accordion-header {
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* ========== BACKGROUND PATTERNS ========== */
.bg-grid-slate-100 {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='%23f1f5f9'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e");
}

.bg-grid-slate-200 {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='%23e2e8f0'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e");
}

.bg-grid-slate-300 {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='%23cbd5e1'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e");
}

/* ========== PARTNERSHIPS STYLES ========== */
.scrolling-partners-top,
.scrolling-partners-bottom {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.scrolling-set-top,
.scrolling-set-bottom {
    display: flex;
    gap: 3rem;
    min-width: max-content;
    align-items: center;
}

.partner-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2.5rem;
    background: white;
    border: 1px solid rgb(226 232 240);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
}

.partner-item:hover {
    transform: translateY(-8px);
    border-color: var(--gray-400);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.partner-logo-container {
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
}

.partner-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(71 85 105);
    text-align: center;
}

.stat-card {
    padding: 2rem;
    background: white;
    border: 1px solid rgb(226 232 240);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgb(30 41 59);
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.875rem;
    color: rgb(100 116 139);
}

/* ========== ACCREDITATION STYLES ========== */
.accreditation-banner {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 12px 20px;
    backdrop-filter: blur(10px);
}

.accreditation-card {
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.accreditation-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.accreditation-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
}

.badge-container {
    display: inline-block;
    padding: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.badge-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
}

.badge-image {
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
}

.square-badge {
    width: 200px;
    height: 200px;
}

.rectangle-badge {
    width: 250px;
    height: 160px;
}

.badge-info {
    margin-top: 8px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (min-width: 1024px) {
    .desktop-nav {
        display: block !important;
    }
    
    .desktop-cta {
        display: flex !important;
    }
    
    .mobile-toggle {
        display: none !important;
    }
    
    section.relative.min-h-screen.py-20 {
        padding-top: 3rem !important;
    }
    
    .nav-wrapper {
        z-index: 1000 !important;
    }
    
    .mobile-menu {
        z-index: 999 !important;
    }
    
    .program-card {
        transform: scale(0.85);
    }
    
    .program-card:hover {
        transform: scale(0.88) translateY(-8px);
    }
    
    .figma-programs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1023px) {
    .nav-content {
        padding: 0.75rem 1rem !important;
    }
}

@media (max-width: 768px) {
    .figma-section-title {
        font-size: 2rem;
    }
    
    .figma-section-subtitle {
        font-size: 1rem;
    }
    
    .square-badge {
        width: 160px;
        height: 160px;
    }
    
    .rectangle-badge {
        width: 200px;
        height: 130px;
    }
    
    .badge-container {
        padding: 8px;
    }
}

@media (max-width: 640px) {
    html {
        zoom: 87%;
    }
    
    .flex.flex-wrap.gap-4 {
        flex-wrap: nowrap !important;
        justify-content: center;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0;
    }
    
    .gradient-btn > div,
    .gradient-btn-outline > div {
        padding: 0.6em 0.8em !important;
        font-size: 16px !important;
    }
    
    .gradient-btn svg,
    .gradient-btn-outline svg {
        width: 1rem !important;
        height: 1rem !important;
    }
    
    .gradient-btn span svg:last-child {
        display: none;
    }
    
    .scholarship-banner {
        margin-top: 0.25rem !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    .space-y-8 > :first-child + :nth-child(2) {
        margin-top: 0.5rem !important;
    }
    
    section.relative.min-h-screen.py-20 {
        padding-top: 1.5rem !important;
        padding-bottom: 2rem !important;
    }
    
    .hero-section .flex.flex-col {
        position: relative;
        z-index: 30;
    }
    
    .blob {
        display: none;
    }
    
    .program-card {
        padding: 0;
    }
    
    .desktop-content {
        display: none;
    }
    
    .program-card-header {
        min-height: auto;
        padding: 0;
        flex-direction: column;
        justify-content: center;
        gap: 0;
    }
    
    .program-title.desktop-title {
        display: none;
    }
    
    .mobile-content {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .program-card-body {
        padding: 0.75rem;
    }
    
    .program-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }
    
    .program-badge i {
        font-size: 0.55rem;
    }
    
    .btn-secondary3 {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.7rem !important;
        min-width: 110px;
        white-space: nowrap;
    }
    
    .figma-programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .figma-program-card {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
    }
    
    .figma-card-image {
        width: 48px;
        height: 48px;
    }
    
    .figma-card-image i {
        font-size: 1.5rem;
    }
    
    .figma-card-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }
    
    .figma-card-meta {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.7rem;
    }
    
    .figma-category-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .figma-category-title {
        font-size: 1rem;
    }
    
    .grid.grid-cols-1.md\:grid-cols-2 {
        gap: 1rem;
    }
    
    .square-badge {
        width: 140px;
        height: 140px;
    }
    
    .rectangle-badge {
        width: 180px;
        height: 115px;
    }
}

@media (max-width: 375px) {
    .program-title.mobile-title {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
        max-height: 2rem;
    }
    
    .program-badge {
        font-size: 0.6rem;
    }
    
    .btn-secondary3 {
        font-size: 0.65rem !important;
        min-width: 100px;
    }
}

/* Hero buttons consistency */
.flex.flex-wrap.gap-4 .gradient-btn > div,
.flex.flex-wrap.gap-4 .gradient-btn-outline > div {
    padding: 0.7em 1em !important;
    font-size: 16px !important;
}

.flex.flex-wrap.gap-4 .gradient-btn span,
.flex.flex-wrap.gap-4 .gradient-btn-outline span {
    font-size: 14px !important;
    font-weight: 600 !important;
    gap: 0.4rem !important;
}

.flex.flex-wrap.gap-4 .gradient-btn svg,
.flex.flex-wrap.gap-4 .gradient-btn-outline svg {
    width: 16px !important;
    height: 16px !important;
}

@media (max-width: 640px) {
    .flex.flex-wrap.gap-4 {
        justify-content: center !important;
        gap: 0.75rem !important;
    }
    
    .flex.flex-wrap.gap-4 .gradient-btn > div,
    .flex.flex-wrap.gap-4 .gradient-btn-outline > div {
        padding: 0.6em 0.9em !important;
        font-size: 15px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .flex.flex-wrap.gap-4 .gradient-btn span,
    .flex.flex-wrap.gap-4 .gradient-btn-outline span {
        font-size: 13px !important;
        gap: 0.3rem !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 375px) {
    .flex.flex-wrap.gap-4 .gradient-btn > div,
    .flex.flex-wrap.gap-4 .gradient-btn-outline > div {
        padding: 0.5em 0.8em !important;
        font-size: 14px !important;
    }
    
    .flex.flex-wrap.gap-4 .gradient-btn span,
    .flex.flex-wrap.gap-4 .gradient-btn-outline span {
        font-size: 12px !important;
    }
    
    .flex.flex-wrap.gap-4 {
        gap: 0.5rem !important;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}