
* {
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    color: #333333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header {
    background-color: #2E7D32;
    color: white;
    background-image: url('GP_Logo.PNG'); 
    background-position: right 20px center;
    background-repeat: no-repeat;
    background-size: 120px;
    padding: 30px 160px 30px 30px;
    text-align: center;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

nav {
    background-color: #4CAF50;
    padding: 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #388E3C;
}

#heroHome, #heroBoard, #heroTraining {
    height: 350px;
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
}

#heroHome { background-image: url('sunsetHorse.png'); }
#heroBoard { background-image: url('fenceline.png'); }
#heroTraining { background-image: url('BayBella.png'); }

#wrapper {
    max-width: 1200px;
    margin: 20px auto;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

main {
    padding: 30px;
}

h2 {
    color: #2E7D32;
    font-size: 1.8em;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #C8E6C9;
}

h3 {
    color: #388E3C;
    font-size: 1.4em;
    margin: 20px 0 10px;
}

p {
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid #ddd;
}

th {
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border: 1px solid #ddd;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

/* 8. LISTS */
dl {
    margin: 20px 0;
}

dt {
    color: #2E7D32;
    font-weight: bold;
    margin-top: 15px;
}

dd {
    margin-left: 20px;
    margin-bottom: 15px;
}

main ul {
    list-style: none;
    padding-left: 0;
}

main li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

main li:before {
    content: "•";
    color: #4CAF50;
    font-size: 1.5em;
    position: absolute;
    left: 0;
}

.contact-info {
    background-color: #F1F8E9;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid #4CAF50;
    clear: both;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2E7D32;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1em;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    cursor: pointer;
    width: auto;
    border-radius: 4px;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #388E3C;
}

footer {
    background-color: #2E7D32;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 30px;
}

footer a {
    color: #C8E6C9;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.video-container {
    margin: 20px 0;
    border-radius: 5px;
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}


#gallery {
    margin: 20px 0;
}

#gallery ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
}

#gallery li {
    flex: 1;
    min-width: 200px;
}

#gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s;
}

#gallery img:hover {
    transform: scale(1.03);
}

.contact-page-logo {
    float: right;
    margin: 0 0 20px 30px;
    width: 300px;
    text-align: center;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.contact-page-logo img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.contact-page-logo p {
    font-style: italic;
    color: #666;
    margin: 10px 0 0 0;
    font-size: 0.95em;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}


/* Tablet */
@media only screen and (max-width: 768px) {
    header {
        padding: 20px 100px 20px 20px;
        background-size: 100px;
        min-height: 120px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    #heroHome, #heroBoard, #heroTraining {
        height: 250px;
    }
    
    .contact-page-logo {
        float: none;
        width: 100%;
        margin: 20px 0;
    }
}

@media only screen and (max-width: 37.5em) {
    #heroHome, #heroBoard, #heroTraining {
        height: 200px;
        background-size: cover; 
    }
    
  
    header {
        background-image: none; 
        padding: 15px;
        min-height: auto;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
     
    nav a {
        padding: 12px;
        text-align: center;
    }
    
    main {
        padding: 20px 15px;
    }
    
    #mobile {
        display: inline;
    }
    
    #desktop {
        display: none;
    }
    
 
    .video-container iframe {
        height: 250px;
    }
    

    table {
        font-size: 0.9em;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
 
    input, textarea {
        padding: 10px;
    }
    
    input[type="submit"] {
        width: 100%;
        padding: 15px;
    }
    

    .contact-page-logo {
        width: 100%;
        margin: 20px 0;
        padding: 15px;
    }
}


@media print {
    nav, .video-container, #gallery, .contact-page-logo {
        display: none;
    }
    
    #wrapper {
        box-shadow: none;
        margin: 0;
    }
    
    header {
        background-image: none;
    }
}