* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #06b6d4;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
    font-size: 16px;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 0.5rem 0; /* Reduced from 0.75rem */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

#logoImage{
    height: 48px; /* Adjusted for the new proportions */
    width: 50px; /* Adjusted for the new proportions */
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(30, 58, 138, 0.1));
}
#cs{
    font-size: .9rem; /* Reduced from 1.5rem */
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.1rem; /* Reduced gap */
} 
/* Removed erroneous .nav-container block that caused syntax error */

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 50px; /* Reduced from 60px */
}

.logo {
    font-size: 1.3rem; /* Slightly reduced from 1.5rem */
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Reduced gap */
}

.logo i {
    font-size: 1.5rem; /* Reduced from 1.8rem */
    color: var(--secondary-color);
}

.logo svg {
    height: 40px;
    width: 50px; /* Adjusted for the new proportions */
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(30, 58, 138, 0.1));
}

.logo:hover svg {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(30, 58, 138, 0.2));
}

.logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 0.6rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(30, 58, 138, 0.05);
}

.nav-link i.fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menus */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 300px;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    border-left: 3px solid transparent;
}

.dropdown a:hover {
    background: rgba(30, 58, 138, 0.05);
    color: var(--primary-color);
    border-left-color: var(--secondary-color);
    padding-left: 1.8rem;
}

/* Special multi-column dropdown for compliance */
.compliance-dropdown {
    min-width: 500px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 1rem 0;
}

.compliance-dropdown a {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

/* Tax & RBI dropdown styling */
.tax-rbi-dropdown {
    min-width: 350px;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(30, 58, 138, 0.05);
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--dark-color);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -4px);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 100px 2rem 100px; /* Reduced top padding from 120px to 100px */
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::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 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.1"/></svg>') repeat;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-15px) rotate(-1deg); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    animation: slideInUp 1s ease-out;
}

.hero-text p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: slideInUp 1s ease-out 0.2s both;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: slideInUp 1s ease-out 0.4s both;
    font-size: 1.1rem;
}

