body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
    color: #333;
    transition: all 0.3s ease;
}

body:not(.was-footer) {
    background: linear-gradient(to bottom, #f4f4f4, #ebebeb);
}

body.dark-mode:not(.was-footer) {
    background-color: #121212;
    color: #e0e0e0;
    background: linear-gradient(to bottom, #1e1e1e, #363636);
}

body.was-footer {
    background-color: #424242;
    color: #c9c9c9;
}

body.was-footer.dark-mode {
    background-color: #2b2b2b;
    color: #adadad;
}

header, footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

header.dark-mode, footer.dark-mode {
    background-color: #1f1f1f;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.container.dark-mode {
    background-color: #1e1e1e;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.services {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.service {
    background-color: #f2f2f2;
    padding: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 10px;
    flex: 1;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.service.dark-mode {
    background-color: #2c2c2c;
}

.service:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: rgb(245, 90, 90) 0px 0px 10px;
}

.dark-mode-toggle {
    background-color: #3d3535;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    position: fixed;
    top: 10px;
    right: 10px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background-color: #555;
    opacity: 0.9;
    transition: all 0.3s ease;
}

iframe {
    width: 100%;
    height: 50px;
    border: none;
}

/* Regular link styles */
a {
    color: #0066cc; /* Default blue for light mode */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Dark mode link styles */
a.dark-mode {
    color: #66b3ff; /* Lighter blue for dark mode */
}

a.dark-mode:hover {
    color: #99ccff; /* Even lighter on hover */
    text-decoration: underline;
}

/* For your red email link specifically */
a[href^="mailto:"] font {
    color: red;
}

a.dark-mode[href^="mailto:"] font {
    color: #ff6666; /* Lighter red for dark mode */
}

/* New Fly-In Animation */
@keyframes flyInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Applying the Fly-In Animation */
header h1 {
    animation: flyInFromTop 1s ease-out;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    /* Hide GIF images on mobile devices (for iframes/navbar) */
    nav a img {
        display: none;
    }
    
    /* Stack services vertically on mobile */
    .services {
        flex-direction: column;
    }
    
    /* Adjust service margins for better mobile spacing */
    .service {
        margin: 10px 0;
    }
}

.was-footer {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: #424242;
  color: #c9c9c9;
  padding: 10px;
  text-align: center;
}

.was-footer.dark-mode {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: #2b2b2b;
  color: #adadad;
  padding: 10px;
  text-align: center;
}

.copyright-iframe {
    width: 100%;
    height: 100px;
    border: none;
}

.programs {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.program {
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 5px;
    flex: 1;
    margin: 0 10px;
}

.program.dark-mode {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 5px;
    flex: 1;
    margin: 0 10px;
}

/* Cookie list styles */
.cookie-list {
    margin: 12px 0 20px 0;
    padding: 0;
}
.cookie-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 8px;
    background: #fbfbfb;
    margin-bottom: 10px;
    border: 1px solid #eee;
}
body.dark-mode .cookie-item {
    background: #161616;
    border-color: #2b2b2b;
}
.cookie-name {
    font-weight: 700;
    min-width: 160px;
    color: #222;
}
body.dark-mode .cookie-name {
    color: #e0e0e0;
}
.cookie-item dd {
    margin: 0;
    color: #444;
}
body.dark-mode .cookie-item dd {
    color: #cfcfcf;
}
@media (max-width: 600px) {
    .cookie-item {
        flex-direction: column;
        gap: 6px;
    }
    .cookie-name {
        min-width: 0;
    }
}

.form {
    width: 100%;
}

.form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-row label {
    width: 110px;
    color: #333;
    font-family: Arial, sans-serif;
    font-weight: 700;
}

body.dark-mode .form-row label {
    color: #e0e0e0;
}

.message-input {
    flex: 1;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    font: inherit;
}

body.dark-mode .message-input {
    background-color: #161616;
    color: #e0e0e0;
    border-color: #3a3a3a;
}

textarea.message-input {
    min-height: 120px;
    resize: vertical;
}

.submit-button {
    align-self: flex-end;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}

body.dark-mode .submit-button {
    background-color: #e0e0e0;
    color: #333;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row label {
        width: auto;
    }
}