
/* =========================================
   GENERAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.safety-page {
    width: 100%;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #303b32;
    background: #f8faf6;
}


/* =========================================
   HERO - ORIGINAL BANNER DESIGN
   HINDI BINAGO
========================================= */

.safety-hero {
    position: relative;
    width: 100%;
    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px 5%;

    background: rgba(0, 39, 0, 0.788);

    color: #ffffff;
    text-align: center;
}

.safety-hero-content {
    max-width: 850px;
}

.safety-hero h1 {
    color: #ffffff;
    font-size: clamp(30px, 4vw, 20px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0;
}


/* =========================================
   MAIN CONTAINER
========================================= */

.safety-container {
    width: min(1400px, 92%);
    margin: 0 auto;
    padding: 45px 0 65px;
}


/* =========================================
   TWO COLUMN TIPS GRID
========================================= */

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 25px;

    width: 100%;
}


/* =========================================
   TIPS CARDS
========================================= */

.tips-section {
    width: 100%;
    min-width: 0;

    padding: 23px;

    background: #ffffff;
    border: 1px solid #034203;
    border-radius: 12px;

    box-shadow: 0 4px 16px rgba(35, 72, 45, 0.045);
}


/* =========================================
   SECTION HEADINGS
========================================= */

.tips-section-header {
    margin-bottom: 10px;
}

.tips-section-header h2 {
    color: #205b35;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.3;

    margin: 0 0 10px;
}

