/* Modern Elegant Design System */
/* Mobile Responsive Overrides */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .text-4xl, .text-5xl, .text-6xl {
        font-size: 1.875rem !important; /* text-3xl */
    }
    
    .text-3xl {
        font-size: 1.5rem !important; /* text-2xl */
    }
    
    .text-2xl {
        font-size: 1.25rem !important; /* text-xl */
    }
    
    .text-xl {
        font-size: 1.125rem !important; /* text-lg */
    }
    
    .p-8, .p-12 {
        padding: 1rem !important; /* p-4 */
    }
    
    .py-20 {
        padding-top: 2rem !important; /* py-8 */
        padding-bottom: 2rem !important;
    }
    
    .py-12 {
        padding-top: 1.5rem !important; /* py-6 */
        padding-bottom: 1.5rem !important;
    }
    
    .gap-8 {
        gap: 1rem !important; /* gap-4 */
    }
    
    .gap-6 {
        gap: 0.75rem !important; /* gap-3 */
    }
    
    .rounded-3xl {
        border-radius: 1rem !important; /* rounded-2xl */
    }
    
    .rounded-2xl {
        border-radius: 0.75rem !important; /* rounded-xl */
    }
    
    .w-64, .w-80 {
        width: 12rem !important; /* w-48 */
    }
    
    .h-80 {
        height: 15rem !important; /* h-60 */
    }
    
    .min-h-\[500px\] {
        min-height: 20rem !important; /* min-h-80 */
    }
    
    .h-\[70vh\] {
        height: 50vh !important;
    }
    
    .min-h-\[500px\] {
        min-height: 20rem !important;
    }
    
    /* Force single column on mobile */
    .grid-cols-2, .grid-cols-3, .grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
    
    /* Mobile-specific spacing */
    .space-x-8 {
        gap: 1rem !important;
    }
    
    .space-y-8 {
        gap: 1rem !important;
    }
    
    /* Mobile button sizing */
    .px-8, .px-10 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-4 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    /* Mobile text sizing */
    .text-lg {
        font-size: 1rem !important;
    }
    
    .text-base {
        font-size: 0.875rem !important;
    }
    
    /* Mobile margins */
    .mb-8, .mb-10, .mb-12 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-8, .mt-10, .mt-12 {
        margin-top: 1.5rem !important;
    }
    
    /* Card-specific mobile overrides */
    .premium-card {
        padding: 1rem !important;
    }
    
    .premium-card h3 {
        font-size: 1.125rem !important; /* text-lg */
    }
    
    .premium-card p {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    /* Headmaster greeting card */
    .prose {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    .prose h2 {
        font-size: 1.5rem !important; /* text-2xl */
    }
    
    .prose p {
        font-size: 0.875rem !important; /* text-sm */
        line-height: 1.5 !important;
    }
    
    /* News cards */
    .news-card h3 {
        font-size: 1rem !important; /* text-base */
    }
    
    .news-card p {
        font-size: 0.75rem !important; /* text-xs */
    }
    
    .news-card .text-sm {
        font-size: 0.625rem !important; /* text-xs */
    }
    
    /* Teacher cards */
    .teacher-card {
        padding: 0.75rem !important;
    }
    
    .teacher-card h4 {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    .teacher-card p {
        font-size: 0.75rem !important; /* text-xs */
    }
    
    /* Testimonial cards */
    .testimonial-card {
        padding: 1rem !important;
    }
    
    .testimonial-card h4 {
        font-size: 1rem !important; /* text-base */
    }
    
    .testimonial-card p {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    /* Extracurricular cards */
    .extracurricular-card {
        padding: 0.75rem !important;
    }
    
    .extracurricular-card h3 {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    .extracurricular-card p {
        font-size: 0.75rem !important; /* text-xs */
    }
    
    /* Facility cards */
    .facility-card {
        padding: 0.75rem !important;
    }
    
    .facility-card h5 {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    .facility-card p {
        font-size: 0.75rem !important; /* text-xs */
    }
    
    /* Gallery cards */
    .gallery-card {
        padding: 0.5rem !important;
    }
    
    /* CTA section */
    .cta-section h2 {
        font-size: 1.5rem !important; /* text-2xl */
    }
    
    .cta-section p {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    /* Section headers */
    .section-header h2 {
        font-size: 1.5rem !important; /* text-2xl */
    }
    
    .section-header p {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    /* Card heights */
    .h-64 {
        height: 12rem !important; /* h-48 */
    }
    
    .h-80 {
        height: 15rem !important; /* h-60 */
    }
    
    /* Image containers */
    .image-container {
        height: 8rem !important; /* h-32 */
    }
    
    /* Slider containers */
    .slider-container {
        height: 12rem !important; /* h-48 */
    }
    
    /* Button sizing */
    .btn-premium {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Icon sizing */
    .text-2xl {
        font-size: 1.25rem !important; /* text-xl */
    }
    
    .text-xl {
        font-size: 1.125rem !important; /* text-lg */
    }
    
    .text-lg {
        font-size: 1rem !important; /* text-base */
    }
    
    /* Additional mobile overrides for specific elements */
    article {
        padding: 0.75rem !important;
    }
    
    article h3 {
        font-size: 1rem !important; /* text-base */
    }
    
    article p {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    /* All headings in mobile */
    h1 {
        font-size: 1.5rem !important; /* text-2xl */
    }
    
    h2 {
        font-size: 1.25rem !important; /* text-xl */
    }
    
    h3 {
        font-size: 1.125rem !important; /* text-lg */
    }
    
    h4 {
        font-size: 1rem !important; /* text-base */
    }
    
    h5 {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    /* All paragraphs in mobile */
    p {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    /* All spans in mobile */
    span {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    /* All divs with text in mobile */
    div {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    /* Specific overrides for remaining large elements */
    .text-4xl, .text-5xl, .text-6xl, .text-7xl, .text-8xl, .text-9xl {
        font-size: 1.5rem !important; /* text-2xl */
    }
    
    .text-3xl {
        font-size: 1.25rem !important; /* text-xl */
    }
    
    .text-2xl {
        font-size: 1.125rem !important; /* text-lg */
    }
    
    .text-xl {
        font-size: 1rem !important; /* text-base */
    }
    
    .text-lg {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    .text-base {
        font-size: 0.75rem !important; /* text-xs */
    }
    
    /* Force all cards to be smaller */
    .card, .premium-card, .news-card, .teacher-card, .testimonial-card, .extracurricular-card, .facility-card, .gallery-card {
        padding: 0.75rem !important;
        margin: 0.5rem !important;
    }
    
    /* Force all sections to be smaller */
    section {
        padding: 1rem !important;
        margin: 0.5rem !important;
    }
    
    /* Force all containers to be smaller */
    .container, .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl, .max-w-3xl {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Mobile menu button improvements */
    #mobile-menu-button {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 0.75rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 0.5rem !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        cursor: pointer !important;
        z-index: 1000 !important;
        position: relative !important;
    }
    
    #mobile-menu-button:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: scale(1.05) !important;
    }
    
    #mobile-menu-button:active {
        transform: scale(0.95) !important;
    }
    
    /* Mobile menu improvements */
    #mobile-menu {
        position: relative !important;
        z-index: 999 !important;
        background: white !important;
        border-top: 1px solid #e5e7eb !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    }
    
    #mobile-menu a {
        display: block !important;
        padding: 0.75rem 1rem !important;
        color: #374151 !important;
        text-decoration: none !important;
        border-bottom: 1px solid #f3f4f6 !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    #mobile-menu a:hover {
        background-color: #f9fafb !important;
        color: #10b981 !important;
    }
    
    #mobile-menu a:active {
        background-color: #f3f4f6 !important;
    }
    
    /* Ensure touch targets are large enough */
    button, a, input, select, textarea {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    /* Mobile menu animation */
    #mobile-menu {
        transition: all 0.3s ease-in-out !important;
    }
    
    #mobile-menu.hidden {
        display: none !important;
    }
    
    /* Homepage specific mobile overrides */
    .banner-slide h1 {
        font-size: 1.5rem !important; /* text-2xl */
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .banner-slide p {
        font-size: 0.875rem !important; /* text-sm */
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }
    
    .banner-slide .btn-premium {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Homepage sections */
    .homepage-section {
        padding: 1rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .homepage-section h2 {
        font-size: 1.25rem !important; /* text-xl */
        margin-bottom: 0.75rem !important;
    }
    
    .homepage-section h3 {
        font-size: 1.125rem !important; /* text-lg */
        margin-bottom: 0.5rem !important;
    }
    
    .homepage-section p {
        font-size: 0.875rem !important; /* text-sm */
        line-height: 1.4 !important;
    }
    
    /* Specific homepage elements */
    .headmaster-greeting {
        padding: 1rem !important;
    }
    
    .headmaster-greeting h2 {
        font-size: 1.25rem !important; /* text-xl */
    }
    
    .headmaster-greeting .prose {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    .news-section {
        padding: 1rem !important;
    }
    
    .news-section h2 {
        font-size: 1.25rem !important; /* text-xl */
    }
    
    .news-article {
        padding: 0.75rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .news-article h3 {
        font-size: 1rem !important; /* text-base */
    }
    
    .news-article p {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    .teachers-section {
        padding: 1rem !important;
    }
    
    .teachers-section h2 {
        font-size: 1.25rem !important; /* text-xl */
    }
    
    .teacher-item {
        padding: 0.75rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .teacher-item h4 {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    .teacher-item p {
        font-size: 0.75rem !important; /* text-xs */
    }
    
    .testimonials-section {
        padding: 1rem !important;
    }
    
    .testimonials-section h2 {
        font-size: 1.25rem !important; /* text-xl */
    }
    
    .testimonial-item {
        padding: 0.75rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .testimonial-item h4 {
        font-size: 1rem !important; /* text-base */
    }
    
    .testimonial-item p {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    .extracurricular-section {
        padding: 1rem !important;
    }
    
    .extracurricular-section h2 {
        font-size: 1.25rem !important; /* text-xl */
    }
    
    .extracurricular-item {
        padding: 0.75rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .extracurricular-item h3 {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    .extracurricular-item p {
        font-size: 0.75rem !important; /* text-xs */
    }
    
    .facilities-section {
        padding: 1rem !important;
    }
    
    .facilities-section h2 {
        font-size: 1.25rem !important; /* text-xl */
    }
    
    .facility-item {
        padding: 0.75rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .facility-item h5 {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    .facility-item p {
        font-size: 0.75rem !important; /* text-xs */
    }
    
    .gallery-section {
        padding: 1rem !important;
    }
    
    .gallery-section h2 {
        font-size: 1.25rem !important; /* text-xl */
    }
    
    .gallery-item {
        padding: 0.5rem !important;
        margin: 0.25rem 0 !important;
    }
    
    .statistics-section {
        padding: 1rem !important;
    }
    
    .statistics-section h2 {
        font-size: 1.25rem !important; /* text-xl */
    }
    
    .stat-item {
        padding: 0.5rem !important;
        margin: 0.25rem 0 !important;
    }
    
    .stat-item .text-2xl {
        font-size: 1.25rem !important; /* text-xl */
    }
    
    .stat-item .text-xs {
        font-size: 0.625rem !important; /* text-xs */
    }
    
    .cta-section {
        padding: 1rem !important;
    }
    
    .cta-section h2 {
        font-size: 1.25rem !important; /* text-xl */
    }
    
    .cta-section p {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    .cta-section .btn-premium {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Sidebar widgets */
    .sidebar-widget {
        padding: 0.75rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .sidebar-widget h3 {
        font-size: 1rem !important; /* text-base */
    }
    
    .sidebar-widget p {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    /* Prayer schedule */
    .prayer-schedule {
        padding: 0.75rem !important;
    }
    
    .prayer-schedule h3 {
        font-size: 1rem !important; /* text-base */
    }
    
    .prayer-item {
        padding: 0.5rem !important;
        font-size: 0.875rem !important; /* text-sm */
    }
    
    /* Weather widget */
    .weather-widget {
        padding: 0.75rem !important;
    }
    
    .weather-widget h3 {
        font-size: 1rem !important; /* text-base */
    }
    
    .weather-widget .text-3xl {
        font-size: 1.5rem !important; /* text-2xl */
    }
    
    .weather-widget .text-sm {
        font-size: 0.875rem !important; /* text-sm */
    }
    
    .weather-widget .text-xs {
        font-size: 0.75rem !important; /* text-xs */
    }
    
    /* Quick access */
    .quick-access {
        padding: 0.75rem !important;
    }
    
    .quick-access h3 {
        font-size: 1rem !important; /* text-base */
    }
    
    .quick-access a {
        padding: 0.5rem !important;
        font-size: 0.875rem !important; /* text-sm */
    }
    
    /* Social media */
    .social-media {
        padding: 0.75rem !important;
    }
    
    .social-media h3 {
        font-size: 1rem !important; /* text-base */
    }
    
    .social-media a {
        padding: 0.5rem !important;
        font-size: 0.875rem !important; /* text-sm */
    }
    
    /* Aggressive mobile overrides for homepage */
    .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl, .max-w-3xl, .max-w-2xl {
        max-width: 100% !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Force all text to be smaller on mobile */
    * {
        font-size: 0.875rem !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    p, span, div, a, li {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }
    
    /* Force all padding and margins to be smaller */
    .p-8, .p-12, .p-16, .p-20 {
        padding: 1rem !important;
    }
    
    .px-8, .px-12, .px-16, .px-20 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-8, .py-12, .py-16, .py-20 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .m-8, .m-12, .m-16, .m-20 {
        margin: 1rem !important;
    }
    
    .mx-8, .mx-12, .mx-16, .mx-20 {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }
    
    .my-8, .my-12, .my-16, .my-20 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .mb-8, .mb-12, .mb-16, .mb-20 {
        margin-bottom: 1rem !important;
    }
    
    .mt-8, .mt-12, .mt-16, .mt-20 {
        margin-top: 1rem !important;
    }
    
    /* Force all gaps to be smaller */
    .gap-8, .gap-12, .gap-16, .gap-20 {
        gap: 1rem !important;
    }
    
    .space-x-8, .space-x-12, .space-x-16, .space-x-20 {
        gap: 1rem !important;
    }
    
    .space-y-8, .space-y-12, .space-y-16, .space-y-20 {
        gap: 1rem !important;
    }
    
    /* Force all heights to be smaller */
    .h-64, .h-80, .h-96 {
        height: 12rem !important;
    }
    
    .min-h-\[500px\], .min-h-\[600px\], .min-h-\[700px\] {
        min-height: 20rem !important;
    }
    
    /* Force all widths to be smaller */
    .w-64, .w-80, .w-96 {
        width: 12rem !important;
    }
    
    /* Force all border radius to be smaller */
    .rounded-3xl, .rounded-2xl {
        border-radius: 0.75rem !important;
    }
    
    /* Force all text sizes to be smaller */
    .text-6xl, .text-7xl, .text-8xl, .text-9xl {
        font-size: 1.5rem !important;
    }
    
    .text-5xl {
        font-size: 1.375rem !important;
    }
    
    .text-4xl {
        font-size: 1.25rem !important;
    }
    
    .text-3xl {
        font-size: 1.125rem !important;
    }
    
    .text-2xl {
        font-size: 1rem !important;
    }
    
    .text-xl {
        font-size: 0.875rem !important;
    }
    
    .text-lg {
        font-size: 0.75rem !important;
    }
    
    .text-base {
        font-size: 0.75rem !important;
    }
    
    .text-sm {
        font-size: 0.625rem !important;
    }
    
    .text-xs {
        font-size: 0.5rem !important;
    }
    
    /* Ultra aggressive mobile overrides for homepage */
    body {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    
    /* Force all elements to be smaller */
    * {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    
    /* Specific element overrides */
    h1, h2, h3, h4, h5, h6 {
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }
    
    p, span, div, a, li, td, th {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    
    /* Force all containers to be full width with minimal padding */
    .container, .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl, .max-w-3xl, .max-w-2xl, .max-w-xl {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Force all sections to be minimal */
    section {
        padding: 8px !important;
        margin: 4px 0 !important;
    }
    
    /* Force all cards to be minimal */
    .card, .premium-card, .news-card, .teacher-card, .testimonial-card, .extracurricular-card, .facility-card, .gallery-card, article {
        padding: 8px !important;
        margin: 4px 0 !important;
        border-radius: 4px !important;
    }
    
    /* Force all buttons to be smaller */
    .btn, .btn-premium, .btn-modern-premium, button, a[class*="btn"] {
        padding: 6px 12px !important;
        font-size: 12px !important;
        min-height: 32px !important;
        border-radius: 4px !important;
    }
    
    /* Force all images to be smaller */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Force all grids to be single column */
    .grid, .flex {
        display: block !important;
    }
    
    .grid > *, .flex > * {
        width: 100% !important;
        margin-bottom: 8px !important;
    }
    
    /* Force all spacing to be minimal */
    .p-0, .p-1, .p-2, .p-3, .p-4, .p-5, .p-6, .p-8, .p-10, .p-12, .p-16, .p-20 {
        padding: 8px !important;
    }
    
    .px-0, .px-1, .px-2, .px-3, .px-4, .px-5, .px-6, .px-8, .px-10, .px-12, .px-16, .px-20 {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .py-0, .py-1, .py-2, .py-3, .py-4, .py-5, .py-6, .py-8, .py-10, .py-12, .py-16, .py-20 {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    
    .m-0, .m-1, .m-2, .m-3, .m-4, .m-5, .m-6, .m-8, .m-10, .m-12, .m-16, .m-20 {
        margin: 4px !important;
    }
    
    .mx-0, .mx-1, .mx-2, .mx-3, .mx-4, .mx-5, .mx-6, .mx-8, .mx-10, .mx-12, .mx-16, .mx-20 {
        margin-left: 4px !important;
        margin-right: 4px !important;
    }
    
    .my-0, .my-1, .my-2, .my-3, .my-4, .my-5, .my-6, .my-8, .my-10, .my-12, .my-16, .my-20 {
        margin-top: 4px !important;
        margin-bottom: 4px !important;
    }
    
    .mb-0, .mb-1, .mb-2, .mb-3, .mb-4, .mb-5, .mb-6, .mb-8, .mb-10, .mb-12, .mb-16, .mb-20 {
        margin-bottom: 4px !important;
    }
    
    .mt-0, .mt-1, .mt-2, .mt-3, .mt-4, .mt-5, .mt-6, .mt-8, .mt-10, .mt-12, .mt-16, .mt-20 {
        margin-top: 4px !important;
    }
    
    /* Force all gaps to be minimal */
    .gap-0, .gap-1, .gap-2, .gap-3, .gap-4, .gap-5, .gap-6, .gap-8, .gap-10, .gap-12, .gap-16, .gap-20 {
        gap: 4px !important;
    }
    
    .space-x-0, .space-x-1, .space-x-2, .space-x-3, .space-x-4, .space-x-5, .space-x-6, .space-x-8, .space-x-10, .space-x-12, .space-x-16, .space-x-20 {
        gap: 4px !important;
    }
    
    .space-y-0, .space-y-1, .space-y-2, .space-y-3, .space-y-4, .space-y-5, .space-y-6, .space-y-8, .space-y-10, .space-y-12, .space-y-16, .space-y-20 {
        gap: 4px !important;
    }
    
    /* Force all heights to be minimal */
    .h-0, .h-1, .h-2, .h-3, .h-4, .h-5, .h-6, .h-8, .h-10, .h-12, .h-16, .h-20, .h-24, .h-32, .h-40, .h-48, .h-56, .h-64, .h-72, .h-80, .h-96 {
        height: auto !important;
        min-height: 60px !important;
    }
    
    .min-h-0, .min-h-1, .min-h-2, .min-h-3, .min-h-4, .min-h-5, .min-h-6, .min-h-8, .min-h-10, .min-h-12, .min-h-16, .min-h-20, .min-h-24, .min-h-32, .min-h-40, .min-h-48, .min-h-56, .min-h-64, .min-h-72, .min-h-80, .min-h-96 {
        min-height: 60px !important;
    }
    
    /* Force all widths to be full width */
    .w-0, .w-1, .w-2, .w-3, .w-4, .w-5, .w-6, .w-8, .w-10, .w-12, .w-16, .w-20, .w-24, .w-32, .w-40, .w-48, .w-56, .w-64, .w-72, .w-80, .w-96 {
        width: 100% !important;
    }
    
    /* Force all border radius to be minimal */
    .rounded-none, .rounded-sm, .rounded, .rounded-md, .rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl {
        border-radius: 4px !important;
    }
    
    /* Force all text sizes to be minimal */
    .text-xs, .text-sm, .text-base, .text-lg, .text-xl, .text-2xl, .text-3xl, .text-4xl, .text-5xl, .text-6xl, .text-7xl, .text-8xl, .text-9xl {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    
    /* Force headings to be slightly larger but still small */
    h1, .text-6xl, .text-7xl, .text-8xl, .text-9xl {
        font-size: 16px !important;
    }
    
    h2, .text-5xl, .text-4xl {
        font-size: 14px !important;
    }
    
    h3, .text-3xl, .text-2xl {
        font-size: 13px !important;
    }
    
    h4, h5, h6, .text-xl, .text-lg {
        font-size: 12px !important;
    }
}

:root {
    /* Color Palette */
    --primary-green: #10b981;
    --primary-green-dark: #059669;
    --primary-green-darker: #047857;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-gold: #f59e0b;
    --accent-rose: #f43f5e;
    
    /* Neutral Colors */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-white: #ffffff;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    --bg-gray-900: #111827;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-3xl: 0 35px 60px -12px rgba(0, 0, 0, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Gradient Backgrounds */
.gradient-modern-green {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 50%, var(--primary-green-darker) 100%);
}

.gradient-modern-blue {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1d4ed8 50%, #1e40af 100%);
}

.gradient-modern-purple {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #7c3aed 50%, #6d28d9 100%);
}

.gradient-modern-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 50%, #b45309 100%);
}

.gradient-hero-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.gradient-glass-premium {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Premium Button Styles */
.btn-modern-premium {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    box-shadow: var(--shadow-lg);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    border-radius: var(--radius-xl);
    font-weight: 600;
    letter-spacing: 0.025em;
}

.btn-modern-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s var(--transition-normal);
}

.btn-modern-premium:hover::before {
    left: 100%;
}

.btn-modern-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.btn-modern-premium:active {
    transform: translateY(-1px) scale(0.98);
}

/* Modern Card Styles */
.card-modern-premium {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-normal);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.card-modern-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-3xl);
}

/* Glass Morphism */
.glass-morphism-premium {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-xl);
}

/* Neumorphism */
.neumorphism-premium {
    background: var(--bg-gray-50);
    box-shadow: 20px 20px 60px #d1d5db, -20px -20px 60px #ffffff;
    border-radius: var(--radius-2xl);
    border: none;
}

/* Advanced Animations */
.float-animation-premium {
    animation: floatPremium 6s ease-in-out infinite;
}

@keyframes floatPremium {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(2deg); 
    }
}

.animate-slide-up-premium {
    animation: slideUpPremium 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpPremium {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-premium {
    animation: fadeInPremium 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInPremium {
    from { 
        opacity: 0; 
        transform: scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

.animate-scale-in-premium {
    animation: scaleInPremium 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleInPremium {
    from { 
        opacity: 0; 
        transform: scale(0.8);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

.animate-pulse-premium {
    animation: pulsePremium 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulsePremium {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05);
    }
}

/* Premium Header */
.header-modern-premium {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-modern-premium.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

/* Navigation Hover Effect */
.nav-link-modern-premium {
    position: relative;
    transition: all var(--transition-normal);
    color: var(--text-dark);
    font-weight: 500;
}

.nav-link-modern-premium::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-dark));
    transition: all var(--transition-normal);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link-modern-premium:hover::after {
    width: 100%;
}

.nav-link-modern-premium:hover {
    color: var(--primary-green);
    transform: translateY(-2px);
}

/* Premium Footer */
.footer-modern-premium {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    position: relative;
}

.footer-modern-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-dark);
}

/* Loading Animation */
.loading-spinner-premium {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spinPremium 1s linear infinite;
}

@keyframes spinPremium {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Section Enhancements */
.hero-premium {
    position: relative;
    overflow: hidden;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Parallax Effect */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Text Effects */
.text-gradient-premium {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow-premium {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .btn-modern-premium {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .card-modern-premium {
        margin: 10px;
    }
    
    .glass-morphism-premium {
        backdrop-filter: blur(10px);
    }
    
    .hero-premium {
        min-height: 60vh;
    }
}

@media (max-width: 480px) {
    .hero-premium {
        min-height: 50vh;
    }
    
    .card-modern-premium {
        border-radius: var(--radius-lg);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card-modern-premium {
        background: rgba(31, 41, 55, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .glass-morphism-premium {
        background: rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Print Styles */
@media print {
    .btn-modern-premium,
    .card-modern-premium:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.teachers-marquee-container {
    overflow: hidden;
    position: relative;
}

.teachers-marquee {
    display: flex;
    animation: marquee 40s linear infinite;
    width: 200%; /* Double width for seamless loop */
}

.teachers-marquee:hover {
    animation-play-state: paused;
}

.teachers-marquee-item {
    flex-shrink: 0;
    width: 200px; /* Fixed width for consistent spacing */
    margin-right: 2rem;
}

.teachers-marquee-item img {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
}

.teachers-marquee-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.teachers-marquee-item .w-28 {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
}

.teachers-marquee-item:hover .w-28 {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Frame dengan sudut yang lebih lembut */
.teachers-marquee-item .w-28 {
    border-radius: 0.75rem !important;
    border: 3px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Layout 75:25 */
.main-content-layout {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 75% : 25% */
    gap: 2rem;
}

.sidebar-widgets {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .main-content-layout {
        grid-template-columns: 1fr; /* Stack on tablet */
    }
    
    .sidebar-widgets {
        position: static;
        order: -1; /* Move sidebar to top on mobile */
    }
}

/* Sticky Sidebar Enhancement */
.sticky-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

/* Sidebar Widget Spacing */
.sidebar-widgets .premium-card {
    margin-bottom: 0;
}

.sidebar-widgets .premium-card:last-child {
    margin-bottom: 0;
}

/* Responsive marquee */
@media (max-width: 768px) {
    .teachers-marquee-item {
        width: 150px;
        margin-right: 1.5rem;
    }
    
    .teachers-marquee-item .w-28 {
        width: 5rem !important; /* w-20 */
        height: 6rem !important; /* h-24 */
    }
    
    .teachers-marquee {
        animation-duration: 30s;
    }
}

@media (max-width: 480px) {
    .teachers-marquee-item {
        width: 120px;
        margin-right: 1rem;
    }
    
    .teachers-marquee-item .w-28 {
        width: 4rem !important; /* w-16 */
        height: 5rem !important; /* h-20 */
    }
    
    .teachers-marquee {
        animation-duration: 25s;
    }
}
