* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-family: Arial, Helvetica, sans-serif; 
}
.grecaptcha-badge { 
    visibility: hidden !important;
}
img {
    max-width: 100%;
    height: auto;
}   
body {
    margin: 0;  
    background-color: #F0F4F8;
}
header {
    width: 100%;
    background-color: #fff;
    border-bottom: #eee 1px solid;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 102, 255, 0.05);
    box-sizing: border-box; 
}
header img {
    vertical-align: middle;
}
header nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
header nav a {
    font-size: 16px;
    color: #222;
    text-decoration: none;
    transition: all 0.5s ease-in-out;
    font-weight: 600;
    opacity: 0.8;
}
header nav a:hover {
    opacity: 1;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #222;
    cursor: pointer;
}
.close-menu-btn {
    display: none;
}
.menu-overlay {
    display: none;
}
main {
    max-width: 1600px;
    width: 100%;
    margin: auto;
    padding: 20px;
}
#title h1 {
   color: #111;
   font-size: 45px;
   line-height: 1.2em;
   margin-bottom: 0px;
}
#title p {
    color: #555;
    font-size: 18px;
    line-height: 1.5em;  
    margin-bottom: 5px;
}
#main {
    display: flex;
    gap: 40px;
    margin: 50px auto;  
    width: 100%; 
    align-items: center;
}
#fcolumn {
    width: 35%;
}
.form-container {
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
h2 {
    margin-top: 0;
    font-size: 24px;
    line-height: 1.2em;
    color: #333;
    text-align: center;
}
.radio-banner {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}
.radio-banner label {
    display: inline-block;
    margin-top: 0;
    margin-right: 20px;
    font-weight: bold;
    cursor: pointer;
}
.form-fields-wrapper {
    transition: opacity 0.3s;
}
.form-fields-wrapper.disabled {
    opacity: 0.4;
    pointer-events: none;
}
label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #1a202c;
    font-size: 14px;
    line-height: 1.5em;
}
input[type="text"], input[type="email"], input[type="url"], textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    outline: none;
}
input:focus, textarea:focus, select:focus {
    border-color: #3182ce;
}
textarea {
    min-height: 120px;
    resize: vertical;
}
.word-counter {
    font-size: 13px;
    margin-top: 5px;
    font-weight: bold;
}
.count-red { 
    color: #e53e3e; 
}
.count-green { 
    color: #38a169; 
}        
.submit-btn {
    width: 100%;
    background-color: #3182ce;
    color: #ffffff;
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 25px;
}
.submit-btn:hover {
    background-color: #2b6cb0;
}
.error-msg {
    background-color: #fff5f5;
    color: #c53030;
    padding: 15px;
    border: 1px solid #feb2b2;
    border-radius: 4px;
    margin-bottom: 20px;
    line-height: 1.5em;
    text-align: center;
}
.success-msg {
    background-color: #f0fff4;
    color: #2f855a;
    padding: 15px;
    border: 1px solid #9ae6b4;
    border-radius: 4px;
    margin-bottom: 20px;
    line-height: 1.5em;
    text-align: center;    
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 380px;
    width: 90%;
}
.modal-box h3 {
    margin-top: 0;
    background-color: #eee;
    padding: 15px;
    border-radius: 10px;
    font-size: 20px;
    color: #444;
}
.modal-box p {
    line-height: 1.5em;
    color: #555;
    font-size: 16px;
}
.modal-box a {
    color: #555;
}
.paypal-btn {
    display: inline-block;
    background-color: #ffc439;
    color: #000000;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 20px;
    font-size: 16px;
}
.cancel-link {
    display: block;
    margin-top: 15px;
    color: #718096;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}
#scolumn {
    width: 65%;
}
#about p {
    color: #555;
    font-size: 16px;
    line-height: 1.5em;    
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px auto;
}
.grid div {
    background-color: #fff;
    border-radius: 20px;
    padding: 30px 20px;    
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
}
.grid div h3 {
    font-size: 18px;
    color: #444;
}
.grid div i {
    color: #3182ce;
    font-size: 35px;
}
.grid div p {
    color: #555;
    font-size: 16px;
    line-height: 1.5em;
}
#stats {
    text-align: center;
}
#stats p {
    color: #222;
    font-size: 16px;
    line-height: 1.5em;    
}
.directory-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 10px;
}
.website-link {
    font-size: 22px;
    font-weight: bold;
    color: #2b6cb0;
    text-decoration: none;
    text-transform: capitalize;
}
.website-link:hover {
    text-decoration: underline;
}
.pro-badge {
    background-color: #00cccc;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.card-body {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: flex-start;
}
.favicon-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    background-color: #f7fafc;
}
.description-text {
    font-size: 16px;
    color: #555;
    margin: 0;
    line-height: 1.5em;
}
.card-footer {
    padding-top: 10px;
}
.category-link {
    display: inline-block;
    background-color: #edf2f7;
    color: #555;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    font-weight: bold;
}
.category-link:hover {
    background-color: #e2e8f0;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}
.page-btn {
    padding: 10px 15px;
    background-color: #ffffff;
    border: 1px solid #cbd5e0;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
}
.page-btn:hover {
    background-color: #f7fafc;
}
.page-btn.active {
    background-color: #3182ce;
    color: #ffffff;
    border-color: #3182ce;
}
.page-btn.disabled {
    color: #a0aec0;
    background-color: #edf2f7;
    border-color: #e2e8f0;
    pointer-events: none;
}
.page-dots {
    padding: 10px 15px;
    color: #718096;
}
.general-container {
    margin: 40px auto;
    background-color: #fff;
    border-radius: 20px;
    padding: 20px;
}
.general-container p {
    color: #555;
    font-size: 16px;
    line-height: 1.5em;
}
.general-container h2 {
    text-align: left;
}
.general-container ul li {
    position: relative;
    margin-bottom: 18px;
    font-size: 16px;
    color: #555;
    line-height: 1.5em;
}
.general-container strong {
    font-weight: 600;
}
.general-container .effective-date {
    font-size: 14px;
    color: #555!important;
}
.search-box-container {
    background-color: #ffffff;
    width: 70%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 30px auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.search-form {
    display: flex;
    gap: 10px;
}
.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
}
.search-input:focus {
    border-color: #3182ce;
}
.search-submit-btn {
    background-color: #3182ce;
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
.search-submit-btn:hover {
    background-color: #2b6cb0;
}
footer {
    text-align: center;
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
}
footer p, footer a {
    color: #555;
    font-size: 13px!important;
    line-height: 1.5em;
}

/* Responsive Mobile Layout (Up to 900px) */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }
    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0,0,0,0.6);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    header nav {
        position: fixed;
        top: 0;
        left: -300px; 
        width: 280px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 20px;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
        z-index: 1002;
        transition: left 0.3s ease-in-out;
        box-sizing: border-box;
        overflow-y: auto;
    }
    header nav.active {
        left: 0; 
    }
    .close-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        color: #222;
        cursor: pointer;
        align-self: flex-end; 
        margin-bottom: 20px;
    }
    header nav a {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #f5f5f5;
        box-sizing: border-box;
    }
    header nav a:last-child {
        border-bottom: none;
    }
    h1 {
        font-size: 36px!important;
        text-align: center;
    }
    #title p {
        text-align: center;
        display: block!important;
    }
    #main {
        flex-direction: column;
    }
    #fcolumn {
        width: 100%;
    }
    #scolumn {
        width: 100%;
    }
    .grid {
        grid-template-columns: 1fr;
    }  
    .grid div {
        padding: 20px;
    }
    .grid div i {
        margin-top: 10px;
    }
    .card-body {
        flex-direction: column;
    }
    .website-link {
        font-size: 20px;
}
    .card-header {
        flex-wrap: wrap;
    }
    .search-box-container {
        width: 100%;
    }
    .search-form {
        flex-direction: column;
    }
}
