* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #fff;
}

/* ===================== Header ===================== */
/* ===================== NAVBAR ===================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 10px rgba(70, 70, 70, 0.9);
    z-index: 999;
}

nav {
    max-width: 1340px;
    height: 100px;
    margin: auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===================== LOGO ===================== */
.logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.logo-img {
    height: 3rem;
    object-fit: contain;
}

/* ===================== NAV LINKS ===================== */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-start;
}

/* Anchor Tags & Dropdown Button */
.nav-links a,
.dropdown-btn {
    text-decoration: none;
    color: black;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 1rem;
    background: transparent;
    border: none;
}

/* Active Capsule */
.nav-links a.active,
.dropdown-btn.active {
    background-color: #235097;
    color: white !important;
    font-weight: 600;
}

/* Hover Effect */
.nav-links a:hover,
.dropdown-btn:hover {
    color: #235097;
}

/* ===================== DROPDOWN ===================== */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    margin-left: 19px;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 5px 10px rgba(70, 70, 70, 0.9);
    min-width: 200px;
    border-radius: 4px;
    z-index: 999;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: black;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

/* ===================== FOOTER ===================== */
footer {
    background-color: #161F2D;
    color: white;
    padding: 40px 20px 10px 20px;
}

.footer-sections {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: auto;
}

.footer-section {
    flex: 1 1 220px;
    margin-bottom: 20px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-section a {
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
    color: white;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* Icon Row Before Copyright */

.footer-divider-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: transparent;
    margin-bottom: 10px;
}

.footer-divider {
    border: none;
    height: 1px;
    background-color: #ccc;
    width: 90%;
    max-width: 1300px;
    opacity: 0.6;
}

.footer-icons-row {
    width: 100%;
    padding: 5px 0;
    margin-top: 30px;
    background-color: transparent;
    /* Keeps background see-through */
    display: flex;
    justify-content: center;
    /* Centers the icons horizontally */
    align-items: center;
    gap: 30px;
    /* Spacing between icons */
}

.footer-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer-icon:hover {
    transform: scale(1.15);
    /* Slight zoom on hover */
}

.copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #ccc;
}

/* ============================== Tally Page Body Styling ==================================== */

