/* ===================================
   IPMS - Institute of Professional & Management Studies
   ADVANCED PREMIUM STYLESHEET
   =================================== */

/* ===== CSS VARIABLES & THEME ===== */
:root {
    /* Brand Colors - Deep Corporate Blue & Gold/Orange Accent */
    --primary-color: #0f172a;       /* Darkest Slate/Blue */
    --primary-light: #1e293b;       /* Lighter Slate */
    --secondary-color: #2563eb;     /* Professional Blue */
    --accent-color: #f59e0b;        /* Gold/Amber for Premium feel */
    --accent-hover: #d97706;
    
    /* Neutral Colors */
    --dark-color: #0f172a;
    --text-color: #334155;
    --text-light: #64748b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --backdrop-blur: blur(10px);

    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.text-center { text-align: center; }
.text-primary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.bg-light { background-color: var(--light-bg); }
.bg-white { background-color: var(--white); }
.flex { display: flex; }
.flex-column { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.section { padding: 5rem 0; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}
.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}
.btn-accent {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.39);
}
.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ===== TOP BAR (Premium Feature) ===== */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-info span { margin-right: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.top-social a { margin-left: 1rem; color: var(--white); opacity: 0.8; }
.top-social a:hover { opacity: 1; color: var(--accent-color); }

/* ===== HEADER & NAVIGATION ===== */
header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logo-img {
    height: 50px;
    width: auto;
}
.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}
.logo-text p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}
.cert-badge {
    font-size: 0.65rem;
    background: var(--accent-color);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 5px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-item {
    position: relative;
    padding: 10px 0;
}
.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    font-size: 1rem;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 260px;
    box-shadow: var(--shadow-premium);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    border-top: 3px solid var(--secondary-color);
}
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li {
    border-bottom: 1px solid var(--light-bg);
}
.dropdown-menu li:last-child { border-bottom: none; }
.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: var(--transition);
}
.dropdown-link:hover {
    background-color: var(--light-bg);
    color: var(--secondary-color);
    padding-left: 25px;
}

/* Mobile Menu Trigger */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 58, 138, 0.8)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 8rem 0 6rem;
    text-align: center;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* ===== INFO/STATS CARDS (Overlap Hero) ===== */
.stats-section {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    margin-bottom: 4rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid var(--secondary-color);
}
.stat-card:hover { transform: translateY(-10px); }
.stat-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.stat-card h3 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--dark-color); }
.stat-card p { color: var(--text-light); margin: 0; }

/* ===== SECTION TITLES ===== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ===== COURSES GRID ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.course-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.course-card:hover {
    box-shadow: var(--shadow-premium);
    transform: translateY(-5px);
}
.course-image {
    height: 180px;
    background: #cbd5e1;
    position: relative;
    overflow: hidden;
}
.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-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.course-content { padding: 1.5rem; }
.course-content h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.course-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-bg);
}
.course-meta i { color: var(--secondary-color); margin-right: 5px; }

/* ===== SERVICES & FEATURES ===== */
.feature-box {
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.feature-box:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* ===== CONTACT & FORMS ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}
.contact-info-card {
    background: var(--primary-color);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
}
.info-item {
    display: flex;
    margin-bottom: 2rem;
    align-items: flex-start;
}
.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1rem;
    margin-top: 5px;
}
.contact-form-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-color);
    color: #cbd5e1;
    padding-top: 5rem;
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-about h3 { color: var(--white); margin-bottom: 1.5rem; }
.footer-logo { font-size: 1.8rem; font-weight: 700; color: var(--white); display: block; margin-bottom: 1rem; }
.footer-links h4 { color: var(--white); margin-bottom: 1.5rem; }
.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links a:hover { color: var(--accent-color); padding-left: 5px; }
.copyright {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.5rem; }
    .stats-section { margin-top: 0; padding-top: 3rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    /* Mobile Menu */
    .menu-toggle { display: block; z-index: 1001; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .nav-links.active { right: 0; }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--light-bg);
        width: 100%;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nav-item.active .dropdown-menu { display: block; }
}

@media (max-width: 600px) {
    .top-bar { display: none; } /* Hide on very small screens or stack */
    .hero { padding: 5rem 0 3rem; }
    .footer-grid { grid-template-columns: 1fr; }
}
