* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
    background-color: #0C2340;
    color: white;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schools-dropdown button {
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-login {
    display: flex;
    align-items: center;
    gap: 15px;
}

.translate-btn, .login-btn {
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.translate-btn:hover, .login-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container input {
    padding: 8px 35px 8px 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

.search-btn {
    position: absolute;
    right: 5px;
    color: #666;
}

.logo-nav {
    background-color: white;
    padding: 15px 0;
}

.logo-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    object-fit: contain;
}

.primary-menu {
    display: flex;
    gap: 5px;
}

.primary-menu a {
    display: block;
    padding: 10px 20px;
    font-weight: 600;
    color: #0C2340;
    border-radius: 4px 4px 0 0;
    transition: background-color 0.3s;
}

.primary-menu a.active, .primary-menu a:hover {
    background-color: #F6B800;
    color: #0C2340;
}

.secondary-menu {
    background-color: #f0f0f0;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.secondary-menu nav {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.secondary-menu a {
    color: #0C2340;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.3s;
}

.secondary-menu a:hover {
    color: #1A73E8;
}

.school-banner {
    background-color: #0C2340;
    color: white;
    padding: 20px 0;
}

.school-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.school-info h1 {
    font-size: 32px;
    margin-bottom: 5px;
    color: #F6B800;
}

.school-info p {
    font-size: 16px;
    opacity: 0.9;
}

.school-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.school-contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.school-contact i {
    color: #F6B800;
}

.hero {
    padding: 30px 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.hero-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.main-news {
    grid-column: 1;
    grid-row: 1 / span 2;
    height: 500px;
}

.secondary-news {
    grid-column: 2;
    grid-row: 1;
    height: 240px;
}

.excellence-card {
    grid-column: 2;
    grid-row: 2;
    height: 240px;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4) 50%, transparent);
    color: white;
}

.news-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: #F6B800;
    color: #0C2340;
    font-weight: bold;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.main-news .news-tag {
    background-color: #ff3b30;
    color: white;
}

.excellence-card .news-tag {
    background-color: #0C2340;
}

.hero-card h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.main-news h2 {
    font-size: 32px;
}

.hero-card p {
    font-size: 16px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #F6B800;
    color: #0C2340;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    align-self: flex-start;
    margin-top: auto;
}

.btn:hover {
    background-color: #0C2340;
    color: white;
}

.news-section {
    padding: 50px 0;
    background-color: white;
}

.section-title {
    font-size: 28px;
    color: #0C2340;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #F6B800;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.news-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.news-item.featured {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item.featured img {
    height: 300px;
}

.news-content {
    padding: 20px;
}

.news-date {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0C2340;
    line-height: 1.3;
}

.news-item.featured h3 {
    font-size: 22px;
}

.news-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.read-more {
    color: #1A73E8;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: color 0.3s;
}

.read-more:hover {
    color: #0C2340;
}

.quick-links {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.link-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background-color: #0C2340;
    color: white;
}

.link-card i {
    font-size: 24px;
    color: #F6B800;
}

.link-card:hover i {
    color: #F6B800;
}

.link-card span {
    font-weight: 600;
    font-size: 14px;
}

.school-info-section {
    padding: 50px 0;
    background-color: white;
}

.info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.info-text h2 {
    font-size: 28px;
    color: #0C2340;
    margin-bottom: 20px;
}

.info-text p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

.school-facts {
    list-style: none;
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.school-facts li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.school-facts li:before {
    content: '•';
    color: #F6B800;
    font-size: 20px;
}

.info-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #0C2340;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-logo p {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #F6B800;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    font-size: 14px;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #F6B800;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: #F6B800;
    color: #0C2340;
}

.newsletter-signup h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.newsletter-signup form {
    display: flex;
}

.newsletter-signup input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.newsletter-signup button {
    padding: 10px 15px;
    background-color: #F6B800;
    color: #0C2340;
    font-weight: 600;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.3s;
}

.newsletter-signup button:hover {
    background-color: #e6ac00;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #F6B800;
}

.accessibility-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
}

.accessibility-widget button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0C2340;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.accessibility-widget button:hover {
    background-color: #1A73E8;
}

.jumpscare-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.05s ease-in;
}

.jumpscare-overlay.active {
    opacity: 1;
    animation: intense-shake 0.3s cubic-bezier(.36,.07,.19,.97) both;
    animation-iteration-count: 4;
}

.jumpscare-overlay.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.jumpscare-img {
    width: 90vw !important; /* Use !important to override any other styles */
    height: 90vh !important;
    object-fit: contain;
    /* Remove the transform scale that might be causing the issue */
    animation: none; /* Remove the default animation */
    animation: appear-large 0.2s forwards; /* Use a simpler animation */
}

.jumpscare-img.flash {
    animation: flash-effect 0.5s ease-in-out infinite alternate;
    width: 90vw !important; /* Ensure it stays large while flashing */
    height: 90vh !important;
}

.screen-flicker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 9998;
    pointer-events: none;
    animation: screen-flicker 0.3s ease-in-out;
}

/* Simpler animation that just makes the image appear at full size */
@keyframes appear-large {
    0% { opacity: 0.7; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes flash-effect {
    0% { filter: brightness(1) contrast(1); }
    50% { filter: brightness(1.3) contrast(1.5); }
    100% { filter: brightness(1) contrast(1); }
}

@keyframes intense-shake {
    0% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-12px, -6px) rotate(-2deg); }
    20% { transform: translate(12px, 6px) rotate(2deg); }
    30% { transform: translate(-12px, 6px) rotate(-2deg); }
    40% { transform: translate(12px, -6px) rotate(2deg); }
    50% { transform: translate(-12px, -12px) rotate(-4deg); }
    60% { transform: translate(12px, 12px) rotate(4deg); }
    70% { transform: translate(-12px, 12px) rotate(-4deg); }
    80% { transform: translate(12px, -12px) rotate(4deg); }
    90% { transform: translate(-12px, -12px) rotate(-4deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes screen-flicker {
    0% { opacity: 0; }
    10% { opacity: 0.8; }
    12% { opacity: 0.2; }
    14% { opacity: 0.8; }
    16% { opacity: 0.2; }
    18% { opacity: 0.8; }
    20% { opacity: 0; }
    50% { opacity: 0; }
    52% { opacity: 0.8; }
    54% { opacity: 0.2; }
    56% { opacity: 0.8; }
    58% { opacity: 0; }
    100% { opacity: 0; }
}

@media (max-width: 1024px) {
    .links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .info-content {
        grid-template-columns: 1fr;
    }
    
    .info-image {
        order: -1;
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .main-news {
        grid-column: 1;
        grid-row: 1;
        height: 400px;
    }
    
    .secondary-news {
        grid-column: 1;
        grid-row: 2;
        height: 300px;
    }
    
    .excellence-card {
        grid-column: 1;
        grid-row: 3;
        height: 300px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item.featured {
        grid-column: 1;
        grid-row: 1;
    }
}

@media (max-width: 768px) {
    .school-banner .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-nav .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .primary-menu {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .primary-menu a {
        white-space: nowrap;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .search-login {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-container input {
        width: 100%;
    }
    
    .main-news h2 {
        font-size: 24px;
    }
    
    .hero-card h2 {
        font-size: 22px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-signup form {
        flex-direction: column;
    }
    
    .newsletter-signup input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-signup button {
        border-radius: 4px;
        width: 100%;
    }
    
    .section-title {
        font-size: 24px;
    }
}