/* ===== PAGE BACKGROUND ===== */
.tally-page {
    width: 100%;
    background: linear-gradient(to bottom, #b8e2f4, #8dcfec);
    padding: 40px 0;
    margin-top: 100px;
}

/* ===== PART 1: HEADER SECTION ===== */
/* Hero section container */

.tally-hero {
    position: relative;
    background: url('image/cloud-background.webp') no-repeat center center/cover;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-top: -50px;
}

.hero-overlay {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* dark overlay for text readability */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 1350px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.hero-logo {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 180px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero-text {
    text-align: center;
    flex-grow: 1;
    padding: 0 40px;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 18px;
}

/* Support Button inside Hero */
.tally-support-btn {
    display: inline-block;
    background: #264993;
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 35px;
    font-size: 16px;
}

.tally-support-btn:hover {
    background: #235097;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(15, 33, 71, 0.3);
}

/* ===== PART 2: SERVICES SECTION ===== */
.tally-services {
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
    padding-top: 60px;
}

.tally-services h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: linear-gradient(to right, #0a1c2f, #16395c);
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
}

/* GRID LAYOUT */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* INDIVIDUAL CARD */
.service-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(38, 80, 115, 0.25);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(38, 80, 115, 0.35);
}

.service-card h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #0f2147;
}

.service-card ul {
    list-style: disc;
    padding-left: 20px;
    margin: 15px 0;
    flex-grow: 1;
    text-align: left;
}

.service-card li {
    font-size: 0.95rem;
    color: #111;
    margin-bottom: 10px;
    line-height: 1.5;
    padding-left: 5px;
}

.service-card:hover ul li:hover {
    color: #0f2147;
}

/* QUOTE BUTTON */
.quote-btn {
    margin-top: 20px;
    background: #265073;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: background 0.3s;
}

.quote-btn:hover {
    background: #1b3c59;
}

/* Tally price page section */

.pricing-section {
    font-family: 'Arial', sans-serif;
    max-width: 1350px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.main-heading {
    font-size: 2.5rem;
    background: linear-gradient(to right, #0f2147, #122e66);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 80px;
    margin-bottom: 40px;

}

.toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    gap: 20px;
}

.toggle-button {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
}

.single-user-btn {
    background: white;
    color: black;
}

.multi-user-btn {
    background: white;
    color: black;
}

.toggle-button.active {
    background: #1E3A8A;
    color: white;
    box-shadow: 0 0 0 2px white;
}

.pricing-tables {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.pricing-table {
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-table:hover {
    transform: translateY(-10px);
}

/* Three equal height sections */
.price-section {
    background: white;
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    /* Ensures minimum height */
}

.highlight-section {
    background: #FFFACD;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    /* Ensures minimum height */
}

.details-section {
    background: white;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    /* Ensures minimum height */
}

/* Content alignment */
.price-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.highlight-content,
.details-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.price-section h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    color: #333;
}

.price-amount {
    margin: 10px 0;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
}

.discounted-price {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.gst {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.effective-price {
    font-size: 14px;
    color: #666;
    margin: 10px 0 15px 0;
}

.get-quote-btn {
    background: #EF9B0F;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background 0.3s;
    margin-top: 15px;
}

.get-quote-btn:hover {
    background: #e08c00;
}

.highlight-section ul,
.details-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlight-section li {
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
    text-align: left;
}

.highlight-section li:before {
    content: "•";
    color: #EF9B0F;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.details-section h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
    text-align: left;
}

.details-section li {
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
    text-align: left;
}

.details-section li:before {
    content: "✓";
    color: #4CAF50;
    position: absolute;
    left: 0;
}

.emi-note {
    color: #1E90FF;
    font-size: 14px;
    text-align: center;
    margin-top: auto;
    font-weight: bold;
    padding-top: 10px;
}

.multi-user {
    display: none;
}

/* ========================== MOBILE RESPONSIVE of Tally Page =========================== */

/* ===================== NAVBAR - MOBILE RESPONSIVE ===================== */

@media (max-width: 992px) {
    nav {
        height: auto;
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .logo {
        justify-content: left;
        margin-bottom: 1rem;
    }

    .logo-img {
        height: 4rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        display: none;
        /* Hidden by default, shown via hamburger */
    }

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

    .nav-links a,
    .dropdown-btn {
        padding: 10px;
        border-radius: 5px;
        width: 100%;
        text-align: center;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        margin-left: 0;
        width: 100%;
        box-shadow: none;
    }

    /* Mobile menu toggle */
    .menu-toggle {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1rem;
        cursor: pointer;
        z-index: 1000;
        margin-top: 20px;
    }

    .hamburger {
        width: 30px;
        height: 3px;
        background: #235097;
        display: block;
        position: relative;
        transition: all 0.3s ease;
    }

    .hamburger:before,
    .hamburger:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: #235097;
        transition: all 0.3s ease;
    }

    .hamburger:before {
        top: -8px;
    }

    .hamburger:after {
        top: 8px;
    }

    .menu-toggle.active .hamburger {
        background: transparent;
    }

    .menu-toggle.active .hamburger:before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-toggle.active .hamburger:after {
        top: 0;
        transform: rotate(-45deg);
    }
}

/* ===================== FOOTER - MOBILE RESPONSIVE ===================== */

@media (max-width: 936px) {
    footer {
        padding: 30px 15px 10px;
    }

    .footer-sections {
        flex-direction: column;
        gap: 25px;
    }

    .footer-section {
        flex: 1 1 100%;
        text-align: center;
    }

    .footer-section h4 {
        margin-bottom: 10px;
        font-size: 1.1rem;
    }

    .footer-section a {
        margin-bottom: 6px;
        font-size: 0.9rem;
    }

    .footer-icons-row {
        gap: 15px;
        margin-top: 20px;
    }

    .footer-icon {
        width: 35px;
        height: 35px;
    }

    .copyright {
        margin-top: 20px;
        font-size: 0.8rem;
    }
}

/* ===================== Main Tally Section - MOBILE RESPONSIVE ===================== */

/* ============================== Mobile Responsive Styles ==================================== */

/* Tablet View (870px and below) */
@media only screen and (max-width: 870px) {

    /* Original Tally Sections */
    .tally-page {
        padding: 20px 0;
        margin-top: 110px;
    }

    .tally-services h1 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        padding: 15px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .service-card {
        padding: 20px;
    }

    .service-card h2 {
        font-size: 1.1rem;
    }

    .service-card li {
        font-size: 0.9rem;
    }

    .pricing-section {
        padding: 30px 15px;
    }

    .main-heading {
        font-size: 1.8rem;
        margin: 40px 0 30px;
    }

    .toggle-container {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }

    .toggle-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .pricing-tables {
        flex-direction: column;
        align-items: center;
    }

    .pricing-table {
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .price-section,
    .highlight-section,
    .details-section {
        min-height: auto;
        padding: 15px;
    }

    .price-content h3 {
        font-size: 18px;
    }

    .discounted-price {
        font-size: 22px;
    }

    .original-price {
        font-size: 14px;
    }

    .get-quote-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .highlight-section li,
    .details-section li {
        font-size: 0.9rem;
        padding: 6px 0 6px 18px;
    }
}

/* Small Mobile (400px and below) */
@media only screen and (max-width: 400px) {

    /* Original Tally Sections */
    .tally-header h1,
    .tally-services h1,
    .main-heading {
        font-size: 1.5rem;
    }

    .logo-box.left,
    .logo-box.right,
    .logo-box.center {
        width: 150px;
        height: 80px;
    }

    .service-card {
        padding: 15px;
    }

    .quote-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Tally Hero Section only Responsive Breakpoints */

/* Below 1200px */
@media (max-width: 1200px) {

    .tally-hero {
        height: 25rem;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 17px;
    }

    .tally-support-btn {
        font-size: 15px;
        padding: 13px 26px;
    }
}

/* Below 768px */
@media (max-width: 768px) {

    .tally-hero {
        height: 20rem;
    }

    .hero-logo {
        width: 140px;
        height: 140px;
        padding: 15px;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-text p {
        font-size: 15px;
    }

    .tally-support-btn {
        font-size: 14px;
        padding: 12px 22px;
        margin-top: 20px;
    }
}

/* Below 600px */
@media (max-width: 600px) {
    .hero-logo {
        width: 120px;
        height: 120px;
    }

    .hero-text h1 {
        font-size: 24px;
        margin-top: 20px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .tally-support-btn {
        font-size: 14px;
        padding: 11px 20px;
        margin-top: 25px;
    }
}

/* Below 400px */
@media (max-width: 400px) {

    .hero-logo {
        width: 100px;
        height: 100px;
        padding: 10px;
    }

    .hero-text h1 {
        font-size: 20px;
    }

    .hero-text p {
        font-size: 13px;
        margin-top: 25px;
    }

    .tally-support-btn {
        font-size: 13px;
        padding: 10px 18px;
        margin-top: 30px;
    }
}

/* Below 375px */
@media (max-width: 375px) {

    .hero-logo {
        width: 100px;
        height: 100px;
        padding: 10px;
    }

    .hero-text h1 {
        font-size: 15px;
    }

    .hero-text p {
        font-size: 10px;
        margin-top: 25px;
    }

    .tally-support-btn {
        font-size: 13px;
        padding: 10px 18px;
        margin-top: 30px;
    }
}