/* ---------------------------------------
   🌈 Color Variables
--------------------------------------- */
:root {
    --aqua: #1ccad8;
    --aqua-dark: #11998e;
    --accent: #f6c23e;
    --primary: var(--aqua);
    --secondary: var(--aqua-dark);
    --white: #fff;
    --dark: #233142;
}

.wave-divider {
    position: relative;
    overflow: hidden;
}

.wave-svg {
    display: block;
    width: 100%;
    height: auto;
}

.wave-path {
    fill: #f8f9fa;
    fill-opacity: 1;
}

.wave-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 1rem;
}

.animated-text {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    color: #007bff;
    height: 1.2em;
    overflow: hidden;
    position: relative;
}

.animated-text span {
    display: block;
    animation: textSwitch 6s infinite;
}

@keyframes textSwitch {
    0% {
        transform: translateY(0%);
    }
    33% {
        transform: translateY(-100%);
    }
    66% {
        transform: translateY(-200%);
    }
    100% {
        transform: translateY(0%);
    }
}

/* ---------------------------------------
 * 📱 Responsive Layouts for Mobile
 * --------------------------------------- */
@media (max-width: 576px) {
    .wave-text {
        top: 65%;
    }

    .animated-text {
        font-size: 0.75rem;
        padding: 0 1.5rem;
        color: #007bff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/*particles hero section*/
.hero-section {
    position: relative;
    overflow: hidden;
}

#particles-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/*facilities section*/

.facilities-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.section-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.facilities-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.facilities-track {
    display: flex;
    transition: transform 0.5s ease;
}

.facility-slide {
    flex: 0 0 auto;
    padding: 0 15px;
    width: 100%;
}

@media (min-width: 576px) {
    .facility-slide {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .facility-slide {
        width: 33.333%;
    }
}

.facility-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 380px;
    display: flex;
    flex-direction: column;
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.facility-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.facility-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.facility-card:hover .facility-img {
    transform: scale(1.1);
}

.facility-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.facility-card:hover .facility-overlay {
    opacity: 1;
}

.facility-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.facility-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.facility-desc {
    color: #6c757d;
    margin-bottom: 15px;
    flex-grow: 1;
}

.facility-features {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.feature {
    display: flex;
    align-items: center;
    color: #00a86b;
    font-weight: 500;
}

.feature i {
    margin-right: 5px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.slider-btn:hover {
    background: #0b5ed7;
    transform: translateY(-3px);
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #0d6efd;
    transform: scale(1.2);
}

/* Responsive design */
@media (max-width: 575px) {
    .facility-slide {
        width: 100%;
    }
}

/*event css*/
.events-section {
    background: #f8f9fa;
    position: relative;
}

.events-slider-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.events-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.event-slide {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    min-width: 300px;
}

.event-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.event-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-img img {
    transform: scale(1.1);
}

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0d6efd;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
}

.event-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.event-status.past {
    background: #6c757d;
    color: white;
}

.event-status.current {
    background: #28a745;
    color: white;
}

.event-status.upcoming {
    background: #ffc107;
    color: black;
}

.event-content {
    padding: 20px;
}

.event-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.event-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.event-details {
    margin: 15px 0;
}

.event-details span {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.event-details i {
    margin-right: 8px;
    color: #0d6efd;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.slider-btn {
    background: #0d6efd;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.slider-btn:hover {
    background: #0b5ed7;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #0d6efd;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .event-slide {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .event-slide {
        flex: 0 0 calc(100% - 20px);
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }
}

/*Styles for Auto Typing Effect */
/* Cursor styling */ /* Mobile responsiveness */
@media (max-width: 768px) {
    .auto-type,
    .auto-type-2 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }

    .school-env {
        height: auto !important;
        min-height: 100vh;
    }

    .row {
        flex-direction: column;
    }

    .video-container {
        height: 250px !important;
        margin-top: 2rem;
    }

    .text-content {
        margin-top: 2rem;
    }
}

/* Additional styling for better appearance */
body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.school-env {
    font-family: "Poppins", sans-serif !important;
}

.text-content {
    transition: all 0.3s ease;
}

.text-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-container {
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 255, 170, 0.25) !important;
}

/*--particles why choose us section--*/
/* Particles container behind content */
#particles-why {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Section adjustments */
#why-gogarty {
    background-color: #f8f9fa; /* Optional light background */
    overflow: hidden;
    position: relative;
}

/*event section*/

/* Section & Particles */
.events-section {
    position: relative;
    padding: 80px 20px;
    color: #fff;
    overflow: hidden;
}
#particles-events {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.events-section .container {
    position: relative;
    z-index: 1;
}
.section-title {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}
.event-fade-container {
    position: relative;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    border-radius: 15px;
}
.event-fade-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.event-fade-slide.active {
    opacity: 1;
    position: relative;
}
.event-fade-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
}
.event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 20px;
}
.event-overlay h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    color: #38bdf8;
}
.event-overlay span {
    display: inline-block;
    margin-right: 15px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

/*--------teacher section-------*/
.teachers-section {
    position: relative;
    padding: 80px 20px;
    color: #fff;
    overflow: hidden;
}
#particles-teachers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.teachers-section .container {
    position: relative;
    z-index: 1;
}
.section-title {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}
.teacher-fade-container {
    position: relative;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    border-radius: 15px;
}
.teacher-fade-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.teacher-fade-slide.active {
    opacity: 1;
    position: relative;
}
.teacher-fade-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
}
.teacher-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 20px;
}
.teacher-overlay h3 {
    margin: 0 0 5px;
    font-size: 1.5rem;
    color: #facc15;
}
.teacher-overlay p {
    margin: 0 0 8px;
    font-weight: 500;
}
.teacher-overlay span {
    display: block;
    font-size: 0.9rem;
    color: #cbd5e1;
}
