/*
Theme Name: Yuva Competitive Academy
Theme URI: https://yuvacompetitiveacademy.com/
Author: V Jayakrishna
Author URI: #
Description: A custom Tailwind CSS theme for Yuva Competitive Academy.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yuva-academy
Tags: education, coaching, custom-theme
*/

/* ===================================
   CSS VARIABLES - YELLOW/ORANGE BRAND THEME
   =================================== */
:root {
    /* Brand Colors - Yellow/Orange Palette */
    --primary: #1e293b;
    /* Slate 800 - Deep Navy for text */
    --primary-dark: #0f172a;
    /* Slate 900 */
    --primary-light: #334155;
    /* Slate 700 */

    /* Main Brand Accent - Yellow/Orange */
    --accent: #f59e0b;
    /* Amber 500 - Primary Brand Color */
    --accent-dark: #d97706;
    /* Amber 600 */
    --accent-light: #fbbf24;
    /* Amber 400 */
    --accent-lighter: #fcd34d;
    /* Amber 300 */

    /* Secondary Accent - Orange */
    --secondary: #ea580c;
    /* Orange 600 */
    --secondary-dark: #c2410c;
    /* Orange 700 */
    --secondary-light: #fb923c;
    /* Orange 400 */

    --success: #10b981;
    /* Emerald 500 */
    --warning: #f59e0b;
    /* Amber 500 */
    --danger: #ef4444;
    /* Red 500 */

    /* Fonts */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===================================
   LINE CLAMP UTILITIES
   =================================== */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.011em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.25rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

/* ===================================
   WORDPRESS CORE ALIGNMENTS
   =================================== */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.a {
    color: #f59e0b;
}

.a:visited {
    color: #d97706;
}

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

/* ===================================
   CUSTOM SCROLLBAR
   =================================== */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d97706, #b45309);
}

/* Main Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ===================================
   PROFESSIONAL ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* Enhanced Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Improved Text Selection */
::selection {
    background-color: #f59e0b;
    color: white;
}

::-moz-selection {
    background-color: #f59e0b;
    color: white;
}

/* Enhanced Card Transitions */
.group:hover .group-hover\:scale-110 {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Professional Shadow Layers */
.shadow-layered {
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Responsive Image Optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Loading State */
.loading-shimmer {
    background: linear-gradient(90deg,
            #f0f0f0 0%,
            #e0e0e0 50%,
            #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ===================================
   FACULTY SECTION SPECIFIC STYLES
   =================================== */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.4s ease-out forwards;
}

/* ===================================
   RIPPLE EFFECT ANIMATION
   =================================== */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===================================
   MARQUEE ANIMATION
   =================================== */
/* Perfect Infinite Loop Marquee */
.marquee-container {
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 20s linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
    /* pause on hover */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Only half, because we duplicate content */
}

/* ===================================
   WORDPRESS NAVIGATION DROPDOWN
   =================================== */
/* Parent Menu Item */
.menu-item-has-children {
    position: relative;
}

/* Add a chevron arrow to items with children */
.menu-item-has-children>a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover>a::after {
    transform: rotate(225deg) translateY(-2px);
}

/* Submenu Styles */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    z-index: 100;
    border: 1px solid #f1f5f9;
}

/* Show Submenu on Hover */
.menu-item-has-children:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu Links */
.sub-menu li {
    display: block;
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #334155;
    /* Slate 700 */
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.sub-menu li a:hover {
    background-color: #f8fafc;
    /* Slate 50 */
    color: #f59e0b;
    /* Brand Accent */
    padding-left: 24px;
    /* Slide effect */
}

/* Nested Submenus (if any) */
.sub-menu .menu-item-has-children>.sub-menu {
    top: 0;
    left: 100%;
    margin-left: 4px;
}

/* ===================================
   MOBILE MENU OVERRIDES
   =================================== */
/* ===================================
   MOBILE MENU OVERRIDES
   =================================== */
#mobile-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    /* Hidden by default, toggled via JS */
    min-width: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 5px;
    background: transparent;
    transform: none;
}

#mobile-menu .menu-item-has-children>a {
    position: relative;
    padding-right: 40px;
    /* Make space for the arrow */
}

/* Distinct clickable area for the arrow */
#mobile-menu .menu-item-has-children>a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    /* Reduced from 10px */
    height: 8px;
    /* Reduced from 10px */
    margin-right: 15px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transition: transform 0.3s ease;
    cursor: pointer;
    /* Create a larger hit area */
    padding: 5px;
    /* Reduced padding */
    margin-top: -6px;
    /* Adjusted margin */
    /* Adjustment for visual centering due to rotation */
    pointer-events: auto;
    /* Ensure it captures clicks */
}

/* Add a transparent overlay for the hit area to ensure it's easy to tap */
#mobile-menu .menu-item-has-children>a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    /* Width of the toggle area */
    background: transparent;
    z-index: 10;
    cursor: pointer;
}

