
/* ===================================
   TAX UPDATES SECTION
   =================================== */

.tax-updates-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #eef4ff 0%, #ffffff 50%, #fff5e8 100%);
}

.update-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(234, 98, 84, 0.1);
    color: var(--accent);
    font-family: var(--ff-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 50px;
    text-transform: uppercase;
}

.update-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--transition-base) !important;
    position: relative;
}

.update-card:hover {
    transform: translateY(-10px) translateX(5px) !important;
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.update-number {
    width: 50px;
    height: 50px;
    background-color: var(--accent-soft);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    transition: var(--transition-base);
}

.update-card:hover .update-number {
    background-color: var(--accent);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.update-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.update-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

.update-featured {
    position: relative;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-lg);
}


.update-featured-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.update-featured:hover .update-featured-img {
    transform: scale(1.1);
}


.update-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 46, 90, 0.95) 0%, rgba(26, 46, 90, 0.7) 50%, rgba(26, 46, 90, 0.3) 100%);
    z-index: 1;
}

.update-featured-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    color: var(--white);
}

.update-featured-badge {
    font-family: var(--ff-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fbbf24;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.update-featured-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin: 0;
}

/* ===================================
   TAX RATES SECTION
   =================================== */

.tax-rates-section {
    padding: 80px 0;
    background-color: #f0f4ff;
}

.rate-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.rate-tab {
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark-color);
    background-color: var(--white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
    transition: var(--transition-base);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.rate-tab:hover {
    background-color: var(--light-color);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: var(--primary-color);
}

.rate-tab.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.rate-tab i {
    font-size: 1rem;
}

.rate-panels {
    position: relative;
}

.rate-panel {
    display: none;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInPanel 0.5s var(--ease-out);
}

.rate-panel.active {
    display: block;
}

@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rate-panel-header {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
}

.rate-panel-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(47, 62, 122, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.rate-panel-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.rate-panel-meta {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

.rate-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.rate-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.rate-table thead {
    background-color: var(--primary);
    color: var(--white);
}

.rate-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.rate-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.rate-table tbody tr:last-child {
    border-bottom: none;
}

.rate-table tbody tr:hover {
    background-color: rgba(47, 62, 122, 0.03);
}

.rate-table tbody tr:nth-child(even) {
    background-color: var(--light-color);
}

.rate-table tbody tr:nth-child(even):hover {
    background-color: rgba(47, 62, 122, 0.05);
}

.rate-table td {
    padding: 1rem 1.25rem;
    color: var(--dark-color);
}

.rate-badge {
    display: inline-block;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.875rem;
    white-space: nowrap;
}

.rate-badge.nil {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.rate-badge.low {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.rate-badge.medium {
    background-color: rgba(255, 193, 7, 0.15);
    color: #d39e00;
}

.rate-badge.high {
    background-color: rgba(234, 98, 84, 0.1);
    color: var(--accent);
}

.rate-notes {
    background-color: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-left: 4px solid #ffc107;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2rem;
}

.rate-notes h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #d39e00;
    margin-bottom: 1rem;
}

.rate-notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rate-notes li {
    font-size: 0.9rem;
    color: var(--dark-color);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.rate-notes li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ffc107;
    font-weight: 700;
    font-size: 1.25rem;
}

.constitutional-image-wrapper {
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.constitutional-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .update-featured {
        min-height: 350px;
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .tax-updates-section {
        padding: 60px 0;
    }

    .update-card {
        padding: 1.5rem;
    }

    .update-title {
        font-size: 1rem;
    }

    .update-featured {
        min-height: 300px;
    }

    .update-featured-title {
        font-size: 1.5rem;
    }

    .tax-rates-section {
        padding: 60px 0;
    }

    .rate-tabs-wrapper {
        flex-direction: column;
    }

    .rate-tab {
        width: 100%;
        justify-content: center;
    }

    .rate-panel {
        padding: 1.5rem;
    }

    .rate-panel-header {
        flex-direction: column;
        text-align: center;
    }

    .rate-panel-icon {
        margin: 0 auto;
    }

    .rate-panel-header h3 {
        font-size: 1.25rem;
    }

    .rate-table {
        font-size: 0.85rem;
    }

    .rate-table th,
    .rate-table td {
        padding: 0.75rem 0.75rem;
    }
}


/* ============================================
   COMPLIANCE SECTION
   ============================================ */
.compliance-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #fef5f4 100%) !important;
    position: relative;
    overflow: hidden;
}

.compliance-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: var(--transition-base);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.compliance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(37, 54, 121, 0.05), rgba(242, 103, 93, 0.05));
    transition: height 0.5s var(--ease-out);
    z-index: 0;
}

.compliance-card:hover::before {
    height: 100%;
}

.compliance-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(37, 54, 121, 0.15);
    border-color: var(--secondary-color);
}

.compliance-card-header {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.compliance-icon {
    font-size: 42px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: var(--transition-base);
}

.compliance-card:hover .compliance-icon {
    transform: scale(1.1) rotate(10deg);
    color: var(--white);
    background-color: var(--secondary-color);
}

.compliance-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    font-family: var(--ff-display);
    line-height: 1.4;
}

.compliance-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Compliance Journey Image */
.compliance-journey-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.compliance-journey-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 54, 121, 0.1), transparent);
    z-index: 1;
    transition: var(--transition-base);
}

