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

body {
    font-family: "Exo 2", sans-serif;
    line-height: 1.6;
    background: linear-gradient(to bottom, #0f2027 5%, #2c5364 50%, #f9d423 100%);
    min-height: 100vh;
    background-attachment: fixed;
    margin-top: 130px;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 5px 0;
}

.logo-icon {
    height: 70px;
    width: auto;
    margin-bottom: 2px;
}

.nav-menu { 
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3382b0;
}

.menu-toggle { 
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001; 
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}


.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

body.mobile-view .navbar {
    height: 60px; 
    padding-top: 0.3rem; 
}

body.mobile-view .navbar-container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

body.mobile-view .logo-link {
    transform: scale(0.9); 
    padding: 2px 0;
}
body.mobile-view .logo-icon {
    height: 50px; 
}

body.mobile-view .menu-toggle {
    display: block; 
}

body.mobile-view .nav-menu { 
    display: none; 
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px; 
    left: 0;
    background-color: rgba(30, 60, 72, 0.95); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem; 
    z-index: 999; 
}

body.mobile-view .nav-menu.active {
    display: flex; 
}

body.mobile-view .nav-menu li {
    margin: 0; 
    width: 100%;
}

body.mobile-view .nav-menu .nav-link {
    padding: 1rem;
    display: block; 
    text-align: center;
    width: 100%;
    border-radius: 0; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
}
body.mobile-view .nav-menu li:last-child .nav-link {
    border-bottom: none;
}
.checker-page-container {
    max-width: 1100px; 
    margin: 40px auto; 
}

.page-main-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-main-header h1 {
    font-family: "Exo 2", sans-serif;
    font-size: 2.8rem;
    color: #3382b0; 
    margin-bottom: 15px;
}

.page-main-header p {
    font-family: "Roboto", sans-serif;
    font-size: 1.1rem;
    color: #ffffff; 
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.checker-and-tips-wrapper {
    display: flex;
    flex-wrap: wrap; 
    gap: 30px; /* Space between the two boxes */
    justify-content: center; /* Center boxes if they don't fill width */
}

.tool-box {
    background-color: #1d4c56; /* Dark teal background from previous designs */
    padding: 30px;
    border-radius: 20px; /* Rounded corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    flex: 1 1 400px; /* Grow, shrink, basis (adjust basis as needed) */
    min-width: 300px; /* Prevent from getting too small before wrapping */
    display: flex;
    flex-direction: column; /* Stack content vertically within boxes */
}

.tool-box h2 {
    font-family: "Exo 2", sans-serif;
    font-size: 1.8rem;
    color: #3382b0; /* Specified color */
    margin-bottom: 10px;
}

.tool-box p {
    font-family: "Roboto", sans-serif;
    color: #e0e0e0; /* Slightly off-white for text */
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Email Checker Specifics */
.email-checker-box #emailInput {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #4a7c85; /* Subtle border */
    border-radius: 8px;
    background-color: #ffffff; /* White background for input */
    color: #2c3e50; /* Dark text color for input text */
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
}

.email-checker-box #emailInput::placeholder {
    color: #888; /* Placeholder text color */
    font-family: "Roboto", sans-serif;
}

.email-checker-box button[type="submit"],
.phishing-tips-box #nextTipBtn {
    background-color: #3382b0; /* Button color */
    color: #ffffff;
    font-family: "Exo 2", sans-serif;
    font-weight: bold;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align button to the left within the form/box */
}
.email-checker-box #checkEmailBtn {
    width: auto; /* Don't make it full width */
}


.email-checker-box button[type="submit"]:hover,
.phishing-tips-box #nextTipBtn:hover {
    background-color: #286a8f; /* Darker shade on hover */
}

.result-display {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    display: none; /* Hidden by default */
}
.result-display.safe {
    background-color: rgba(46, 204, 113, 0.2); /* Light green */
    color: #2ecc71; /* Green text */
    border: 1px solid #2ecc71;
}
.result-display.unsafe {
    background-color: rgba(231, 76, 60, 0.2); /* Light red */
    color: #e74c3c; /* Red text */
    border: 1px solid #e74c3c;
}
.result-display.error {
    background-color: rgba(243, 156, 18, 0.2); /* Light orange */
    color: #f39c12; /* Orange text */
    border: 1px solid #f39c12;
}
.result-display.loading {
    color: #bdc3c7;
    background-color: rgba(100,100,100,0.1);
    border: 1px solid #bdc3c7;
}


/* Phishing Tips Specifics */
.phishing-tips-box .tip-intro {
    font-size: 0.9rem;
    color: #bdc3c7; /* Lighter text for intro */
    margin-bottom: 15px;
}

.phishing-tips-box .tip-content {
    background-color: rgba(0,0,0, 0.15); /* Slightly darker box for the tip itself */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow tip content to take available vertical space */
    display: flex;
    flex-direction: column;
}

.phishing-tips-box .tip-content h3 {
    font-family: "Exo 2", sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.phishing-tips-box .tip-content p {
    font-family: "Roboto", sans-serif;
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 0; /* Remove bottom margin from last p in tip */
}

.phishing-tips-box #nextTipBtn {
    align-self: flex-start; 
    margin-top: auto; 
}

.newsletter-signup-section {
    background-color: #1d4c56; /* Dark teal background as per image */
    color: #ffffff;
    padding: 50px 30px;     /* Padding inside the section */
    margin: 40px auto;      /* Top/bottom margin, centered on page */
    max-width: 800px;       /* Max width of the section */
    border-radius: 25px;    /* Rounded corners for the section block */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    text-align: center;
}