.tips-section-header p {
    max-width: 750px;

    color: #68746b;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================
   TABLE WRAPPER
========================================= */

.tips-table-wrapper {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e8ede4;
    border-radius: 9px;

    overflow: hidden;
}


/* =========================================
   TIPS TABLE
========================================= */

.tips-table {
    width: 100%;
    table-layout: fixed;

    border-collapse: collapse;
    background: #ffffff;
}


/* TABLE HEADER */

.tips-table thead th {
    background: #27683b;
    color: #ffffff;

    text-align: left;

    padding: 14px 12px;

    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
}


/* NUMBER COLUMN */

.tips-table th.number-column {
    width: 48px;
    text-align: center;
}


/* TABLE BODY */

.tips-table tbody td {
    padding: 14px 12px;

    border-bottom: 1px solid #edf0eb;

    color: #536057;

    font-size: 15px;
    line-height: 1.6;

    vertical-align: top;

    overflow-wrap: break-word;
    word-wrap: break-word;
}


/* REMOVE LAST ROW BORDER */

.tips-table tbody tr:last-child td {
    border-bottom: none;
}


/* NUMBER STYLE */

.tips-table td.tip-number {
    width: 48px;

    text-align: center;

    color: #35743c;
    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}


/* ROW HOVER */

.tips-table tbody tr {
    transition: background 0.2s ease;
}

.tips-table tbody tr:hover {
    background: #f7faf3;
}


/* =========================================
   ENERGY SAVING TABLE
========================================= */

.energy-table {
    width: 100%;
    table-layout: fixed;
}

.energy-table th.energy-tip-column {
    width: 30%;
}

.energy-table td.energy-tip-title {
    width: 30%;

    color: #28633a;
    font-weight: 700;

    overflow-wrap: anywhere;
    word-wrap: break-word;
}

/* =========================================
   TABLET RESPONSIVE
========================================= */

@media screen and (max-width: 1000px) {

    .safety-container {
        width: 94%;
        padding: 40px 0 55px;
    }

    .tips-grid {
        gap: 18px;
    }

    .tips-section {
        padding: 18px;
    }

    .tips-section-header h2 {
        font-size: 23px;
    }

    .tips-table thead th {
        padding: 13px 9px;
        font-size: 11px;
    }

    .tips-table tbody td {
        padding: 12px 9px;
        font-size: 12px;
        line-height: 1.65;
    }

    .tips-table th.number-column,
    .tips-table td.tip-number {
        width: 42px;
    }

    .energy-table th.energy-tip-column {
        width: 30%;
    }

    .energy-table td.energy-tip-title {
        font-size: 11px;
    }

}


/* =========================================
   SMALLER TABLET
========================================= */

@media screen and (max-width: 768px) {

    /* STACK THE TWO CARDS */

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .tips-section {
        padding: 22px;
    }

    .tips-section-header h2 {
        font-size: 26px;
    }

    .tips-section-header p {
        font-size: 13px;
    }

    .tips-table {
        table-layout: fixed;
    }

    .tips-table thead th {
        padding: 14px 12px;
        font-size: 13px;
    }

    .tips-table tbody td {
        padding: 14px 12px;
        font-size: 13px;
        line-height: 1.7;
    }

    .tips-table th.number-column,
    .tips-table td.tip-number {
        width: 55px;
    }

    .energy-table th.energy-tip-column {
        width: 30%;
    }

    .energy-table td.energy-tip-title {
        font-size: 13px;
    }

    .safety-reminder {
        padding: 25px;
    }

}


/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media screen and (max-width: 480px) {

    .safety-container {
        width: 94%;
        padding: 30px 0 45px;
    }

    .safety-hero {
        min-height: 120px;
        padding: 40px 20px;
    }

    .safety-hero-content h1 {
        font-size: 20px;
        letter-spacing: 1px;

    }

    .tips-grid {
        gap: 18px;
    }

    .tips-section {
        padding: 15px;
        border-radius: 10px;
    }

    .tips-section-header {
        margin-bottom: 18px;
    }

    .tips-section-header h2 {
        font-size: 25px;
        margin-bottom: 8px;
    }

    .tips-section-header p {
        font-size: 12px;
        line-height: 1.7;
    }


    /* ELECTRICAL SAFETY TABLE */

    .tips-table {
        width: 100%;
        table-layout: fixed;
    }

    .tips-table th.number-column,
    .tips-table td.tip-number {
        width: 42px;
        padding: 12px 5px;
        font-size: 11px;
    }

    .tips-table thead th {
        padding: 12px 8px;
        font-size: 11px;
    }

    .tips-table tbody td {
        padding: 12px 8px;
        font-size: 12px;
        line-height: 1.65;
    }


    /* ENERGY SAVING TABLE */

    .energy-table {
        width: 100%;
        table-layout: fixed;
    }

    .energy-table th.number-column,
    .energy-table td.tip-number {
        width: 38px;
    }

    .energy-table th.energy-tip-column {
        width: 32%;
    }

    .energy-table thead th {
        padding: 11px 6px;
        font-size: 10px;
    }

    .energy-table tbody td {
        padding: 11px 6px;
        font-size: 11px;
        line-height: 1.6;
    }

    .energy-table td.energy-tip-title {
        min-width: 0;
        font-size: 11px;
        overflow-wrap: anywhere;
        word-break: normal;
    }


    /* SAFETY REMINDER */

    .safety-reminder {
        align-items: flex-start;
        padding: 20px;
        gap: 12px;
        margin-top: 20px;
    }

    .reminder-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .safety-reminder h3 {
        font-size: 16px;
    }

    .safety-reminder p {
        font-size: 12px;
        line-height: 1.7;
    }

}


/* =========================================
   EXTRA SMALL MOBILE
========================================= */

@media screen and (max-width: 360px) {

    .safety-container {
        width: 95%;
    }

    .tips-section {
        padding: 12px;
    }

    .tips-section-header h2 {
        font-size: 21px;
    }

    .tips-table thead th {
        padding: 10px 6px;
        font-size: 10px;
    }

    .tips-table tbody td {
        padding: 10px 6px;
        font-size: 11px;
    }

    .tips-table th.number-column,
    .tips-table td.tip-number {
        width: 35px;
    }

    .energy-table th.energy-tip-column {
        width: 31%;
    }

    .energy-table thead th,
    .energy-table tbody td {
        padding: 9px 5px;
        font-size: 10px;
    }

}
