/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    width: 100%;
}

/* Prevent horizontal scroll on all viewports */
html {
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Prevent iOS zoom on input focus */
input,
textarea,
select,
button {
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

/* Better touch handling on mobile */
a,
button,
input[type="submit"],
input[type="button"],
.btn {
    -webkit-tap-highlight-color: rgba(134, 44, 145, 0.2);
    touch-action: manipulation;
}

/* Prevent text size adjustment on mobile */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* Accessibility: Respect user's motion preferences */
@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;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Improved focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #862C91;
    outline-offset: 2px;
}

/* Remove outline for mouse users, keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Banner styles */
.banner {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 500px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Optimize images for mobile */
img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Lazy loading optimization */
img[loading="lazy"] {
    content-visibility: auto;
}

/* Prevent image overflow and cropping on mobile */
@media (max-width: 768px) {
    img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Specific fixes for banner images */
    .banner img,
    .full-width-video-banner img,
    .slide img {
        width: 100%;
        height: auto;
        object-fit: cover;
        max-height: 60vh;
    }

    /* Fix for logo sizing */
    .logo img,
    .logo-img {
        width: auto !important;
        max-width: 90%;
        object-fit: contain;
    }

    /* Prevent news images from cropping */
    .news-image img {
        object-fit: cover;
        width: 100%;
        height: 200px;
    }

    /* Faculty photos responsive */
    .faculty-photo img,
    .dean-photo img,
    .student-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    /* Program images should contain, not crop */
    .program-image img,
    .creative-program-box img {
        object-fit: contain !important;
        padding: 10px;
    }
}

/* Section styles */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #862C91;
    margin-bottom: 1.5rem;
    text-align: center;
    /* Prevent text overflow */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.section-text {
    color: #4b5563;
    max-width: 1100px;
    margin: 0 auto 2rem;
    text-align: justify;
    padding: 0 15px;
    line-height: 1.8;
    /* Prevent text overflow */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive typography */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
        padding: 0 15px;
    }

    .section-text {
        font-size: 1rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .section-text {
        font-size: 0.95rem;
    }
}

/* Statistics Section Styles */
.stats-section {
    background-color: #f9fafb;
    padding: 4rem 0;
}

.stats-container {
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.stats-layout {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.stats-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.middle-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.middle-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #862C91;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.4;
}

.vertical-divider {
    width: 1px;
    background-color: #ddd;
    align-self: stretch;
}

.horizontal-divider {
    height: 2px;
    background-color: #ccc;
    width: 100%;
    margin: 20px 0;
}