/*
Theme Name: Jamaica Embassy
Theme URI: https://www.embassyofjamaica.org/
Author: Embassy of Jamaica
Author URI: https://www.embassyofjamaica.org/
Description: A custom theme for the Embassy of Jamaica website, featuring user roles, application forms, and a secure login system.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jamaica-embassy
Tags: jamaica, embassy, government, responsive, mobile-first

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* Colors:
 * Primary Green: #007847
 * Primary Gold: #FED100
 * Primary Black: #000000
 * Accent Blue: #00AEEF
 * White: #FFFFFF
 */

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

body {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #007847;
}

a {
    color: #007847;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FED100;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header-top {
    background-color: #007847;
    color: #fff;
    padding: 10px 0;
}

.header-top a {
    color: #fff;
}

.header-top a:hover {
    color: #FED100;
}

.site-branding {
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.site-logo {
    max-width: 200px;
    margin-right: 20px;
}

.site-title {
    font-size: 2rem;
    margin-bottom: 0;
}

.site-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

/* Navigation */
.main-navigation {
    background-color: #007847;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.main-navigation a:hover {
    background-color: #FED100;
    color: #000;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #007847;
    min-width: 200px;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.main-navigation li:hover > .sub-menu {
    display: block;
}

.main-navigation .sub-menu a {
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background-color: #007847;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-button {
    display: inline-block;
    background-color: #FED100;
    color: #000;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.hero-button:hover {
    background-color: #fff;
    color: #007847;
}

/* Quick Links */
.quick-links {
    background-color: #f5f5f5;
    padding: 50px 0;
}

.quick-links-title {
    text-align: center;
    margin-bottom: 30px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.quick-link-item {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-link-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.quick-link-content {
    padding: 20px;
}

.quick-link-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.quick-link-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.quick-link-button {
    display: inline-block;
    background-color: #007847;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.quick-link-button:hover {
    background-color: #FED100;
    color: #000;
}

/* News & Events */
.news-events {
    padding: 50px 0;
}

.news-events-title {
    text-align: center;
    margin-bottom: 30px;
}

.news-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-event-item {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-event-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-event-content {
    padding: 20px;
}

.news-event-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.news-event-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.news-event-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.news-event-button {
    display: inline-block;
    background-color: #007847;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-event-button:hover {
    background-color: #FED100;
    color: #000;
}

/* Contact Section */
.contact-section {
    background-color: #f5f5f5;
    padding: 50px 0;
}

.contact-title {
    text-align: center;
    margin-bottom: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-info {
    background-color: #fff;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-info-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-info-item {
    margin-bottom: 15px;
}

.contact-info-label {
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-form {
    background-color: #fff;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-form-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #007847;
}

.form-button {
    display: inline-block;
    background-color: #007847;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #FED100;
    color: #000;
}

/* Footer */
.site-footer {
    background-color: #222;
    color: #fff;
    padding: 50px 0 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #FED100;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: #FED100;
}

.footer-bottom {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #FED100;
}

/* Login/Register Forms */
.auth-form {
    max-width: 500px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-form-title {
    text-align: center;
    margin-bottom: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.auth-form .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: #007847;
}

.auth-form .form-button {
    display: block;
    width: 100%;
    background-color: #007847;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-form .form-button:hover {
    background-color: #FED100;
    color: #000;
}

.auth-form .form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

.auth-form .form-footer a {
    color: #007847;
}

.auth-form .form-footer a:hover {
    color: #FED100;
}

/* Dashboard */
.dashboard {
    padding: 50px 0;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.dashboard-description {
    color: #666;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.dashboard-card {
    background-color: #fff;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-card-icon {
    font-size: 2rem;
    color: #007847;
    margin-bottom: 20px;
}

.dashboard-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.dashboard-card-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.dashboard-card-button {
    display: inline-block;
    background-color: #007847;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.dashboard-card-button:hover {
    background-color: #FED100;
    color: #000;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.dashboard-table th,
.dashboard-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.dashboard-table th {
    background-color: #f5f5f5;
    font-weight: 700;
}

.dashboard-table tr:hover {
    background-color: #f9f9f9;
}

.dashboard-table .status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-table .status-pending {
    background-color: #FED100;
    color: #000;
}

.dashboard-table .status-approved {
    background-color: #007847;
    color: #fff;
}

.dashboard-table .status-rejected {
    background-color: #dc3545;
    color: #fff;
}

/* Application Forms */
.application-form {
    max-width: 800px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.application-form-title {
    text-align: center;
    margin-bottom: 30px;
}

.application-form .form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.application-form .form-section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.application-form .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.application-form .form-col {
    flex: 1;
    padding: 0 15px;
    min-width: 250px;
}

.application-form .form-group {
    margin-bottom: 20px;
}

.application-form .form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.application-form .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

.application-form .form-control:focus {
    outline: none;
    border-color: #007847;
}

.application-form .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.application-form .form-check-input {
    margin-right: 10px;
}

.application-form .form-file {
    margin-top: 10px;
}

.application-form .form-file-label {
    display: block;
    background-color: #f5f5f5;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.application-form .form-file-label:hover {
    background-color: #e9e9e9;
}

.application-form .form-file-input {
    display: none;
}

.application-form .form-help {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.application-form .form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.application-form .form-button {
    padding: 12px 30px;
}

.application-form .form-button-secondary {
    background-color: #666;
}

.application-form .form-button-secondary:hover {
    background-color: #555;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 767px) {
    .menu-toggle {
        display: block;
        width: 100%;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
    }
    
    .main-navigation.toggled ul {
        display: block;
    }
    
    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 70px 0;
    }
    
    .application-form .form-buttons {
        flex-direction: column;
    }
    
    .application-form .form-button {
        margin-bottom: 10px;
    }
}

@media (max-width: 575px) {
    .site-branding {
        flex-direction: column;
        text-align: center;
    }
    
    .site-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .quick-links-grid,
    .news-events-grid,
    .contact-grid,
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}
