/* Academic CSS for ITEL Foundation Website */

/* Global Styles */
* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: 'Lato', sans-serif;
    color: #2d3748;
    line-height: 1.7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

/* Subtle Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Academic Navigation Styles */
#floating-header {
    transition: all 0.3s ease;
    z-index: 9999 !important;
}

.academic-nav-container {
    transition: all 0.3s ease;
}

/* Navigation Links */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: #1a7f64;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Dropdown Menu Styles */
#dropdown-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    z-index: 50;
}

#dropdown-menu.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.dropdown-link {
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    padding-left: 1.75rem;
}

/* Hero Section Enhancements */
#home {
    position: relative;
}

/* Prevent nav-link underline artifacts in hero section */
header .nav-link::after,
header .nav-link::before {
    display: none !important;
}

/* Ensure no stray borders or pseudo-elements in hero */
section#home::before,
section#home::after {
    display: none !important;
}

/* Remove any potential border artifacts from hero background */
section#home > .absolute.inset-0::before,
section#home > .absolute.inset-0::after {
    display: none !important;
}

/* Fix for incubatees page hero section - remove green line */
section.relative.min-h-screen::before,
section.relative.min-h-screen::after {
    display: none !important;
}

section.relative.min-h-screen > .absolute.inset-0::before,
section.relative.min-h-screen > .absolute.inset-0::after {
    display: none !important;
}

section.relative.min-h-screen > .absolute.inset-0 img {
    border: none !important;
    outline: none !important;
}

section.relative.min-h-screen .absolute.inset-0 {
    border: none !important;
    outline: none !important;
}

/* Subtle parallax effect */
.parallax-bg {
    transform: translateZ(0);
    will-change: transform;
}

/* Section Spacing */
section {
    position: relative;
    z-index: 1;
}

/* Editorial Card Styles */
article {
    transition: all 0.3s ease;
}

article:hover {
    transform: translateY(-4px);
}

/* FAQ Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(26, 127, 100, 0.1);
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #1a7f64;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding-top: 0;
}

.faq-answer.active {
    max-height: 500px;
    padding-top: 1rem;
}

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

.faq-icon.rotate {
    transform: rotate(180deg);
}

/* Read More Expandable Content Styles */
.expandable-content,
.expandable-content-mission {
    display: none !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

.expandable-content.expanded,
.expandable-content-mission.expanded {
    display: block !important;
    max-height: 2000px;
    opacity: 1;
}

/* Read More Button Styles */
.read-more-btn,
.read-more-btn-mission {
    cursor: pointer;
}

.read-more-btn i,
.read-more-btn-mission i {
    transition: transform 0.3s ease;
}

/* Contact Form Styles */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(26, 127, 100, 0.1);
}