.compliance-journey-image:hover::before {
    background: linear-gradient(135deg, rgba(242, 103, 93, 0.1), transparent);
}

.compliance-journey-image img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    transition: var(--transition-base);
}

.compliance-journey-image:hover img {
    transform: scale(1.08);
}

/* Compliance Checklist */
.compliance-checklist {
    margin: 0;
    padding: 0;
}

.compliance-checklist li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--dark-color);
    line-height: 1.6;
}

.compliance-checklist li i {
    font-size: 20px;
    color: var(--secondary-color);
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.compliance-checklist li:hover i {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.compliance-checklist li span {
    flex: 1;
}
/* ===================================
   DUE DATES SECTION
   =================================== */

.due-dates-section {
    padding: 80px 0;
    background-color: var(--white);
}

.due-dates-table-wrapper {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

.due-dates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 0;
}

.due-dates-table thead {
    background-color: var(--primary);
    color: var(--white);
}

.due-dates-table thead th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    border: none;
}

.due-dates-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.due-dates-table tbody tr:last-child {
    border-bottom: none;
}

.due-dates-table tbody tr:hover {
    background-color: rgba(47, 62, 122, 0.03);
}

.due-dates-table tbody tr:nth-child(even) {
    background-color: var(--light-color);
}

.due-dates-table tbody tr:nth-child(even):hover {
    background-color: rgba(47, 62, 122, 0.05);
}

.due-dates-table tbody tr.important-row {
    background-color: rgba(234, 98, 84, 0.05);
    border-left: 4px solid var(--accent);
}

.due-dates-table tbody tr.important-row:hover {
    background-color: rgba(234, 98, 84, 0.08);
}

.due-dates-table tbody td {
    padding: 1rem 1.5rem;
    color: var(--dark-color);
    vertical-align: top;
}

.due-date-col {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    min-width: 150px;
}

.filing-col {
    font-weight: 500;
    color: var(--dark-color);
    min-width: 200px;
}

.act-col {
    color: var(--accent) !important;
    font-size: 0.85rem;
    min-width: 250px;
    font-weight: 600;
}

.remark-col {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.6;
    min-width: 300px;
}

.due-dates-footer {
    padding: 2rem;
    background-color: var(--light-color);
    border-top: 2px solid var(--border-light);
}

.due-dates-footer .alert {
    border-radius: var(--radius-md);
    border: none;
    background-color: rgba(23, 162, 184, 0.08);
    border-left: 4px solid #17a2b8;
}

.due-dates-footer .alert-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #0c5460;
    margin-bottom: 0.75rem;
}

.due-dates-footer .alert ul {
    list-style: disc;
    margin-bottom: 0;
}