#mobile-menu .menu-item-has-children.submenu-open>.sub-menu {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Rotate arrow when open */
#mobile-menu .menu-item-has-children.submenu-open>a::after {
    transform: translateY(-20%) rotate(225deg);
    margin-top: 2px;
}

/* ===================================
   FALLBACK TYPOGRAPHY STYLES (PROSE)
   =================================== */
/* 
   These styles act as a fallback if the Tailwind Typography plugin fails to load
   or if specific overrides are needed for the .prose class.
*/

.prose ul,
.entry-content ul,
.article-content ul,
.post-content ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.prose ol,
.entry-content ol,
.article-content ol,
.post-content ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.prose li,
.entry-content li,
.article-content li,
.post-content li {
    margin-bottom: 0.5rem;
    display: list-item !important;
}

/* Headings inside content */
.prose h1,
.entry-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h1:not([style]),
.entry-content h1:not([style]) {
    color: var(--primary-dark);
}

.prose h2,
.entry-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
}

.prose h2:not([style]),
.entry-content h2:not([style]) {
    color: var(--primary-dark);
}

.prose h3,
.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose h3:not([style]),
.entry-content h3:not([style]) {
    color: var(--primary-dark);
}

.prose h4,
.entry-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Basic text formatting */
.prose p,
.entry-content p {
    margin-bottom: 1.25rem;
}

.prose strong,
.entry-content strong {
    font-weight: 700;
}

.prose strong:not([style]),
.entry-content strong:not([style]) {
    color: var(--primary-dark);
}

.prose blockquote,
.entry-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    font-style: italic;
    color: var(--primary-light);
    margin: 1.5rem 0;
}

/* ===================================
   CLASSIC EDITOR INLINE STYLES FIX
   =================================== */
/* 
   Allow inline styles from Classic Editor to take precedence.
   This ensures that colored text set in the editor shows on frontend.
*/

/* Override prose heading defaults when inline style color is present */
.post-content h1[style*="color"],
.post-content h2[style*="color"],
.post-content h3[style*="color"],
.post-content h4[style*="color"],
.post-content h5[style*="color"],
.post-content h6[style*="color"],
.article-content h1[style*="color"],
.article-content h2[style*="color"],
.article-content h3[style*="color"],
.article-content h4[style*="color"],
.article-content h5[style*="color"],
.article-content h6[style*="color"],
.prose h1[style*="color"],
.prose h2[style*="color"],
.prose h3[style*="color"],
.prose h4[style*="color"],
.prose h5[style*="color"],
.prose h6[style*="color"] {
    color: unset;
}

/* Handle <span> and <font> elements with inline color styles */
.post-content span[style*="color"],
.article-content span[style*="color"],
.prose span[style*="color"],
.entry-content span[style*="color"],
.post-content font[style*="color"],
.article-content font[style*="color"],
.prose font[style*="color"],
.entry-content font[style*="color"],
.post-content font[color],
.article-content font[color],
.prose font[color],
.entry-content font[color] {
    color: unset;
}

/* Strong/bold text with inline color */
.post-content strong[style*="color"],
.article-content strong[style*="color"],
.prose strong[style*="color"],
.entry-content strong[style*="color"] {
    color: unset;
}

/* Paragraphs with inline color */
.post-content p[style*="color"],
.article-content p[style*="color"],
.prose p[style*="color"],
.entry-content p[style*="color"] {
    color: unset;
}

/* ===================================
   DARK MODE COMPATIBILITY FIXES
   =================================== */
/* 
   Fix for disappearing text in dark mode when using bg-clip-text.
   The WP Dark Mode plugin adds 'wp-dark-mode-bg-image' which removes the background,
   causing text-transparent elements to become invisible.
*/

.bg-gradient-to-r.text-transparent.bg-clip-text.wp-dark-mode-bg-image {
    background-image: linear-gradient(to right, var(--tw-gradient-stops)) !important;
}

.bg-gradient-to-l.text-transparent.bg-clip-text.wp-dark-mode-bg-image {
    background-image: linear-gradient(to left, var(--tw-gradient-stops)) !important;
}

.bg-gradient-to-t.text-transparent.bg-clip-text.wp-dark-mode-bg-image {
    background-image: linear-gradient(to top, var(--tw-gradient-stops)) !important;
}

.bg-gradient-to-b.text-transparent.bg-clip-text.wp-dark-mode-bg-image {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops)) !important;
}

.bg-gradient-to-br.text-transparent.bg-clip-text.wp-dark-mode-bg-image {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)) !important;
}

.bg-gradient-to-bl.text-transparent.bg-clip-text.wp-dark-mode-bg-image {
    background-image: linear-gradient(to bottom left, var(--tw-gradient-stops)) !important;
}

.bg-gradient-to-tr.text-transparent.bg-clip-text.wp-dark-mode-bg-image {
    background-image: linear-gradient(to top right, var(--tw-gradient-stops)) !important;
}

.bg-gradient-to-tl.text-transparent.bg-clip-text.wp-dark-mode-bg-image {
    background-image: linear-gradient(to top left, var(--tw-gradient-stops)) !important;
}