.submit-btn {
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(26, 127, 100, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

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

/* Custom Scrollbar - Academic Style */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background: #1a7f64;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a7f64;
}

/* Link Styles */
a {
    transition: all 0.3s ease;
}

/* Image Transitions */
img {
    transition: all 0.3s ease;
}

/* Hover Effects for Cards */
.bg-grey-light:hover {
    background-color: #ffffff;
}

/* Focus States for Accessibility */
.nav-link:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #1a7f64;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    header,
    footer,
    .dropdown-menu {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hero Section Responsive Adjustments */
@media (max-width: 640px) {
    #home,
    #incubatees-hero,
    #advisory-board-hero,
    #partnerships-hero,
    #transportation-hero,
    #urban-waterlogging-hero,
    #heating-cooling-hero,
    #assistive-technology-hero,
    #cyber-security-hero,
    #fintech-inclusion-hero,
    #clean-energy-hero,
    #risc-v-hero {
        min-height: 100vh;
        padding-top: 0;
        padding-bottom: 0;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1 !important;
    }
    
    #home .bg-white\/70,
    #incubatees-hero .bg-white\/70,
    #advisory-board-hero .bg-white\/70,
    #partnerships-hero .bg-white\/70,
    #transportation-hero .bg-white\/70,
    #urban-waterlogging-hero .bg-white\/70,
    #heating-cooling-hero .bg-white\/70,
    #assistive-technology-hero .bg-white\/70,
    #cyber-security-hero .bg-white\/70,
    #fintech-inclusion-hero .bg-white\/70,
    #clean-energy-hero .bg-white\/70,
    #risc-v-hero .bg-white\/70 {
        padding: 1.5rem !important;
        margin: 1rem;
        margin-top: 0 !important;
    }
    
    #home h1,
    #incubatees-hero h1,
    #advisory-board-hero h1,
    #partnerships-hero h1,
    #transportation-hero h1,
    #urban-waterlogging-hero h1,
    #heating-cooling-hero h1,
    #assistive-technology-hero h1,
    #cyber-security-hero h1,
    #fintech-inclusion-hero h1,
    #clean-energy-hero h1,
    #risc-v-hero h1 {
        font-size: 1.875rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }
    
    #home p,
    #incubatees-hero p,
    #advisory-board-hero p,
    #partnerships-hero p,
    #transportation-hero p,
    #urban-waterlogging-hero p,
    #heating-cooling-hero p,
    #assistive-technology-hero p,
    #cyber-security-hero p,
    #fintech-inclusion-hero p,
    #clean-energy-hero p,
    #risc-v-hero p {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    #home a,
    #incubatees-hero a,
    #advisory-board-hero a,
    #partnerships-hero a,
    #transportation-hero a,
    #urban-waterlogging-hero a,
    #heating-cooling-hero a,
    #assistive-technology-hero a,
    #cyber-security-hero a,
    #fintech-inclusion-hero a,
    #clean-energy-hero a,
    #risc-v-hero a {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    #home h1,
    #incubatees-hero h1,
    #advisory-board-hero h1,
    #partnerships-hero h1,
    #transportation-hero h1,
    #urban-waterlogging-hero h1,
    #heating-cooling-hero h1,
    #assistive-technology-hero h1,
    #cyber-security-hero h1,
    #fintech-inclusion-hero h1,
    #clean-energy-hero h1,
    #risc-v-hero h1 {
        font-size: 1.5rem !important;
    }
    
    #home p,
    #incubatees-hero p,
    #advisory-board-hero p,
    #partnerships-hero p,
    #transportation-hero p,
    #urban-waterlogging-hero p,
    #heating-cooling-hero p,
    #assistive-technology-hero p,
    #cyber-security-hero p,
    #fintech-inclusion-hero p,
    #clean-energy-hero p,
    #risc-v-hero p {
        font-size: 0.875rem !important;
    }
}

/* Tablet and Small Desktop (14-inch screens) */
@media (min-width: 641px) and (max-width: 1366px) {
    #home,
    #incubatees-hero,
    #advisory-board-hero,
    #partnerships-hero,
    #transportation-hero,
    #urban-waterlogging-hero,
    #heating-cooling-hero,
    #assistive-technology-hero,
    #cyber-security-hero,
    #fintech-inclusion-hero,
    #clean-energy-hero,
    #risc-v-hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #home .bg-white\/70,
    #incubatees-hero .bg-white\/70,
    #advisory-board-hero .bg-white\/70,
    #partnerships-hero .bg-white\/70,
    #transportation-hero .bg-white\/70,
    #urban-waterlogging-hero .bg-white\/70,
    #heating-cooling-hero .bg-white\/70,
    #assistive-technology-hero .bg-white\/70,
    #cyber-security-hero .bg-white\/70,
    #fintech-inclusion-hero .bg-white\/70,
    #clean-energy-hero .bg-white\/70,
    #risc-v-hero .bg-white\/70 {
        padding: 2.5rem !important;
        max-width: 90%;
    }
    
    #home h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }
    
    #home p {
        font-size: 1.125rem !important;
        margin-bottom: 2rem !important;
    }
}

