/* ===== GLOBAL STYLES ===== */
:root {
    /* Main Colors */
    --primary-color: #ff5252;
    --secondary-color: #4a4fff;
    --accent-color: #ffcc00;
    --text-color: #222222;
    --light-text: #ffffff;
    --dark-bg: #121212;
    --light-bg: #f8f8f8;
    
    /* Claymorphism Variables */
    --clay-bg: #ffffff;
    --clay-shadow-light: rgba(255, 255, 255, 0.8);
    --clay-shadow-dark: rgba(0, 0, 0, 0.1);
    --clay-border: rgba(255, 255, 255, 0.7);
    --clay-radius: 16px;
    
    /* Neo-brutalism Variables */
    --brutal-border-width: 3px;
    --brutal-border-color: #000000;
    --brutal-shadow-offset: 6px;
    --brutal-shadow-color: #000000;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
}

/* Apply border-box sizing to all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    box-sizing: border-box;
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: var(--brutal-border-width) solid var(--brutal-border-color);
    border-radius: var(--clay-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    box-shadow: var(--brutal-shadow-offset) var(--brutal-shadow-offset) 0 var(--brutal-shadow-color);
    transform: translate(-2px, -2px);
}

.btn:hover {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 var(--brutal-shadow-color);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Claymorphism Card Style */
.clay-card {
    background-color: var(--clay-bg);
    border-radius: var(--clay-radius);
    border: var(--brutal-border-width) solid var(--brutal-border-color);
    padding: var(--spacing-md);
    box-shadow: 
        var(--brutal-shadow-offset) var(--brutal-shadow-offset) 0 var(--brutal-shadow-color),
        inset 2px 2px 5px var(--clay-shadow-light),
        inset -2px -2px 5px var(--clay-shadow-dark);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.clay-card:hover {
    transform: translateY(-5px);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    display: inline-block;
    position: relative;
    padding-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-line {
    width: 80px;
    height: 5px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 5px;
}

/* ===== HEADER STYLES ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--light-bg);
    padding: var(--spacing-sm) 0;
    border-bottom: var(--brutal-border-width) solid var(--brutal-border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.school-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(3px 3px 0 var(--brutal-shadow-color));
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: calc(var(--spacing-xl) * 2);
    padding-bottom: calc(var(--spacing-xl) + 70px);
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.1) 0%, rgba(74, 79, 255, 0.1) 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--primary-color);
    border-bottom-left-radius: 50% 100%;
    border-bottom-right-radius: 50% 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 3;
}

.hero-content {
    flex: 1;
    padding-right: var(--spacing-lg);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    line-height: 1.1;
    text-transform: uppercase;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    padding: 30px 0;
    position: relative;
}

.hero-image .clay-card {
    width: 100%;
    max-width: 500px;
    height: 380px;
    padding: 0;
    background-color: var(--clay-bg);
    transform: rotate(15deg);
    border-radius: calc(var(--clay-radius) - 4px);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--clay-radius) - 10px);
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 90%;
    height: 380px;
    overflow: hidden;
    background-color: #f0f0f0; /* Light gray background */
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.2);
    border: var(--brutal-border-width) solid var(--brutal-border-color);
    border-radius: calc(var(--clay-radius) - 8px);
}

.hero-slides {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: calc(var(--clay-radius) - 8px);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.5s ease;
    z-index: 1;
    overflow: hidden;
    border-radius: calc(var(--clay-radius) - 8px);
}

.hero-slide.active {
    opacity: 1;
    z-index: 5;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    max-height: 380px;
    padding: 10px;
}

.hero-controls {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%) rotate(-15deg);
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    border-radius: 20px;
}

