/*
Theme Name: Mels Theme
Theme URI: https://yourwebsite.com
Author: Nomel
Author URI: https://yourwebsite.com
Description: Custom theme for MELS - School Management System. Automatically installed from plugin.
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: mels
*/

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8fafc;
}

.site-header {
    background: #1e293b;
    color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    z-index: 1002;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.school-logo-link {
    display: block;
}

.school-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.school-motto {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0.25rem 0 0 0;
    display: none;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e293b;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 1rem;
    z-index: 1001;
}

.mobile-menu.active {
    display: block;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    margin-bottom: 0.5rem;
}

.primary-menu li a {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.primary-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.site-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Home Page Styles */
.home-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #fff;
    padding: 4rem 2rem;
    margin: 0 -2rem 3rem -2rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    text-align: left;
}

.hero-logo {
    flex-shrink: 0;
}

.hero-logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-motto {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-primary {
    background: #fff;
    color: #3b82f6;
}

.btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Posts Feed Section */
.posts-feed-section {
    margin-bottom: 3rem;
}

.posts-feed-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.posts-grid {
    display: grid;
    gap: 2rem;
    margin: 0 -2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #1e293b;
}

/* Post Card */
.post-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-header {
    margin: 0.75rem 0 1rem 0;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #1e293b;
}

.post-time {
    font-size: 0.85rem;
    color: #64748b;
}

.post-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: #3b82f6;
}

.post-excerpt {
    color: #475569;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-image {
    margin: -1.5rem -1.5rem 0.75rem -1.5rem;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.post-image a {
    display: block;
    cursor: pointer;
}

.post-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.post-image a:hover img {
    transform: scale(1.02);
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: auto;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.9rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease, transform 0.2s ease;
}

.stat-views {
    cursor: default;
}

button.stat-item:hover {
    color: #3b82f6;
    transform: translateY(-1px);
}

button.stat-item.active {
    color: #3b82f6;
}

.stat-icon {
    font-size: 1.1rem;
}

.share-icon,
.stat-item svg {
    display: block;
}

.stat-count {
    font-weight: 600;
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 0 -2rem 3rem -2rem;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1e293b;
}

.cta-text {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Single Post Page Styles */
.single-post-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.back-nav {
    margin-bottom: 2rem;
}

.back-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #1e40af;
}

.single-post {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.post-featured-image {
    margin: -2rem -2rem 1.5rem -2rem;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.single-post .post-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1e293b;
}

.single-post .post-excerpt {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-style: italic;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
}

.single-post .post-content {
    color: #334155;
    line-height: 1.8;
    font-size: 1.1rem;
}

.single-post .post-content p {
    margin-bottom: 1.5rem;
}

/* Comments Section */
.comments-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comments-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #1e293b;
}

.comment-form-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.comment-form-container h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1e293b;
}

.comment-form .form-group {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #475569;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comments-list {
    margin-top: 2rem;
}

.comment-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.comment-meta {
    display: flex;
    flex-direction: column;
}

.comment-author {
    font-weight: 600;
    color: #1e293b;
}

.comment-time {
    font-size: 0.85rem;
    color: #64748b;
}

.comment-content {
    color: #475569;
    line-height: 1.6;
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-style: italic;
}

/* About Page Styles */
.about-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem;
}

.about-hero {
    margin: 0 -2rem 3rem -2rem;
}

.about-content-section {
    margin-bottom: 3rem;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    color: #334155;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Mission & Vision Section */
.mission-vision-section {
    margin-bottom: 3rem;
}

.mission-vision-section .section-title {
    font-size: 1.5rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.info-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1e293b;
}

.info-card p {
    color: #475569;
    line-height: 1.6;
}

/* Contact Information Section */
.contact-info-section {
    margin-bottom: 3rem;
}

.contact-info-section .section-title {
    font-size: 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: box-shadow 0.2s ease;
}

.contact-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.contact-details p {
    color: #475569;
    margin: 0;
}

.contact-details a {
    color: #3b82f6;
    text-decoration: none;
}

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

/* Contact Page Styles */
.contact-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem;
}

.contact-hero {
    margin: 0 -2rem 3rem -2rem;
}