/* Medium Desktops (including 14-inch laptops at 1366x768 and 1440x900) */
@media (min-width: 1024px) and (max-width: 1440px) {
    #home .bg-white\/70 {
        padding: 3rem 2.5rem !important;
    }
    
    #home h1 {
        font-size: 3rem !important;
    }
    
    #home p {
        font-size: 1.25rem !important;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Fix text justification on mobile - use left align instead */
    .text-justify {
        text-align: left !important;
    }
    
    .academic-nav-container {
        padding: 1rem;
    }
    
    #dropdown-menu {
        right: -0.5rem;
        width: 16rem;
    }
    
    /* Section padding adjustments */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Card padding adjustments */
    article .p-8,
    article .p-12 {
        padding: 1.5rem !important;
    }
    
    /* Grid adjustments */
    .grid {
        gap: 1.5rem !important;
    }
    
    /* Text adjustments */
    .text-4xl {
        font-size: 1.875rem !important;
    }
    
    .text-5xl {
        font-size: 2.25rem !important;
    }
    
    /* Image containers */
    .h-64 {
        height: 12rem !important;
    }
}

@media (min-width: 769px) {
    #dropdown-menu {
        right: 0;
        width: 16rem;
    }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .max-w-6xl {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* Hero section for tablets */
    #home h1 {
        font-size: 3rem !important;
    }
    
    #home p {
        font-size: 1.25rem !important;
    }
    
    /* Section spacing */
    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1920px) {
    .max-w-6xl {
        max-width: 1400px;
    }
    
    #home h1 {
        font-size: 4.5rem !important;
    }
    
    #home p {
        font-size: 1.5rem !important;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 896px) and (orientation: landscape) {
    #home {
        min-height: auto;
        padding: 2rem 0;
    }
    
    #home .bg-white\/70 {
        padding: 2rem !important;
    }
    
    #home h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    #home p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Text Selection */
::selection {
    background: rgba(26, 127, 100, 0.2);
    color: #1a7f64;
}