.hero-dots {
    display: flex;
    margin: 0 10px;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dots .dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.hero-prev,
.hero-next {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-prev:hover,
.hero-next:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--light-bg);
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.about-image {
    flex: 1;
}

.about-image .clay-card {
    transform: rotate(-2deg);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-top: var(--spacing-md);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-md);
    gap: var(--spacing-sm);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-sm);
    background-color: var(--clay-bg);
    border-radius: var(--clay-radius);
    border: var(--brutal-border-width) solid var(--brutal-border-color);
    box-shadow: var(--brutal-shadow-offset) var(--brutal-shadow-offset) 0 var(--brutal-shadow-color);
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* ===== COURSES SECTION ===== */
.courses {
    background-color: var(--light-bg);
    position: relative;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.course-image {
    margin-bottom: var(--spacing-sm);
    border-radius: calc(var(--clay-radius) - 8px);
    overflow: hidden;
}

.course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-content h3 {
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
}

.course-content p {
    margin-bottom: var(--spacing-sm);
    flex: 1;
}

.course-content .btn {
    align-self: flex-start;
}

.courses-cta {
    text-align: center;
}

/* ===== FACULTY SECTION ===== */
.faculty {
    background-color: var(--light-bg);
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.faculty-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.faculty-image {
    margin-bottom: var(--spacing-sm);
    border-radius: calc(var(--clay-radius) - 8px);
    overflow: hidden;
}

.faculty-content {
    flex: 1;
}

.faculty-content h3 {
    color: var(--text-color);
    margin-bottom: 5px;
}

.faculty-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: var(--spacing-sm);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--light-bg);
    border-radius: 50%;
    color: var(--text-color);
    border: 2px solid var(--brutal-border-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

/* ===== EVENTS SECTION ===== */
.events {
    background-color: var(--light-bg);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.event-card {
    display: flex;
    height: 100%;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: var(--spacing-sm);
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: calc(var(--clay-radius) - 8px) 0 0 calc(var(--clay-radius) - 8px);
    margin: -1rem 0 -1rem -1rem;
    border-right: none;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.event-content {
    flex: 1;
    padding-left: var(--spacing-sm);
}

.event-content h3 {
    margin-bottom: 5px;
}

.event-meta {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-meta i {
    color: var(--primary-color);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--light-bg);
    position: relative;
}

.testimonials-slider {
    display: block;
    margin-bottom: var(--spacing-md);
    overflow: visible;
    transition: none;
}

.testimonial-card {
    display: none;
    min-width: 100%;
    flex-direction: column;
    padding: var(--spacing-md);
}

.testimonial-card.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.testimonial-content {
    flex: 1;
    margin-bottom: var(--spacing-md);
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    position: relative;
    padding: 0 var(--spacing-sm);
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
}

.testimonial-content p::before {
    top: -10px;
    left: -10px;
}

.testimonial-content p::after {
    bottom: -20px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--brutal-border-color);
}

.testimonial-author h4 {
    margin-bottom: 0;
}

.testimonial-author p {
    margin-bottom: 0;
    color: var(--primary-color);
    font-weight: 500;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
}

.prev-btn,
.next-btn {
    background-color: var(--light-bg);
    border: 2px solid var(--brutal-border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 var(--brutal-shadow-color);
}

.prev-btn:hover,
.next-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-bg);
    border: 2px solid var(--brutal-border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    height: 100%;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 82, 82, 0.1);
    border-radius: 50%;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-form {
    padding: var(--spacing-md);
}

.contact-form h3 {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--brutal-border-color);
    border-radius: var(--clay-radius);
    background-color: var(--light-bg);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 82, 82, 0.2);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: var(--brutal-border-width) solid var(--brutal-border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.footer-logo h2 {
    color: var(--light-text);
    margin-bottom: var(--spacing-xs);
}

.footer-logo p {
    margin-bottom: var(--spacing-sm);
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links-column h3 {
    color: var(--light-text);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links-column ul li {
    margin-bottom: 8px;
}

.footer-links-column ul li a {
    color: var(--light-text);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links-column ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    opacity: 0.7;
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-bottom-links a {
    color: var(--light-text);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: var(--brutal-border-width) solid var(--brutal-border-color);
    box-shadow: var(--brutal-shadow-offset) var(--brutal-shadow-offset) 0 var(--brutal-shadow-color);
    transform: translateY(20px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* ===== INFO SECTION STYLES ===== */
.info-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--light-bg);
    position: relative;
    margin-top: 0;
}

/* Create the curve above notice board */
/* Removed the info-section::before as it's now handled by hero::after */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.info-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.info-header {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.info-header h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-line {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.5rem auto;
    border-radius: 4px;
}

/* Notice Board Styles */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.notice-item {
    display: flex;
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px dashed var(--brutal-border-color);
}

.notice-date {
    min-width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: var(--brutal-border-width) solid var(--brutal-border-color);
    box-shadow: 3px 3px 0 var(--brutal-shadow-color);
}

.notice-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.notice-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Events Styles */
.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.event-item {
    display: flex;
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px dashed var(--brutal-border-color);
}

.event-date {
    min-width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: var(--brutal-border-width) solid var(--brutal-border-color);
    box-shadow: 3px 3px 0 var(--brutal-shadow-color);
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.event-content p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.event-content i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* Principal's Notes Styles */
.principal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.principal-image {
    width: 150px;
    height: 150px;
    margin-bottom: var(--spacing-sm);
    border-radius: 50%;
    overflow: hidden;
    border: var(--brutal-border-width) solid var(--brutal-border-color);
    box-shadow: 5px 5px 0 var(--brutal-shadow-color);
    background-color: var(--light-bg);
}

.principal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.principal-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.principal-message {
    font-style: italic;
    margin-bottom: var(--spacing-sm);
    text-align: left;
    padding: 0 var(--spacing-xs);
}

.principal-message p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--brutal-border-color);
    border-radius: var(--clay-radius);
    background-color: var(--light-bg);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 82, 82, 0.2);
}

/* Three.js container */
.three-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.05) 0%, rgba(74, 79, 255, 0.05) 100%);
}

/* Ensure elements in hero are above the 3D animation */
.hero .container {
    position: relative;
    z-index: 3;
}

/* Animation for speech bubble popping in */
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ===== REELS SECTION STYLES ===== */
.school-reels {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: var(--spacing-xl) 0;
}

.reels-container {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-md) 0;
}

.reels-slider {
    display: flex;
    gap: var(--spacing-md);
    transition: transform 0.3s ease;
    padding: var(--spacing-sm) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.reels-slider::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.reel-item {
    min-width: 280px;
    max-width: 280px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--clay-bg);
    border-radius: var(--clay-radius);
    overflow: hidden;
    box-shadow: 
        var(--brutal-shadow-offset) var(--brutal-shadow-offset) 0 var(--brutal-shadow-color),
        0 4px 15px rgba(0, 0, 0, 0.1);
}

.reel-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        calc(var(--brutal-shadow-offset) + 2px) calc(var(--brutal-shadow-offset) + 2px) 0 var(--brutal-shadow-color),
        0 8px 25px rgba(0, 0, 0, 0.15);
}