.cta-button:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Hero Contact Form */
.hero-contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 1s ease-out 0.6s both;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form select {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form textarea {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.contact-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.contact-form select option {
    background: var(--dark-color);
    color: var(--white);
}

.form-submit-btn {
    background: var(--white);
    color: var(--primary-color);
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.form-submit-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-submit-btn:disabled {
    background: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
}

.form-submit-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: none;
}

.contact-form .loading {
    opacity: 0.7;
    pointer-events: none;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content */
.main-content {
    background: var(--white);
    margin-top: -40px;
    border-radius: 24px 24px 0 0;
    position: relative;
    z-index: 10;
    padding: 4rem 2rem 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin: 4rem 0 3rem;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.service-card p {
    color: var(--gray-color);
    line-height: 1.6;
    font-size: 1rem;
}

/* Blog Section */
.blog-section {
    background: var(--gradient-secondary);
    padding: 4rem 2rem;
    margin: 4rem 0;
    border-radius: 20px;
}

.blog-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    max-width: 600px;
}

.blog-search {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.blog-search input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 50px;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.blog-search input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.blog-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
    font-size: 1.1rem;
}

.search-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.keyword-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-weight: 500;
}

.keyword {
    background: var(--white);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 58, 138, 0.2);
    font-weight: 500;
}

.keyword:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.admin-access {
    width: 20px;
    height: 20px;
    opacity: 0;
    cursor: pointer;
}

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

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

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

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-content {
    padding: 2rem;
}

.blog-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-card p {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Admin Dashboard */
.admin-dashboard {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.admin-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.close-admin {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: color 0.3s ease;
}

.close-admin:hover {
    color: var(--dark-color);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--light-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-color);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.blog-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

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

.submit-btn {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cancel-btn {
    background: var(--gray-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cancel-btn:hover {
    background: var(--dark-color);
}

/* Manage Posts */
.post-item {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.post-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-btn,
.delete-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.edit-btn {
    background: var(--secondary-color);
    color: var(--white);
}

.edit-btn:hover {
    background: var(--primary-color);
}

.delete-btn {
    background: var(--danger-color);
    color: var(--white);
}

.delete-btn:hover {
    background: #dc2626;
}

.post-excerpt {
    color: var(--gray-color);
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Edit Modal */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.close-edit {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: color 0.3s ease;
}

.close-edit:hover {
    color: var(--dark-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Service Pages */
.service-page {
    display: none;
}

.service-page.active {
    display: block;
}

.service-hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 100px 2rem 60px;
    text-align: center;
}

.service-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.service-details {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
}

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

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.feature i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.feature-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-content p {
    color: var(--gray-color);
    line-height: 1.5;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: rgba(248, 250, 252, 0.8);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(248, 250, 252, 0.1);
    color: rgba(248, 250, 252, 0.6);
}

/* Success/Error Messages */
.success-message {
    background: var(--success-color);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    display: none;
}

.error-message {
    background: var(--danger-color);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    display: none;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Quill Editor Styling */
.ql-toolbar {
    border-radius: 8px 8px 0 0 !important;
    border-color: rgba(226, 232, 240, 0.8) !important;
}

.ql-container {
    border-radius: 0 0 8px 8px !important;
    border-color: rgba(226, 232, 240, 0.8) !important;
    font-size: 1rem !important;
}

.ql-editor {
    min-height: 200px;
    padding: 1rem !important;
}

/* Blog Article Page Styles */
.blog-article-header {
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.blog-article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.article-meta {
    display: flex;
    gap: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    position: relative;
}

.article-image-container {
    margin-bottom: 2rem;
    text-align: center;
}

.article-image-container img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-color);
}

.article-body h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.5rem;
}

.article-body h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
    font-weight: 600;
}

.article-body h4 {
    color: var(--dark-color);
    font-size: 1.2rem;
    margin: 1.2rem 0 0.6rem;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.article-body ul,
.article-body ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-body strong {
    color: var(--primary-color);
    font-weight: 600;
}

.article-body blockquote {
    background: var(--light-color);
    border-left: 4px solid var(--secondary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Related Articles */
.related-articles {
    background: var(--gradient-secondary);
    padding: 3rem;
    border-radius: 20px;
    margin: 3rem 0;
}

.related-articles h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.related-article-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card-content {
    padding: 1.5rem;
}

.related-card-content h4 {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.related-card-content p {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article CTA */
.article-cta {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin: 3rem 0;
}

.article-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.article-cta .cta-button {
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.article-cta .cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* FAQ Section Styles */
.faq-section {
    background: var(--gradient-secondary);
    padding: 3rem 2rem;
    margin: 3rem 0;
    border-radius: 20px;
}

.faq-section h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: rgba(30, 58, 138, 0.05);
    color: var(--primary-color);
}

.faq-question::after {
    content: '\f067'; /* Plus icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '\f068'; /* Minus icon */
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--light-color);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 1.5rem 2rem;
    color: var(--gray-color);
    line-height: 1.6;
    font-size: 1rem;
}

.faq-answer-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer-content li {
    margin-bottom: 0.5rem;
}

.faq-answer-content strong {
    color: var(--primary-color);
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 2rem 1rem;
        margin: 2rem 1rem;
    }
    
    .faq-question {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-answer-content {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Responsive Design for Articles */
@media (max-width: 768px) {
    .blog-article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 1rem;
    }
    
    .article-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .related-articles {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }
    
    .article-cta {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-article-header h1 {
        font-size: 1.5rem;
    }
    
    .article-content {
        padding: 1.5rem 1rem;
    }
    
    .article-body h2 {
        font-size: 1.4rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        box-shadow: var(--shadow-xl);
        border-radius: 0 0 16px 16px;
        padding: 1rem 0;
        border-top: 1px solid rgba(226, 232, 240, 0.8);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 1rem 2rem;
        justify-content: space-between;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--light-color);
        margin: 0 1rem;
        border-radius: 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item:hover .dropdown,
    .nav-item.active .dropdown {
        max-height: 600px;
    }

    .dropdown a {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 90px 1rem 80px; /* Adjusted for smaller navbar */
        min-height: 90vh;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-contact-form {
        padding: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .compliance-dropdown,
    .tax-rbi-dropdown {
        grid-template-columns: 1fr;
        min-width: auto;
    }

    .blog-controls {
        flex-direction: column;
        align-items: center;
    }

    .blog-search-container {
        width: 100%;
    }

    .admin-modal {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero {
        padding: 80px 1rem 60px; /* Further adjusted for mobile */
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .main-content {
        padding: 3rem 1rem 2rem;
    }

    .service-card,
    .service-details {
        padding: 1.5rem;
    }

    .hero-contact-form {
        padding: 1.5rem;
    }

    .search-keywords {
        justify-content: center;
    }
}