.contact-main-section {
    margin-bottom: 3rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Contact Form */
.contact-form-container {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-form-container .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #475569;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.required {
    color: #ef4444;
}

.notice {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.notice-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #22c55e;
}

.notice-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Contact Information */
.contact-info-container {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-info-container .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-details-list {
    margin-bottom: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.detail-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.detail-content p {
    color: #475569;
    margin: 0;
}

.detail-content a {
    color: #3b82f6;
    text-decoration: none;
}

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

/* Working Hours */
.working-hours {
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.working-hours h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.day {
    font-weight: 500;
    color: #475569;
}

.time {
    color: #64748b;
}

/* Admissions Page Styles */
.admissions-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem;
}

.admissions-hero {
    margin: 0 -2rem 3rem -2rem;
}

.admissions-content-section {
    margin-bottom: 3rem;
}

.admissions-text {
    color: #334155;
    line-height: 1.8;
    font-size: 1.1rem;
}

.admissions-intro {
    margin-bottom: 3rem;
}

.admissions-intro p {
    margin-bottom: 1.5rem;
}

/* Requirements Section */
.admissions-requirements {
    margin-bottom: 3rem;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.requirements-list li {
    padding: 1rem 0 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.requirements-list li:last-child {
    border-bottom: none;
}

.requirements-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Process Section */
.admissions-process {
    margin-bottom: 3rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.process-step:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem auto;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.step-content p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.admissions-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
}

.admissions-cta h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1e293b;
}

.admissions-cta p {
    color: #475569;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* School Fees Section */
.school-fees-section {
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
}

.school-fees-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.school-fees-section .section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.school-fees-section .section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.fee-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fee-card:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.fee-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.fee-department {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 1rem;
}

.fee-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.fee-currency {
    font-size: 1.2rem;
    color: #64748b;
    margin-right: 0.25rem;
}

.fee-value {
    color: #3b82f6;
}

.fee-period {
    color: #64748b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.fee-description {
    color: #475569;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.no-fees-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 12px;
    color: #64748b;
}

/* Admission Modal */
.admission-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 2rem;
}

.admission-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.form-section h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e293b;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Security Section */
.security-section {
    background: #fef3c7;
    border: 1px solid #f59e0b;
}

.security-section h3 {
    border-bottom-color: #f59e0b;
    color: #92400e;
}

.captcha-group {
    margin-bottom: 1rem;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.captcha-question {
    font-weight: bold;
    font-size: 1.1rem;
    color: #1e293b;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.captcha-container input[type="number"] {
    flex: 1;
    min-width: 120px;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.captcha-refresh {
    background: #f59e0b;
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.captcha-refresh:hover {
    background: #d97706;
}

.captcha-refresh .dashicons {
    font-size: 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.form-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem;
    }
    
    .site-container {
        padding: 1rem;
    }
    
    .school-logo {
        height: 40px;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-section {
        margin: 0 -1rem 3rem -1rem;
        padding: 2rem 1rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-logo img {
        height: 80px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-motto {
        font-size: 1rem;
    }
    
    .hero-text {
        flex: 1;
    }
    
    .posts-grid {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0 1rem;
    }
    
    .cta-section {
        margin: 0 -1rem 3rem -1rem;
    }
    
    .about-hero {
        margin: 0 -1rem 3rem -1rem;
    }
    
    .contact-hero {
        margin: 0 -1rem 3rem -1rem;
    }
    
    .admissions-hero {
        margin: 0 -1rem 3rem -1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-container,
    .contact-info-container {
        padding: 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .school-fees-section {
        padding: 2rem 1rem;
    }
    
    .school-fees-section .section-title {
        font-size: 1.5rem;
    }
    
    .school-fees-section .section-subtitle {
        font-size: 1rem;
    }
    
    .fees-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .fee-card {
        padding: 1.5rem;
    }
    
    .fee-amount {
        font-size: 2rem;
    }
    
    .fee-department {
        font-size: 1.2rem;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .form-section h3 {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem;
    }
    
    .site-container {
        padding: 1rem;
    }
    
    .school-logo {
        height: 40px;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-section {
        margin: 0 -1rem 3rem -1rem;
        padding: 2rem 1rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-logo img {
        height: 80px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-motto {
        font-size: 1rem;
    }
    
    .hero-text {
        flex: 1;
    }
    
    .posts-grid {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0 1rem;
    }
    
    .cta-section {
        margin: 0 -1rem 3rem -1rem;
    }
    
    .about-hero {
        margin: 0 -1rem 3rem -1rem;
    }
    
    .contact-hero {
        margin: 0 -1rem 3rem -1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-container,
    .contact-info-container {
        padding: 1.5rem;
    }
}

.site-footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem;
    }
    
    .site-container {
        padding: 0.5rem;
    }
    
    .school-logo {
        height: 40px;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-section {
        margin: 0 -1rem 3rem -1rem;
        padding: 2rem 1rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-logo img {
        height: 80px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-motto {
        font-size: 1rem;
    }
    
    .hero-text {
        flex: 1;
    }
    
    .posts-grid {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0;
    }
    
    .single-post-container {
        padding: 0;
    }
    
    .cta-section {
        margin: 0 -1rem 3rem -1rem;
    }
    
    .about-hero {
        margin: 0 -1rem 3rem -1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}