/*
Theme Name: EduCRM Pro
Theme URI: https://educrmpro.com
Author: EduCRM Pro
Author URI: https://educrmpro.com
Description: Enterprise Coaching Institute Theme with Built-in CRM — Lead Management, Student Admission Tracking, Fee Management & Invoices. Designed for Coaching Institutes and Tuition Centers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: educrm-pro
Tags: education, crm, coaching, responsive, custom-menu, featured-images, custom-logo
*/

/* =====================================================
   EduCRM PRO — Base Styles (Full CSS in assets/css)
   ===================================================== */

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

:root {
    --primary:       #1a5276;
    --primary-dark:  #154360;
    --primary-light: #2e86c1;
    --accent:        #1abc9c;
    --accent-dark:   #17a589;
    --accent-light:  #76d7c4;
    --text-dark:     #1c2833;
    --text-mid:      #4d5656;
    --text-light:    #717d7e;
    --bg-white:      #ffffff;
    --bg-light:      #f4f6f7;
    --bg-section:    #eaf4fb;
    --border:        #d5d8dc;
    --success:       #27ae60;
    --warning:       #f39c12;
    --danger:        #e74c3c;
    --info:          #2980b9;
    --shadow-sm:     0 2px 8px rgba(26,82,118,0.08);
    --shadow-md:     0 4px 20px rgba(26,82,118,0.13);
    --shadow-lg:     0 8px 40px rgba(26,82,118,0.18);
    --radius-sm:     6px;
    --radius-md:     12px;
    --radius-lg:     20px;
    --font-heading:  'Playfair Display', Georgia, serif;
    --font-body:     'Source Sans 3', 'Segoe UI', sans-serif;
    --transition:    all 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-sm { padding: 9px 20px; font-size: 0.875rem; }
.btn-lg { padding: 18px 44px; font-size: 1.1rem; }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-mid);
    margin-bottom: 48px;
    max-width: 600px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2,1fr); }
    .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section-pad { padding: 50px 0; }
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.badge-primary { background: #d6eaf8; color: var(--primary); }
.badge-accent  { background: #d1f2eb; color: var(--accent-dark); }
.badge-warning { background: #fdebd0; color: #d35400; }
.badge-danger  { background: #fadbd8; color: #c0392b; }
.badge-success { background: #d5f5e3; color: #1e8449; }

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-body { padding: 28px; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 0.92rem;
}
.form-control {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(46,134,193,0.12);
}
.form-control.is-invalid { border-color: var(--danger); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 110px; }

/* Alerts */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid;
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.alert-success { background: #d5f5e3; border-color: var(--success); color: #1e8449; }
.alert-danger   { background: #fadbd8; border-color: var(--danger);  color: #c0392b; }
.alert-warning  { background: #fef9e7; border-color: var(--warning); color: #9a7d0a; }
.alert-info     { background: #d6eaf8; border-color: var(--info);    color: #1a5276; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); }
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th {
    background: var(--primary);
    color: #fff;
    padding: 14px 18px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.data-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 0.92rem;
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-section); }

/* Pagination */
.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    color: var(--text-mid);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.pagination a:hover, .pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Loader */
.edu-loader {
    display: inline-block;
    width: 22px; height: 22px;
    border: 3px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Accessibility */
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    word-wrap: normal;
}

/* WordPress Core */
.wp-block-image { margin: 1.5em 0; }
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { text-align: center; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-light); text-align: center; margin-top: 6px; }
.sticky { /* WP sticky post */ }
.bypostauthor { /* WP bypostauthor */ }
