/* Basic School CMS Styles */
:root {
    --primary-color: #ff6600;
    --primary-gradient: linear-gradient(135deg, #ff8c00 0%, #ff4500 100%);
    --secondary-color: #003366;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #002244;
    border-color: #002244;
}

.bg-primary {
    background: var(--primary-gradient) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Notice Board */
.card-header.bg-primary {
    border-bottom: 0;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 60px 0 20px;
}

footer h5 {
    color: #fff;
    margin-bottom: 25px;
}

footer a {
    color: #ccc;
    text-decoration: none;
}

/* Chatbot Styles */
#chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    font-family: inherit;
}

#chatbot-button {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

#chatbot-button:hover {
    transform: scale(1.1);
}

#chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 330px;
    height: 480px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chatbot-header {
    background: var(--primary-gradient);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    max-width: 85%;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.bot {
    background: #fff;
    color: #444;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.message.user {
    background: var(--primary-gradient);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chatbot-input {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
}

.chatbot-input input {
    flex: 1;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    background: #fdfdfd;
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.chatbot-input button {
    background: var(--primary-gradient);
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.chatbot-input button:hover {
    background: #002244;
}

/* Sophisticated Feature Cards */
.feature-card {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 32px !important;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    background-color: var(--card-bg, #ffffff) !important;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
    transition: transform 1s ease;
    z-index: -1;
    pointer-events: none;
}

.feature-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.1) 100%);
    z-index: -2;
}

.feature-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25) !important;
}

.feature-card:hover::before {
    transform: translate(-20%, -20%);
}

.feature-card .card-body {
    padding: 4rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    position: relative;
}

.feature-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
}

.feature-icon-wrapper i {
    font-size: 2.5rem;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.feature-card:hover .feature-icon-wrapper {
    transform: rotateY(180deg) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.feature-card .card-title {
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.8px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

.feature-card .card-text {
    line-height: 1.9;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    font-weight: 400;
    flex-grow: 1;
    opacity: 0.95;
}

.card-footer-action {
    width: 100%;
    margin-top: auto;
}

.feature-card .read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 30px;
    border-radius: 100px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-card:hover .read-more {
    background: #ffffff;
    color: var(--card-bg, #000000) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.feature-card-link, .feature-card-wrapper {
    text-decoration: none !important;
    display: block;
    height: 100%;
}

.feature-card .read-more {
    display: inline-flex;
    align-items: center;
    margin-top: 2.5rem;
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.feature-card:hover .read-more {
    background: var(--card-text, #ffffff);
    color: var(--card-bg, #000000) !important;
    transform: scale(1.05);
}

.feature-card .read-more i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.feature-card:hover .read-more i {
    transform: translateX(5px);
}

.read-more-placeholder {
    margin-top: 2.5rem;
    height: 40px; /* match read-more button height */
}

/* Interactive Background Animation Styles */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -100;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.15;
    background: #f8f9fa;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    mix-blend-mode: multiply;
    transition: transform 0.3s ease-out;
    animation: orbFloat 20s infinite alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #ff8c00 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ff4500 0%, transparent 70%);
    bottom: 10%;
    right: -5%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
    top: 30%;
    right: 20%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.orb-4 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #ff6600 0%, transparent 70%);
    bottom: 20%;
    left: 15%;
    animation-delay: -15s;
    animation-duration: 28s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}