::-moz-selection {
    background: rgba(26, 127, 100, 0.2);
    color: #1a7f64;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Notification Styles */
.notification {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Academic Button Styles */
button,
.btn {
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
}

button:active,
.btn:active {
    transform: translateY(0);
}

/* Divider Lines */
.border-b {
    border-color: #e5e7eb;
}

/* Shadow Utilities */
.shadow-academic {
    box-shadow: 0 2px 8px rgba(26, 127, 100, 0.08);
}

.shadow-academic-lg {
    box-shadow: 0 4px 16px rgba(26, 127, 100, 0.12);
}

/* Spacing Consistency */
.section-spacing {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Academic Color Overlays */
.overlay-navy {
    background: linear-gradient(135deg, rgba(26, 127, 100, 0.9), rgba(15, 31, 56, 0.95));
}

/* Grid Layouts */
.academic-grid {
    display: grid;
    gap: 2rem;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Icon Styles */
i {
    transition: all 0.3s ease;
}

/* Hover States for Interactive Elements */
.interactive:hover {
    cursor: pointer;
    opacity: 0.8;
}

/* Academic Quote Styles */
blockquote {
    border-left: 4px solid #1a7f64;
    padding-left: 1.5rem;
    font-style: italic;
    color: #6b7280;
}

/* List Styles */
ul, ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Table Styles (if needed) */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    font-weight: 600;
    color: #1a7f64;
}

/* Code Styles (if needed) */
code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1a7f64;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    body {
        color: #000;
    }
    
    .text-grey-medium {
        color: #333;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme for academic credibility */
    /* Dark mode can be added if requested */
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Prevent layout shift */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

/* Utility Classes */
.text-balance {
    text-wrap: balance;
}

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

/* Footer Styles */
footer a:hover {
    text-decoration: underline;
}

/* Form Validation States */
input:invalid:focus,
textarea:invalid:focus,
select:invalid:focus {
    border-color: #dc2626;
}

input:valid:focus,
textarea:valid:focus,
select:valid:focus {
    border-color: #1a7f64;
}

/* Placeholder Styles */
::placeholder {
    color: #9ca3af;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #9ca3af;
}

::-ms-input-placeholder {
    color: #9ca3af;
}

/* Button Disabled State */
button:disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button:disabled:hover,
.btn:disabled:hover {
    transform: none;
}

/* Logo Scroller Animation */
.logo-scroll-container {
    animation: scroll 30s linear infinite;
    width: max-content;
}

.logo-scroll-container:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments for logo scroller */
@media (max-width: 768px) {
    .logo-scroll-container {
        animation-duration: 20s;
    }
}

/* Strength Cards Section Styles */
.strength-card {
    position: relative;
}

.strength-card:hover {
    transform: translateY(-8px);
}

/* Arrow Connector Animations */
.arrow-connector svg,
.arrow-connector-mobile svg {
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Arrow path animation */
.arrow-connector svg path,
.arrow-connector-mobile svg path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawArrow 2s ease-in-out forwards, arrowGlow 2s ease-in-out infinite 2s;
}

@keyframes drawArrow {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes arrowGlow {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(26, 127, 100, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(26, 127, 100, 0.8));
    }
}

/* Hover effect on arrow connectors */
.arrow-connector:hover svg,
.arrow-connector-mobile:hover svg {
    animation: arrowBounce 0.6s ease-in-out;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Responsive adjustments for strength cards */
@media (max-width: 768px) {
    .strength-card {
        max-width: 100%;
    }
    
    .arrow-connector-mobile {
        margin: 0.5rem 0;
    }
}

/* Desktop arrow positioning */
@media (min-width: 769px) {
    .arrow-connector {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* FAQ Section Styles */
.faq-image-container {
    position: relative;
}

.faq-image-container img {
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.faq-image-container:hover img {
    transform: scale(1.02);
}

.faq-list-container .faq-item {
    transition: all 0.3s ease;
}

.faq-list-container .faq-item:hover {
    transform: translateX(8px);
    border-left-width: 6px;
}

/* Sticky positioning for FAQ image on desktop */
@media (min-width: 1024px) {
    .faq-image-container .sticky {
        position: sticky;
        top: 6rem;
    }
}

/* Mobile FAQ adjustments */
@media (max-width: 1023px) {
    .faq-image-container {
        margin-bottom: 2rem;
    }
    
    .faq-image-container .sticky {
        position: relative;
        top: 0;
    }
}

/* Additional Mobile Navigation and Layout Improvements */
@media (max-width: 768px) {
    /* Mobile navigation improvements */
    .nav-link::after {
        display: none;
    }
    
    /* Mobile header logo */
    #header-logo {
        height: 3rem !important;
    }
    
    /* Mobile menu improvements */
    .mobile-submenu .submenu-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    .mobile-submenu.active .submenu-content {
        max-height: 500px;
    }
    
    /* Mobile form improvements */
    .contact-form {
        padding: 1.5rem !important;
    }
    
    .form-input {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Mobile footer adjustments */
    footer .grid {
        gap: 2rem !important;
    }
    
    footer .lg\:col-span-1 {
        grid-column: span 1 !important;
    }
}

/* Additional Mobile Optimizations for Small Screens */
@media (max-width: 640px) {
    /* Ensure proper spacing */
    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Ensure all sections are visible on mobile */
    section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
    }
    
    .py-16 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Button improvements */
    button, .btn {
        min-height: 44px; /* Touch target size */
    }
    
    /* Logo scroller mobile */
    .logo-item {
        width: 200px !important;
    }
    
    /* FAQ mobile improvements */
    .faq-item {
        padding: 1rem !important;
    }
    
    .faq-question h3 {
        font-size: 1rem !important;
    }
    
    /* Quote section mobile */
    blockquote p {
        font-size: 1.25rem !important;
    }
    
    /* Mobile video container */
    video {
        max-height: 300px;
    }
    
    /* Mobile scroll indicator */
    .scroll-indicator {
        display: none;
    }
}

/* Tablet-specific improvements */
@media (min-width: 641px) and (max-width: 1024px) {
    /* Navigation spacing */
    .lg\:gap-x-8 {
        gap: 1.5rem !important;
    }
    
    /* Card layouts */
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    
    /* Ensure proper image sizing */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Tablet padding adjustments */
    .p-8 {
        padding: 2rem !important;
    }
    
    .p-12 {
        padding: 2.5rem !important;
    }
}

/* Ultra-wide screen optimizations */
@media (min-width: 2560px) {
    .max-w-6xl,
    .max-w-7xl {
        max-width: 1600px;
    }
    
    body {
        font-size: 18px;
    }
}

/* Specific fixes for common viewport sizes */
/* iPhone SE, iPhone 8 (375x667) */
@media (max-width: 375px) {
    #home h1 {
        font-size: 1.5rem !important;
    }
    
    #home p {
        font-size: 0.875rem !important;
    }
    
    .text-xl {
        font-size: 1rem !important;
    }
}

/* iPad Mini, iPad (768x1024) */
@media (min-width: 768px) and (max-width: 820px) {
    #home h1 {
        font-size: 2.75rem !important;
    }
    
    #home p {
        font-size: 1.125rem !important;
    }
}

/* MacBook Air 13" (1440x900) */
@media (min-width: 1366px) and (max-width: 1440px) and (min-height: 768px) and (max-height: 900px) {
    #home {
        min-height: 90vh;
    }
    
    #home .bg-white\/70 {
        padding: 2.5rem 3rem !important;
    }
    
    #home h1 {
        font-size: 3.25rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    #home p {
        font-size: 1.25rem !important;
        margin-bottom: 2rem !important;
    }
}

