/* Modern Orange & Blue Theme */
:root {
    --primary-blue: #0056b3;
    --primary-orange: #ff6600;
    --secondary-blue: #004494;
    --secondary-orange: #e65c00;
    --accent-blue: #e6f0ff;
    --accent-orange: #fff0e6;
    --text-dark: #333333;
    --text-light: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--gray-100);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--text-light);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--text-light);
}

/* Navbar */
.navbar {
    background-color: #1e2340;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.logo span {
    color: var(--primary-orange);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-orange);
}

.nav-link.active {
    color: var(--primary-orange);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-orange);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--text-light);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: var(--accent-blue);
    color: var(--primary-blue);
}

.dropdown>.nav-link::after {
    content: ' ▼';
    font-size: 0.8em;
    margin-left: 4px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/hero-indian.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 5rem 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-small {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-indian.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 6rem 0 3rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Cards */
.card {
    background: var(--text-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Calculator Specifics */
.calculator-section {
    padding: 4rem 0;
}

.calculator-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--text-light);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.calc-header {
    background: var(--primary-orange);
    color: var(--text-light);
    padding: 1.5rem;
    text-align: center;
}

.calc-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.result-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--accent-blue);
    border-radius: 8px;
    text-align: center;
    display: none;
    /* Hidden by default */
}

.result-box.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.premium-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-top: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 3rem 0;
    margin-top: auto;
}

/* Responsive Design */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

@media screen and (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #1e2340;
        box-shadow: var(--shadow-md);
        padding: 1rem;
        gap: 0;
        z-index: 1000;
        align-items: stretch;
        /* Fix for centered text */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        /* Add consistent padding for touch targets */
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Subtle separator */
    }

    /* Dropdown on mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        background: var(--gray-100);
        display: none;
    }

    .dropdown.active .dropdown-menu,
    .dropdown:hover .dropdown-menu {
        display: block;
    }

    /* Layout Stacking */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    footer .container>div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Admin/Owner Dashboard */
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .row {
        flex-direction: column;
    }

    .card {
        padding: 1.5rem;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* @media  (max-width: 370px) {
    .card{
        padding: 1rem;
    }
} */

/* NEW LOGO STYLES */
/* Container for the whole logo layout */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: Arial, Helvetica, sans-serif;
}

/* Dark blue box holding the icon and main text */
.logo-box {
    background-color: #1e2340;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* SVG Icon styling */
.logo-icon {
    width: 45px;
    height: 45px;
}

.orange-shape {
    fill: #ea6f25;
}

.gray-shape {
    fill: #e5e6e8;
}

/* Text block layout inside the blue box */
.logo-text {
    display: flex;
    flex-direction: column;
}

/* 'Capital Plus' main heading */
.brand-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
}

.capital {
    color: #ffffff;
}

.plus {
    color: #ea6f25;
    margin-left: 4px;
}

/* 'Investment' subheading */
.investment {
    color: #ffffff;
    font-size: 11px;
    font-weight: 400;
    text-align: right;
    margin-top: 3px;
    letter-spacing: 0.5px;
}

/* Tagline outside the blue box */
.tagline {
    color: #c4805f;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-style: italic;
    font-size: 13px;
    margin-top: 5px;
    margin-left: 2px;
}