/*
Theme Name: CIPT & AHS
Theme URI: https://www.ciptsls.in
Author: CIPT Developer
Author URI: https://www.ciptsls.in
Description: Custom WordPress Classic Theme for Calcutta Institute of Pharmaceutical Technology & Allied Health Sciences. A modern, professional college website theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cipt
Tags: education, college, pharmacy, custom-logo, custom-menu, featured-images
*/

/* ==========================================================================
   WYSIWYG & Rich Text Content Styling (.prose)
   Restores bullet points, numbering, and spacing stripped by Tailwind Preflight
   ========================================================================== */

.prose ul,
.prose-custom ul {
    list-style-type: disc !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    padding-left: 1.625rem !important;
}

.prose ol,
.prose-custom ol {
    list-style-type: decimal !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    padding-left: 1.625rem !important;
}

.prose li,
.prose-custom li {
    display: list-item !important;
    margin-top: 0.375rem !important;
    margin-bottom: 0.375rem !important;
    padding-left: 0.25rem !important;
    line-height: 1.625;
}

/* Nested lists */
.prose ul ul,
.prose ol ul {
    list-style-type: circle !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    padding-left: 1.25rem !important;
}

.prose ul ul ul {
    list-style-type: square !important;
}

.prose ol ol,
.prose ul ol {
    list-style-type: lower-alpha !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    padding-left: 1.25rem !important;
}

.prose ol ol ol {
    list-style-type: lower-roman !important;
}

/* Paragraph and spacing within rich text */
.prose p {
    margin-top: 0.5rem;
    margin-bottom: 0.875rem;
    line-height: 1.7;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose strong,
.prose b {
    font-weight: 600;
    color: #1f2937;
}

.prose a {
    color: #166534;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: #14532d;
}

.prose blockquote {
    border-left: 4px solid #166534;
    padding-left: 1rem;
    font-style: italic;
    color: #4b5563;
    margin: 1rem 0;
}

/* Table styling inside content pages */
.cipt-page-content table,
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    overflow-x: auto;
}

.cipt-page-content th,
.prose th {
    background-color: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    text-align: left;
}

.cipt-page-content td,
.prose td {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.cipt-page-content tr:nth-child(even),
.prose tr:nth-child(even) {
    background-color: #f8fafc;
}

.cipt-page-content tr:hover,
.prose tr:hover {
    background-color: #f1f5f9;
}

/* Headings inside content */
.cipt-page-content h2,
.prose h2 {
    color: #0a1f3f;
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    line-height: 1.25;
}

.cipt-page-content h3,
.prose h3 {
    color: #0a1f3f;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.625rem;
    line-height: 1.35;
}

.cipt-page-content h4,
.prose h4 {
    color: #166534;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   MULTI-LEVEL DROPDOWN / FLYOUT SUBMENU
   ========================================================================== */

.group\/submenu:hover>.flyout-submenu,
.menu-has-submenu:hover>.flyout-submenu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Hover bridge so mouse moving from parent item to flyout doesn't close menu */
.flyout-submenu::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20px;
    width: 25px;
    background: transparent;
}

/* Custom sleek scrollbar for flyout menus with many items */
.flyout-submenu::-webkit-scrollbar {
    width: 5px;
}

.flyout-submenu::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.flyout-submenu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

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

/* ==========================================================================
   COURSE PAGE STICKY NAVIGATION BAR & TABS
   ========================================================================== */

.course-nav-link {
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

.course-nav-link:hover {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.course-nav-link.active-nav {
    background-color: #166534 !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-color: #166534 !important;
}

.course-nav-link.active-nav i {
    color: #ffffff !important;
}

/* Hide scrollbars for clean horizontal scrolling */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Enhanced Table Styling in Rich Text (Fee Structure & Admission) */
.prose table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.25rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.prose th {
    background-color: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 1rem;
    border-bottom: 2px solid #cbd5e1;
    border-right: 1px solid #e2e8f0;
    text-align: left;
}

.prose th:last-child {
    border-right: none;
}

.prose td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.prose td:last-child {
    border-right: none;
}

.prose tr:last-child td {
    border-bottom: none;
}

.prose tr:nth-child(even) td {
    background-color: #fbfcfe;
}

.prose tr:hover td {
    background-color: #f0fdf4;
}

/* Smooth scrolling and prevent horizontal overflow without breaking sticky positioning */
html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    overflow-x: clip;
}