:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --text-color: #2d3436;
    --bg-color: #f7f1e3;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Poppins, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    padding-top: 80px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
header {
    background: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
}
.logo a {
    display: block;
    text-decoration: none;
}
.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}
.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: #fff;
    margin: 6px 0;
    transition: 0.3s;
}
nav ul {
    list-style: none;
    display: flex;
}
nav ul li {
    margin: 0 1.5rem;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}
nav ul li a:hover {
    background: var(--accent-color);
    color: var(--text-color);
}
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
}
.search-bar {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0;
}
.search-bar input {
    padding: 0.75rem 1rem;
    width: 100%;
    max-width: 300px;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
}
.search-bar button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0 25px 25px 0;
    background: var(--accent-color);
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
}
.search-bar button:hover {
    background: var(--secondary-color);
    color: #fff;
}
.calculator-section {
    padding: 4rem 0;
}
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.box {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.box:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.box h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.box p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.calendar-icon {
    width: 80px;
    height: 80px;
    margin: 1rem auto;
}
.calendar-icon svg {
    width: 100%;
    height: 100%;
}
.instant-result .results {
    margin-top: 1.5rem;
    padding: 1rem;
    border-left: 4px solid var(--secondary-color);
}
.instant-result .results p {
    font-size: 1.2rem;
}
.instant-result .results span {
    color: var(--primary-color);
    font-weight: 600;
}
.countdown {
    font-size: 1.2rem;
    color: var(--secondary-color);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}
.custom-calculator form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.custom-calculator label {
    font-weight: 600;
    font-size: 1rem;
}
.custom-calculator input {
    padding: 0.75rem;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1rem;
}
.custom-calculator input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
}
.custom-calculator button {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
}
.custom-calculator button:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}
.custom-result {
    margin-top: 1rem;
    padding: 1rem;
    border-left: 4px solid var(--secondary-color);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.custom-result.show {
    opacity: 1;
}
.custom-result p {
    font-size: 1.2rem;
}
.custom-result span {
    color: var(--primary-color);
    font-weight: 600;
}
.error-message {
    color: red;
    font-size: 1rem;
    margin-top: 0.5rem;
}
.related-links,
.additional-info,
.recent-calculations,
.share-result,
.faq-section,
.guide-section {
    margin-top: 2rem;
}
.related-links h3,
.additional-info h3,
.recent-calculations h3,
.share-result h3,
.faq-section h3,
.guide-section h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.related-links a,
.recent-calculations a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}
.related-links a:hover,
.recent-calculations a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.date-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.date-table th,
.date-table td {
    padding: 0.75rem;
    border: 1px solid var(--secondary-color);
    text-align: left;
}
.date-table th {
    background: var(--accent-color);
    color: var(--text-color);
    font-weight: 600;
}
.date-table .highlight {
    background: var(--accent-color);
}
.time-units {
    margin: 1rem 0;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
}
.manual-instructions ol,
.guide-section ol {
    margin-left: 1.5rem;
    font-size: 1.1rem;
}
.share-result input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1rem;
}
.share-result button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    margin: 0.5rem 0.5rem 0 0;
    min-width: 44px;
    min-height: 44px;
}
.share-result button:hover {
    background: var(--primary-color);
    color: #fff;
}
.faq-section details {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.faq-section summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-color);
}
.faq-section p {
    margin-top: 0.5rem;
    font-size: 1.1rem;
}
.guide-section img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 8px;
}
.breadcrumb {
    margin-top: 1rem;
}
.breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 1rem 0;
}
.breadcrumb li+li:before {
    content: " > ";
    padding: 0 0.5rem;
}
.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
footer {
    background: var(--primary-color);
    color: #fff;
    padding: 3rem 0;
    text-align: left;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: 0.5rem;
}
.footer-section a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.footer-section a:hover {
    color: var(--accent-color);
}
.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    .hamburger {
        display: block;
    }
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.5s ease;
    }
    nav.active {
        right: 0;
    }
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    nav ul li {
        margin: 1.5rem 0;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .search-bar {
        flex-direction: column;
        gap: 1rem;
    }
    .search-bar input,
    .search-bar button {
        border-radius: 25px;
        max-width: 100%;
        width: 100%;
    }
    .calculator-container {
        grid-template-columns: 1fr;
    }
    .box {
        margin: 1rem 0;
    }
    .logo span {
        font-size: 1.2rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-section {
        margin-bottom: 1.5rem;
    }
}