.due-dates-footer .alert li {
    font-size: 0.9rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.due-dates-footer .alert li:last-child {
    margin-bottom: 0;
}

/* Highlight for specific dates */
.due-dates-table tbody tr:has(.due-date-col:contains("31 July")),
.due-dates-table tbody tr:has(.due-date-col:contains("15 June")),
.due-dates-table tbody tr:has(.due-date-col:contains("30 Sept")) {
    position: relative;
}

/* Print Styles */
@media print {
    .due-dates-table {
        font-size: 0.75rem;
    }
    
    .due-dates-table thead {
        background-color: #1a2e5a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .due-dates-table tbody tr {
        page-break-inside: avoid;
    }
    
    .due-dates-footer .btn {
        display: none;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .due-dates-table {
        font-size: 0.85rem;
    }
    
    .due-dates-table thead th,
    .due-dates-table tbody td {
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 991px) {
    .due-dates-section {
        padding: 60px 0;
    }
    
    .due-dates-table {
        font-size: 0.8rem;
    }
    
    .due-dates-table thead th,
    .due-dates-table tbody td {
        padding: 0.875rem 1rem;
    }
    
    .due-date-col {
        min-width: 120px;
    }
    
    .filing-col {
        min-width: 180px;
    }
    
    .act-col {
        min-width: 200px;
    }
    
    .remark-col {
        min-width: 250px;
    }
}

@media (max-width: 767px) {
    .due-dates-table {
        font-size: 0.75rem;
    }
    
    .due-dates-table thead th,
    .due-dates-table tbody td {
        padding: 0.75rem 0.875rem;
    }
    
    .due-date-col {
        min-width: 100px;
    }
    
    .filing-col {
        min-width: 150px;
    }
    
    .act-col {
        min-width: 180px;
        font-size: 0.75rem;
    }
    
    .remark-col {
        min-width: 200px;
        font-size: 0.75rem;
    }
    
    .due-dates-footer {
        padding: 1.5rem;
    }
    
    .due-dates-footer .alert {
        font-size: 0.85rem;
    }
    
    .due-dates-footer .alert li {
        font-size: 0.8rem;
    }
    
    .due-dates-footer .btn {
        width: 100%;
    }
}

/* Sticky header on scroll (optional enhancement) */
@media (min-width: 992px) {
    .due-dates-table-wrapper {
        position: relative;
    }
    
    .table-responsive {
        max-height: 600px;
        overflow-y: auto;
    }
    
    .due-dates-table thead {
        position: sticky;
        top: 0;
        z-index: 10;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* Smooth scroll animation for table rows */
@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.due-dates-table tbody tr {
    animation: fadeInRow 0.3s ease-out;
    animation-fill-mode: both;
}

.due-dates-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.due-dates-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.due-dates-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.due-dates-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.due-dates-table tbody tr:nth-child(5) { animation-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
    .due-dates-table tbody tr {
        animation: none;
    }
}

.cta-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.cta-note {
    font-size: 1.125rem;
    color: var(--white);
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    
    .compliance-journey-image img {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    /* Mobile Table Scroll */
    .table-responsive {
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }
    
    .rate-table thead th,
    .rate-table tbody td {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .compliance-card {
        padding: 25px 20px;
    }
    
    .compliance-icon {
        font-size: 36px;
    }
    
    .compliance-card h3 {
        font-size: 18px;
    }
    
    .compliance-journey-image img {
        min-height: 280px;
    }
    
    /* Due Dates Table Mobile */
    .due-dates-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .due-dates-table {
        min-width: 900px;
    }
    
    .due-dates-table thead th,
    .due-dates-table tbody td {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* ============================================
   ADDITIONAL UTILITY ANIMATIONS
   ============================================ */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.rate-panel-inner:hover::before {
    animation: shimmer 3s infinite;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(242, 103, 93, 0.1), 
        transparent
    );
    background-size: 1000px 100%;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading State for Tables */
.rate-table tbody tr,
.due-dates-table tbody tr {
    animation: fadeIn 0.5s ease-in-out;
    animation-fill-mode: both;
}

.rate-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.rate-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.rate-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.rate-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.rate-table tbody tr:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .rate-tab,
    .compliance-card:hover,
    .tax-update-item:hover {
        box-shadow: none !important;
        transform: none !important;
    }
}