/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-color: #5D3FD3;
    --secondary-color: #BB86FC;
    --text-dark: #2D1B4E;
    --text-light: #ffffff;
    --bg-light: #F5F0FF;
    --bg-white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
    --top-bar-bg: #4A1D96;
    --footer-bg: #1A0A2E;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

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

ul {
    list-style: none;
}

/* --- TOP CONTACT BAR --- */
.top-bar {
    background-color: var(--top-bar-bg);
    color: var(--text-light);
    padding: 8px 5%;
    font-size: 0.85rem;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-bar-info a {
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-info a:hover {
    color: var(--secondary-color);
}

.top-bar-info svg {
    width: 14px;
    height: 14px;
    fill: var(--secondary-color);
}

.top-bar-social {
    display: flex;
    gap: 12px;
}

.top-bar-social a {
    color: var(--text-light);
    transition: var(--transition);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-social a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    height: 70px;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.logo svg {
    width: 40px;
    height: 40px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(93, 63, 211, 0.1);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- BREADCRUMB --- */
.breadcrumb-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7B5FE7 100%);
    padding: 60px 5%;
    text-align: center;
    color: var(--text-light);
}

.breadcrumb-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.breadcrumb-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.breadcrumb-nav a {
    color: var(--secondary-color);
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

/* --- HERO SECTION --- */
.hero {
   /*background:  url('https://images.unsplash.com/photo-1562774053-701939374585?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');*/
    background: url('../img/princess.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-style: italic;
    color: var(--secondary-color);
}

.btn {
    padding: 14px 35px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
    border-radius: 30px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
}

.btn:hover {
    background-color: #E8D5F5;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(93, 63, 211, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* --- SECTIONS COMMON --- */
.section-container {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(93, 63, 211, 0.15);
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* --- STATS SECTION --- */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7B5FE7 100%);
    padding: 60px 5%;
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- PRINCIPAL'S MESSAGE --- */
.principal-section {
    background-color: var(--bg-white);
}

.principal-card {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--bg-light);
    padding: 50px;
    border-radius: 25px;
    border-left: 5px solid var(--primary-color);
}

.principal-img {
    flex: 1;
    text-align: center;
}

.principal-img img {
    width: 120%;
    height: 200%;
   max-width: 280px; 
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    border: 
5px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(93, 63, 211, 0.2);
}

.principal-text {
    flex: 3;
}

.principal-text blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: #6B5B7D;
    line-height: 1.8;
}

/* --- NEWS & EVENTS --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(93, 63, 211, 0.1);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(93, 63, 211, 0.15);
}

.news-img {
    height: 220px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.news-content h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.news-content p {
    color: #6B5B7D;
    font-size: 0.95rem;
}

.news-content a {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 10px;
}

.news-content a:hover {
    color: var(--secondary-color);
}

/* --- SPORTS PAGE --- */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.sport-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(93, 63, 211, 0.1);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(93, 63, 211, 0.15);
}

.sport-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.sport-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.sport-card p {
    color: #6B5B7D;
    font-size: 0.95rem;
}

/* --- GALLERY PAGE --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(93, 63, 211, 0.1);
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(93, 63, 211, 0.8));
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-info-item p {
    color: #6B5B7D;
}

.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(93, 63, 211, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E8D5F5;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* --- ADMIN CARDS --- */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.admin-card {
    background: var(--bg-white);
    border-radius:25px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(93, 63, 211, 0.1);
    transition: var(--transition);
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(93, 63, 211, 0.15);
}

.admin-card img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--secondary-color);
}

.admin-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.admin-card p {
    color: #6B5B7D;
    font-size: 0.9rem;
}

/* --- FOOTER --- */
footer {
    background-color: var(--footer-bg);
    color: #ccc;
    padding: 60px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 40px;
}

.footer-col h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #4A3558;
    padding-top: 20px;
    font-size: 0.9rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .top-bar-info {
        display: none;
    }

    .navbar {
        padding: 0 5%;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        flex-direction: column;
        padding: 30px;
        transition: var(--transition);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        padding: 15px;
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid,
    .principal-card,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .principal-img img {
        margin-bottom: 20px;
    }

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