/*
Theme Name: Education Online
Theme URI: https://educationol.org
Author: Softech Consultants
Author URI: https://softechconsultants.com
Description: A modern, responsive education theme with Tailwind CSS, glassmorphism cards, scroll animations, and a warm orange-blue design system.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: education-online
Tags: education, online-learning, responsive, tailwindcss, animation
*/

/* ======================================================
   THEME CUSTOM STYLES (Non-Tailwind)
   Tailwind is loaded via CDN in functions.php enqueue
   ====================================================== */

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero Blob */
.hero-blob {
    position: absolute;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.2;
    border-radius: 50%;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #8e4e03 0%, #ffab5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Body base */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f9f9ff;
    color: #151c27;
    margin: 0;
    padding: 0;
}

/* Scroll Reveal initial state */
.reveal-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero reveal — instant */
.hero-instant {
    opacity: 1 !important;
    transform: none !important;
}

/* Mobile menu overlay */
#mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
#mobile-menu.open {
    display: flex;
}
#mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #151c27;
    text-decoration: none;
    transition: color 0.2s;
}
#mobile-menu a:hover, #mobile-menu a.active {
    color: #8e4e03;
}
#mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #151c27;
}

/* Scroll-linked navbar shrink */
.nav-scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08) !important;
    background: rgba(255,255,255,0.95) !important;
}

/* FAQ accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open {
    max-height: 500px;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* Contact form */
.edu-form input,
.edu-form textarea,
.edu-form select {
    width: 100%;
    border: 1.5px solid #d8c3b3;
    border-radius: 12px;
    padding: 14px 18px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    background: #ffffff;
    color: #151c27;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}
.edu-form input:focus,
.edu-form textarea:focus {
    border-color: #ffab5e;
    box-shadow: 0 0 0 3px rgba(255,171,94,0.15);
}
.edu-form button[type="submit"] {
    background: #ffab5e;
    color: #753f00;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 40px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(142,78,3,0.15);
}
.edu-form button[type="submit"]:hover {
    background: #ff9e3d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(142,78,3,0.2);
}
.edu-form button[type="submit"]:active {
    transform: scale(0.97);
}

/* Course card hover */
.course-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.course-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.12); }

/* Animate bounce override */
@keyframes edu-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.animate-edu-bounce {
    animation: edu-bounce 3s ease-in-out infinite;
}

/* Grayscale-hover partner bar */
.partner-bar {
    opacity: 0.6;
    filter: grayscale(1);
    transition: opacity 0.3s, filter 0.3s;
}
.partner-bar:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* line-clamp polyfill */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Transition helpers */
.transition-all { transition-property: all; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-1000 { transition-duration: 1000ms; }