/* About Us Page Hero Section Specific Styles */
.about-hero-section {
    min-height: 100vh;
}

/* Mobile responsiveness for About Us split hero */
@media (max-width: 1023px) {
    .about-hero-section {
        min-height: auto;
        padding-top: 7rem;
        padding-bottom: 3rem;
    }
    
    .about-hero-section .grid {
        gap: 2rem;
    }
    
    .about-hero-section img {
        max-height: 500px !important;
    }
    
    .about-hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .about-hero-section p {
        font-size: 1rem !important;
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        padding-top: 6.5rem;
        padding-bottom: 2rem;
    }
    
    .about-hero-section img {
        max-height: 400px !important;
    }
    
    .about-hero-section h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .about-hero-section p {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .about-hero-section .max-w-xl {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .about-hero-section {
        padding-top: 6rem;
    }
    
    /* Reverse order on mobile - show content first, then image */
    .about-hero-section .order-1 {
        order: 2 !important;
    }
    
    .about-hero-section .order-2 {
        order: 1 !important;
    }
    
    .about-hero-section h1 {
        font-size: 1.75rem !important;
    }
    
    .about-hero-section img {
        max-height: 350px !important;
    }
}

/* Tablet optimization for About Us hero */
@media (min-width: 768px) and (max-width: 1024px) {
    .about-hero-section h1 {
        font-size: 3rem !important;
    }
    
    .about-hero-section img {
        max-height: 550px !important;
    }
}

/* Desktop optimization for About Us hero */
@media (min-width: 1024px) {
    .about-hero-section .grid {
        align-items: center;
    }
    
    .about-hero-section img {
        max-height: 700px;
    }
}

/* Advisory Board Profile Image Styling */
.member-card img {
    object-fit: contain !important;
    object-position: center;
    background: #f8f9fa;
}

/* Ensure touch-friendly interactions on all touch devices */
@media (hover: none) and (pointer: coarse) {
    button,
    .btn,
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.75rem 0.5rem;
    }
    
    .dropdown-link {
        padding: 1rem 1.5rem !important;
    }
}

/* Advisory Board Mobile Fixes */
@media (max-width: 640px) {
    /* Ensure filter section is visible and properly spaced */
    #members-section {
        display: block !important;
        visibility: visible !important;
        padding: 2rem 1rem !important;
    }
    
    /* Ensure filter buttons are visible and stack properly */
    #members-section .flex {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    /* Ensure filter buttons are full width on mobile */
    #members-section button {
        width: 100% !important;
        display: block !important;
    }
    
    /* Ensure members grid section is visible */
    section.py-24.bg-white,
    section.py-24.bg-gray-50 {
        display: block !important;
        visibility: visible !important;
        padding: 2rem 1rem !important;
    }
    
    /* Ensure members grid displays as grid on mobile */
    #members-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Ensure member cards maintain proper structure on mobile */
    .member-card {
        width: 100% !important;
    }
    
    .member-card .bg-white {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .member-card > div {
        display: flex !important;
        flex-direction: column !important;
    }
}