/**
 * SkillCare - Main Stylesheet
 * Professional Education Board Website
 */

/* ===== CSS Variables ===== */
:root {
    --primary: #1e5bb5;
    --primary-dark: #164a94;
    --primary-light: #4a8eff;
    --secondary: #00a86b;
    --accent: #f39c12;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border: #dee2e6;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-sm: 8px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: #444;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* ===== Buttons ===== */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 91, 181, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-success {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
}

/* ===== Top Bar ===== */
.top-bar {
    font-size: 13px;
}

/* ===== Navigation ===== */
.navbar {
    padding: 12px 0;
    transition: var(--transition);
}

.navbar-brand {
    font-family: var(--font-heading);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    color: var(--dark) !important;
    padding: 8px 16px !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.navbar.scrolled {
    padding: 6px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0d2d5a 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-btns .btn {
    padding: 14px 36px;
    font-size: 15px;
    margin-right: 12px;
    margin-bottom: 10px;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: white;
}

.hero-shapes .shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.hero-shapes .shape-2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    left: -50px;
}

.hero-shapes .shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 30%;
}

/* ===== Stats Counter ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stat-item {
    text-align: center;
    color: white;
    padding: 20px;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    background: rgba(30, 91, 181, 0.1);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Course Cards ===== */
.course-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.course-body {
    padding: 25px;
}

.course-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.course-duration {
    font-size: 13px;
    color: var(--gray);
}

.course-fee {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===== Feature Boxes ===== */
.feature-box {
    background: white;
    padding: 35px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    margin-top: 30px;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: absolute;
    top: -40px;
    left: 30px;
    object-fit: cover;
}

.testimonial-content {
    padding-top: 40px;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}

.testimonial-course {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

/* ===== Announcement Cards ===== */
.announcement-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
    height: 100%;
}

.announcement-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.announcement-date {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.announcement-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.announcement-excerpt {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
}

/* ===== About Page ===== */
.about-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0 60px;
    color: white;
    text-align: center;
}

.about-hero h1 {
    color: white;
    font-size: 2.5rem;
}

.breadcrumb-nav {
    background: var(--light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

/* ===== Contact Page ===== */
.contact-info-box {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.contact-info-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ===== Verification Page ===== */
.verification-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0 60px;
    color: white;
    text-align: center;
}

.verification-box {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 700px;
    margin: -40px auto 0;
    position: relative;
    z-index: 10;
}

.verification-result {
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 30px;
}

.result-valid {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.result-invalid {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== Back to Top ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 100px;
    z-index: 998;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Footer ===== */
.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: var(--transition);
    display: block;
}

.footer-links a:hover {
    opacity: 1 !important;
    padding-left: 5px;
    color: white !important;
}

.hover-opacity:hover {
    opacity: 1 !important;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== Page Banner ===== */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
}

.page-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
}

/* ===== Gallery ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 91, 181, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===== FAQ Accordion ===== */
.accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-button {
    font-weight: 600;
    padding: 18px 25px;
}

.accordion-button:not(.collapsed) {
    background: var(--primary);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
}

/* ===== News Cards ===== */
.news-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

/* ===== Admission Page ===== */
.admission-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.admission-feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(30, 91, 181, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 15px;
    flex-shrink: 0;
}

/* ===== Loading Spinner ===== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ===== Utility Classes ===== */
.bg-light-soft {
    background: #f0f4f8;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-soft {
    border-color: var(--border) !important;
}

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

::-webkit-scrollbar-track {
    background: var(--light);
}

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

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

/* ===== Selection ===== */
::selection {
    background: var(--primary);
    color: white;
}

/* ===== Print Styles ===== */
@media print {
    .top-bar,
    .navbar,
    .footer,
    .whatsapp-float,
    #backToTop {
        display: none !important;
    }
}