.newsletter-signup-section h2 {
    font-family: "Exo 2", sans-serif;
    color: #3382b0; /* Specified heading color */
    font-size: 2.4rem; /* Adjust as needed */
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.newsletter-signup-section p {
    font-family: 'Roboto', sans-serif;
    color: #ffffff; /* Specified text color */
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 550px; /* Constrain description width for readability */
    margin-left: auto;
    margin-right: auto;
}

form.newsletter-form {
    display: flex;
    flex-wrap: wrap;     /* Key for responsiveness: allows items to wrap */
    gap: 15px;           /* Space between input and button */
    justify-content: center; /* Center items on the line */
    align-items: stretch; /* Make input and button same height if possible */
    max-width: 550px;    /* Max width for the form (input+button group) */
    margin: 0 auto 20px auto; /* Center the form and add bottom margin */
}

form.newsletter-form input[type="email"] {
    font-family: "Roboto", sans-serif; /* Specified font */
    /* Flex properties for responsive sizing: */
    flex: 2 1 280px; /* Grow more (2), can shrink (1), ideal basis width 280px */
    padding: 14px 18px;
    border: 1px solid #4a7c85; /* Subtle border */
    border-radius: 8px;
    background-color: #ffffff;
    color: #2c3e50; /* Darker text for input field */
    font-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    box-sizing: border-box; /* Ensure padding/border don't expand element */
}

form.newsletter-form input[type="email"]::placeholder {
    color: #888;
    font-family: "Roboto", sans-serif;
}

form.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #3382b0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 0 3px rgba(51, 130, 176, 0.25);
}

form.newsletter-form button[type="submit"] {
    font-family: "Exo 2", sans-serif;
    flex: 1 1 120px; 
    background-color: #3382b0; 
    color: #ffffff;
    font-weight: bold;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    box-sizing: border-box;
    white-space: nowrap; 
}

form.newsletter-form button[type="submit"]:hover {
    background-color: #286a8f; 
    transform: translateY(-1px);
}

.newsletter-message-display {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    min-height: 20px; 
    display: none; 
    max-width: 550px; 
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.newsletter-message-display.success {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.4);
    display: block; 
}

.newsletter-message-display.error {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.4);
    display: block;
}

.newsletter-message-display.loading {
    color: #bdc3c7; 
    display: block; 
}

.site-footer {
    background-color: #1d4c56; 
    color: #e0e0e0; 
    padding: 50px 20px 30px 20px;
    font-family: "Roboto", sans-serif;
}

.footer-content-wrapper {
    max-width: 1100px; 
    margin: 0 auto;
}

.footer-main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    gap: 40px;
    margin-bottom: 30px;
}

.footer-about {
    flex: 0 1 400px; 
}

.footer-logo-link {
    display: flex;
    align-items: center; 
    gap: 12px; 
    text-decoration: none;
    color: #ffffff; 
    margin-bottom: 15px;
}

.footer-logo-icon {
    height: 50px; 
    width: auto;
}

.footer-logo-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-name {
    font-family: "Exo 2", sans-serif;
    font-size: 1.8rem; 
    font-weight: 700;
    color: #ffffff; 
    margin: 0;
    line-height: 1.1;
}

.footer-logo-sparkle {
    font-family: "Exo 2", sans-serif;
    color: #f9d423; 
    font-size: 1.5rem; 
    line-height: 1;
    margin-top: -3px; 
}

.footer-description {
    font-family: "Roboto", sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #c0c0c0; 
    margin-bottom: 15px;
}

.footer-contact-email {
    font-family: "Roboto", sans-serif;
    font-weight: bold;   
    color: #ffffff;       
    text-decoration: none; 
    transition: color 0.3s ease;
}

.footer-contact-email:hover {
    color: #3382b0; 
    text-decoration: underline; 
}

.footer-nav {
    flex: 1 1 auto; 
    display: flex;
    justify-content: flex-end; 
    padding-top: 5px; 
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
}

.footer-nav-list li {
    margin-bottom: 12px; 
}

.footer-nav-list li:last-child {
    margin-bottom: 0;
}

.footer-nav-link {
    font-family: "Exo 2", sans-serif;
    text-decoration: none;
    color: #e0e0e0;    
    font-size: 0.95rem; 
    font-weight: 500;   
    transition: color 0.3s ease;
}

.footer-nav-link:hover {
    color: #3382b0; 
}

.footer-divider {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15); 
    margin: 25px 0;
}

.footer-copyright {
    font-family: "Exo 2", sans-serif;
    text-align: center;
    font-size: 0.85rem;
    color: #b0b0b0; 
}


body.mobile-view .site-footer {
    padding: 40px 15px 25px 15px;
}

body.mobile-view .footer-main-content {
    flex-direction: column; 
    align-items: center;   
    text-align: center;    
    gap: 30px;             
}

body.mobile-view .footer-about {
    flex-basis: auto; 
    width: 100%;      
    max-width: 350px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
}

body.mobile-view .footer-logo-link {
    flex-direction: column; 
    gap: 8px;
    margin-bottom: 10px;
}

body.mobile-view .footer-logo-text-group {
    align-items: center;
} 

body.mobile-view .footer-description {
    font-size: 0.85rem;
    margin-top: 5px;
    margin-bottom: 10px;
}

body.mobile-view .footer-contact {
    font-size: 0.85rem; 
}

body.mobile-view .footer-nav {
    width: 100%; 
    justify-content: center; 
    padding-top: 0; 
}

body.mobile-view .footer-nav-list {
    align-items: center; 
}

body.mobile-view .footer-nav-link {
    font-size: 0.9rem;
    padding: 6px 0; 
}

body.mobile-view .footer-copyright {
    font-size: 0.8rem;
}