@import url('responsive.css');

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

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .container {
        padding: 0 15px;
    }
}


/* Navigation Styles - Removed (using header.css) */

/* Breadcrumb */
.breadcrumb {
    padding: 10px 80px;
    background-color: #f9f9f9;
    font-size: 14px;
    margin-bottom: 0;
}

.breadcrumb a {
    color: #0073b7;
    text-decoration: none;
}

.breadcrumb span {
    color: #666;
}

/* Hero Section */
/* Hero Section Styles */
.hero {
    display: flex;
    background: linear-gradient(to left, #bebebe, #242424f0) !important;
    color: white;
    padding: 120px 80px 40px 80px;
    min-height: 380px;
    align-items: center;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-text h2,
.hero-text p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: #e0e0e0;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 10px;
}

.hero-image-container {
    flex-shrink: 0;
    width: 320px;
    height: 320px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 40px 20px;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 30px;
        max-width: 100%;
    }

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

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .hero-image-container {
        width: 240px;
        height: 240px;
    }
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    background-color: #e6e6e6;
    border-bottom: 1px solid #ccc;
}

.tab-button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    text-align: center;
    flex: 1;
    color: #424242;
    transition: color 0.3s, border-bottom 0.3s;
}

.tab-button.active {
    color: #484848;
    border-bottom: 3px solid #656565;
}

.tab-button:hover {
    background-color: #fffefe;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
}

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

.tab-content-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
}

@media (min-width: 768px) {
    .tab-content-inner {
        display: grid;
        grid-template-columns: 200px 1fr;
        column-gap: 30px;
        padding-left: 30px;
    }
}

@media (min-width: 1024px) {
    .tab-content-inner {
        grid-template-columns: 15% 1fr;
        column-gap: 50px;
        padding-left: 50px;
    }
}

/* Side Navigation */
.side-nav {
    width: 100%;
    border-bottom: none;
    display: block;
}

.side-nav-item {
    padding: 12px 15px;
    margin-bottom: 1px;
    cursor: pointer;
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
}

.side-nav-item.active {
    color: #cc0000;
    font-weight: bold;
    border-bottom: none;
}

.side-nav-item:hover {
    background-color: #7e7e7e58;
}

/* Content Area */
.content-area {
    width: 100%;
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
}

/* Tables */
table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
    table-layout: fixed;
    word-wrap: break-word;
}


th,
td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

th:first-child {
    width: 50%;
    font-weight: bold;
}

td:first-child {
    width: 50%;
    font-weight: 500;
}


th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.table-heading {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0 10px 0;
    text-align: center;
}

/* Clear float */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Library Section */
.library-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 480px) {
    .library-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .library-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.library-item {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
    cursor: pointer;
}

.library-item:hover {
    background-color: #f0f0f0;
}

.library-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.library-pdf-item {
    width: 100%;
}

.library-pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.library-pdf-header h3 {
    font-size: 18px;
    line-height: 1.3;
    color: #333;
}

.library-pdf-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.library-pdf-actions a {
    color: #0073b7;
    font-weight: 600;
    text-decoration: none;
}

.library-pdf-actions a:hover {
    text-decoration: underline;
}

.library-pdf-loading {
    padding: 16px;
    color: #666;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
}

.library-pdf-viewer {
    width: 100%;
    height: min(75vh, 760px);
    min-height: 520px;
    border: 1px solid #ddd;
    background-color: #f7f7f7;
}

/* Description Box */
.description-box {
    margin-bottom: 20px;
}

.description-item {
    margin-bottom: 5px;
}

/* Features List */
.features-list {
    margin-left: 20px;
}

.features-list li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-text,
    .hero-image {
        max-width: 100%;
        text-align: center;
    }

    .hero-image {
        margin-top: 30px;
    }

    .tab-nav {
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1 1 100%;
        border-radius: 4px;
        margin-bottom: 5px;
        border-bottom: 1px solid #ddd;
    }

    .content-area,
    .side-nav {
        width: 100%;
        float: none;
    }

    .side-nav {
        width: 100%;
        float: none;
        border-right: none;
        border-bottom: 1px solid #ddd;
        display: flex;
        flex-wrap: wrap;
        padding: 0;
    }

    .side-nav-item {
        flex-basis: 50%;
        padding: 10px 15px;
        text-align: center;
    }

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

    .library-pdf-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .library-pdf-viewer {
        height: 70vh;
        min-height: 420px;
    }

    .tab-content-inner {
        flex-direction: column;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

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

    th,
    td {
        padding: 6px;
        font-size: 14px;
    }

    .side-nav-item {
        flex-basis: 100%;
        padding: 10px;
    }
}

/* WhatsApp Button Styles */
#whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    cursor: pointer;
    padding: 10px;
    transition: box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#whatsapp-btn img {
    width: 45px;
    height: 45px;
    display: block;
}

/* Ensure breadcrumb doesn't overlap or look bad */
.breadcrumb {
    margin-top: 5px !important;
}
