/* Elegant Government Theme for Arbaz's Commerce Point */

:root {
    --primary-color: #700000;
    /* Richer Maroon */
    --primary-dark: #500000;
    --accent-color: #fcebeb;
    /* Light Maroon Tint */
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f8f9fa;
    /* Soft Gray Background */
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    /* Elegant Font */
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 14px;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Roboto', sans-serif;
    /* Structured Font for Headers */
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-bar i {
    margin-right: 5px;
    color: #ffcccc;
}

/* --- Header --- */
header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 70px;
    width: auto;
}

.institute-info h1 {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.tagline {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.sub-tagline {
    font-size: 12px;
    color: #888;
}

.msme-badge {
    display: flex;
    align-items: center;
    border: 1px solid var(--primary-color);
    padding: 5px 12px;
    border-radius: 4px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 11px;
    line-height: 1.3;
}

.msme-badge strong {
    display: block;
    font-size: 12px;
}

/* --- Navigation --- */
.navbar {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.brand-mobile {
    display: none;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex;
    width: 100%;
}

.nav-links li {
    margin-right: 5px;
}

.nav-links a {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    height: 50px;
    /* Full height for hover target */
    line-height: 50px;
    border-bottom: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(0, 0, 0, 0.1);
    border-bottom-color: #fff;
    color: #fff;
}

.nav-links a i {
    margin-right: 5px;
    font-size: 12px;
}

.login-btn {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13px;
    transition: var(--transition);
    white-space: nowrap;
}

.login-btn:hover {
    background-color: #f1f1f1;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: 0.3s;
}

/* --- Mobile Nav Styles --- */
@media (max-width: 991px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        /* Fix: Center alignment */
        gap: 15px;
        padding-bottom: 15px;
    }

    .logo-section {
        flex-direction: column;
        /* Fix: Logo and text in column */
        align-items: center;
        text-align: center;
        gap: 5px;
    }

    .logo-img {
        height: 60px;
        width: auto;
    }

    .institute-info h1 {
        font-size: 18px;
        /* Fix: Smaller text */
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .tagline {
        font-size: 12px;
        /* Fix: Smaller text */
        line-height: 1.4;
    }

    .sub-tagline {
        font-size: 11px;
        /* Fix: Smaller text */
        margin-top: 2px;
    }

    .msme-badge {
        display: none;
    }

    .brand-mobile {
        display: block;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: #fff;
        /* White drawer */
        width: 280px;
        height: 100%;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        transition: 0.3s;
        padding-top: 60px;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        color: #333;
        border-bottom: 1px solid #eee;
        height: auto;
        line-height: normal;
        padding: 15px 20px;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background-color: var(--accent-color);
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

@media (min-width: 992px) {
    .mobile-only {
        display: none;
    }
}

/* --- Main Layout & Cards --- */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
    /* Fix: Added side padding so content doesn't touch edges */
    min-height: 60vh;
}

.page-title {
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    /* Softer corners */
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(128, 0, 0, 0.3);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* --- Tables (Elegant) --- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #444;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 13px;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    /* Rounded inputs */
    font-size: 14px;
    transition: 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* --- Info Strip --- */
.info-strip {
    background-color: var(--accent-color);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.info-strip h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.btn-outline {
    display: inline-block;
    padding: 8px 25px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    /* Pill shape */
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- Footer --- */
footer {
    background-color: #2c2c2c;
    color: #ddd;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding: 50px 15px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.footer-col p {
    color: #aaa;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #bbb;
    transition: 0.2s;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
    /* Slight movement on hover */
}

.msme-mini {
    margin-top: 15px;
    color: #ffcccc;
    font-size: 12px;
}

.social-icons a {
    color: #fff;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 8px;
}

.social-icons a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    background-color: #1a1a1a;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #333;
}

.designer-creds {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

/* --- Hero Section Styles --- */
.hero-section {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    border-bottom: 4px solid var(--primary-color);
}

.hero-content {
    flex: 1.5;
}

.hero-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.hero-desc {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.highlight-text {
    font-weight: 600;
    color: var(--primary-color);
    background-color: #fff5f5;
    padding: 10px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 25px;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn-secondary {
    background-color: #666;
}

.btn-secondary:hover {
    background-color: #444;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 8px;
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        /* Force Column Layout */
        padding: 20px;
        gap: 25px;
    }

    .hero-image {
        order: 2;
        /* Ensure image is below text if not already by DOM order (it is below in DOM, but explicit stacking is good) */
        width: 100%;
    }

    .hero-content h2 {
        font-size: 22px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
}