.reel-thumbnail {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #000;
}

.reel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.reel-item:hover .reel-img {
    transform: scale(1.1);
}

.reel-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.reel-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 82, 82, 0.9);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.reel-item:hover .reel-play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.reel-info {
    padding: var(--spacing-md);
    background: var(--clay-bg);
}

.reel-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
    line-height: 1.3;
}

.reel-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.reel-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

.reel-views, .reel-likes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.reel-stats i {
    font-size: 0.9rem;
}

.reels-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.reels-nav-btn {
    background: var(--primary-color);
    color: white;
    border: var(--brutal-border-width) solid var(--brutal-border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 4px 4px 0 var(--brutal-shadow-color);
}

.reels-nav-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--brutal-shadow-color);
}

.reels-nav-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--brutal-shadow-color);
}

.reels-prev {
    margin-left: -25px;
}

.reels-next {
    margin-right: -25px;
}

.no-reels-message {
    text-align: center;
    padding: var(--spacing-xl);
    color: #666;
    font-size: 1.1rem;
}

.view-all-reels {
    text-align: center;
    margin-top: var(--spacing-lg);
}

@media (max-width: 768px) {
    .reels-nav-btn {
        display: none;
    }
}

/* Reels Grid (used on reels.php) */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.reels-grid .reel-item {
    min-width: auto;
    max-width: none;
}

.reels-grid .reel-thumbnail {
    height: 280px;
}

/* Reels Modal */
.reel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.reel-modal.show {
    display: flex;
}

.reel-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #000;
    border-radius: var(--clay-radius);
    overflow: hidden;
}

.reel-modal-video {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

.reel-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    border: var(--brutal-border-width) solid var(--brutal-border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.reel-modal-close:hover {
    transform: scale(1.1);
}

/* Responsive Design for Reels */
@media (max-width: 768px) {
    .reels-slider {
        gap: var(--spacing-sm);
    }
    
    .reel-item {
        min-width: 240px;
        max-width: 240px;
    }
    
    .reel-thumbnail {
        height: 320px;
    }
    
    .reels-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .reels-prev {
        margin-left: -20px;
    }
    
    .reels-next {
        margin-right: -20px;
    }
}

@media (max-width: 480px) {
    .reel-item {
        min-width: 200px;
        max-width: 200px;
    }
    
    .reel-thumbnail {
        height: 280px;
    }
    
    .reel-info {
        padding: var(--spacing-sm);
    }
    
    .reel-title {
        font-size: 1rem;
    }
    
    .reel-description {
        font-size: 0.8rem;
    }
}