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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #212529;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Information Section */
.info-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.info-section::before { display: none; }

@keyframes warningPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.info-section h1 {
    text-align: center;
    color: #ff4444;
    margin-bottom: 30px;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
    animation: warningBlink 2s ease-in-out infinite;
}

@keyframes warningBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.info-item {
    background: #ffffff;
    color: #495057;
    padding: 18px;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.info-item::before { display: none; }
.info-item:hover::before { display: none; }

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #dee2e6;
}

.info-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Head of School Section */
.head-of-school-section {
    margin-bottom: 40px;
    text-align: center;
}

.head-of-school-section h2 {
    color: #ff4444;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: warningBlink 2s ease-in-out infinite;
}

.head-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: rgba(139, 0, 0, 0.8);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid #ff4444;
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.5);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.head-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 68, 68, 0.1) 50%, transparent 70%);
    animation: warningPulse 3s ease-in-out infinite;
}

.head-image {
    width: 300px;
    height: 300px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid #ff4444;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.head-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 68, 68, 0.4);
}

.head-info {
    text-align: left;
    position: relative;
    z-index: 1;
}

.head-info h3 {
    color: #ff4444;
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.head-info p {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.warning-text {
    color: #ff6666 !important;
    font-weight: bold;
    font-size: 1.2rem !important;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 68, 68, 0.2);
    border-radius: 8px;
    border-left: 4px solid #ff4444;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.review-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.review-card::before {
    content: '⚠️';
    position: absolute;
    top: 12px;
    left: 16px;
    font-size: 1.25rem;
    opacity: 0.5;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #dee2e6;
    background: #ffffff;
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    margin-top: 15px;
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ced4da #f1f3f5;
}

.review-text::-webkit-scrollbar {
    width: 6px;
}

.review-text::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 3px;
}

.review-text::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 3px;
}

.review-text::-webkit-scrollbar-thumb:hover {
    background: #ff6666;
}

/* Review Card Icons */
.review-card::after {
    content: '🚨';
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 1.1rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.review-card:hover::after {
    opacity: 0.8;
}

/* Review header */
.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    border: 2px solid #dee2e6;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.review-meta {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    color: #2c3e50;
    font-weight: 600;
}

.review-date {
    color: #6c757d;
    font-size: 0.85rem;
}

.rating-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars-outer {
    position: relative;
    display: inline-block;
    width: 100px; /* 5 stars */
    height: 20px;
    background: #e9ecef;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 110 20"><defs><path id="s" d="M10 15l-5.878 3.09 1.123-6.545L.49 6.91l6.561-.954L10 0l2.949 5.956 6.561.954-4.755 4.635 1.123 6.545z"/></defs><g><use href="%23s"/><use href="%23s" x="22"/><use href="%23s" x="44"/><use href="%23s" x="66"/><use href="%23s" x="88"/></g></svg>') 0/contain no-repeat;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 110 20"><defs><path id="s" d="M10 15l-5.878 3.09 1.123-6.545L.49 6.91l6.561-.954L10 0l2.949 5.956 6.561.954-4.755 4.635 1.123 6.545z"/></defs><g><use href="%23s"/><use href="%23s" x="22"/><use href="%23s" x="44"/><use href="%23s" x="66"/><use href="%23s" x="88"/></g></svg>') 0/contain no-repeat;
}

.stars-inner {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #ffcd3c, #ff9f1a);
}

.rating-number {
    color: #6c757d;
    font-weight: 700;
}

.warning-badge {
    color: #dc3545;
    background: #fdecea;
    border: 1px solid #f5c2c7;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.85rem;
}

/* Bottom Quote Section */
.bottom-quote-section {
    margin-top: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

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

.quote-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    font-style: italic;
    margin: 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .info-section h1 {
        font-size: 2.2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .review-card {
        height: 350px;
        padding: 25px;
    }
    
    .head-image-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .head-image {
        width: 150px;
        height: 150px;
    }
    
    .head-info h3 {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .head-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .info-section {
        padding: 25px;
    }
    
    .info-section h1 {
        font-size: 2rem;
    }
    
    .review-card {
        height: 300px;
        padding: 20px;
    }
    
    .head-of-school-section h2 {
        font-size: 1.5rem;
    }
    
    .head-image {
        width: 120px;
        height: 120px;
    }
    
    .head-info h3 {
        font-size: 1.4rem;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card {
    animation: fadeInUp 0.8s ease forwards;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }
.review-card:nth-child(6) { animation-delay: 0.6s; }
.review-card:nth-child(7) { animation-delay: 0.7s; }
.review-card:nth-child(8) { animation-delay: 0.8s; }
.review-card:nth-child(9) { animation-delay: 0.9s; }
.review-card:nth-child(10) { animation-delay: 1.0s; }
.review-card:nth-child(11) { animation-delay: 1.1s; }
.review-card:nth-child(12) { animation-delay: 1.2s; }
.review-card:nth-child(13) { animation-delay: 1.3s; }
.review-card:nth-child(14) { animation-delay: 1.4s; }
.review-card:nth-child(15) { animation-delay: 1.5s; }
.review-card:nth-child(16) { animation-delay: 1.6s; }
.review-card:nth-child(17) { animation-delay: 1.7s; }
.review-card:nth-child(18) { animation-delay: 1.8s; }
.review-card:nth-child(19) { animation-delay: 1.9s; }
.review-card:nth-child(20) { animation-delay: 2.0s; }
.review-card:nth-child(21) { animation-delay: 2.1s; }
.review-card:nth-child(22) { animation-delay: 2.2s; }
.review-card:nth-child(23) { animation-delay: 2.3s; }
.review-card:nth-child(24) { animation-delay: 2.4s; }
.review-card:nth-child(25) { animation-delay: 2.5s; }
.review-card:nth-child(26) { animation-delay: 2.6s; }
.review-card:nth-child(27) { animation-delay: 2.7s; }
.review-card:nth-child(28) { animation-delay: 2.8s; }
.review-card:nth-child(29) { animation-delay: 2.9s; }
.review-card:nth-child(30) { animation-delay: 3.0s; } 