/* Cape Info SA - Main Stylesheet */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* Header */
header {
    background-color: #004d66;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 32px;
    font-weight: normal;
    text-transform: lowercase;
}

.logo .highlight {
    color: #00cc66;
    font-weight: bold;
}

/* Navigation */
nav {
    background-color: #006680;
    border-bottom: 3px solid #00cc66;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    text-transform: lowercase;
    transition: background-color 0.3s;
}

nav a:hover,
nav a.active {
    background-color: #004d66;
    text-decoration: none;
}

/* Main Content Layout */
.main-wrapper {
    background-color: white;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.content-layout {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
    min-width: 250px;
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: auto;
}

/* Main Feature Image */
.main-feature {
    margin-bottom: 30px;
}

.main-feature img {
    width: 100%;
    border-radius: 5px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.grid-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.grid-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.grid-item-content {
    padding: 15px;
    text-align: center;
}

.grid-item h3 {
    color: #004d66;
    font-size: 16px;
    margin-bottom: 5px;
}

.grid-item.green-box {
    background-color: #00cc66;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.grid-item.green-box h3 {
    color: white;
    font-size: 20px;
    text-align: center;
    padding: 20px;
}

.grid-item.award-box {
    background: linear-gradient(135deg, #004d66 0%, #006680 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
}

.grid-item.award-box h3 {
    color: white;
    font-size: 18px;
    text-align: center;
    padding: 20px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    color: #004d66;
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00cc66;
}

.sidebar-widget img {
    width: 100%;
    margin: 10px 0;
    border-radius: 5px;
}

.sidebar-widget a {
    color: #004d66;
    display: inline-block;
    margin: 5px 0;
}

.sidebar-widget a:hover {
    color: #00cc66;
}

/* Search Box */
.search-box {
    display: flex;
    margin: 10px 0;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px 0 0 3px;
}

.search-box button {
    padding: 8px 20px;
    background-color: #00cc66;
    color: white;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    text-transform: lowercase;
}

.search-box button:hover {
    background-color: #00994d;
}

.advanced-search {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: inline-block;
}

/* Footer */
footer {
    background-color: #004d66;
    color: white;
    padding: 30px 0 20px;
    margin-top: 30px;
}

.footer-content {
    text-align: center;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-section h4 {
    color: #00cc66;
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    font-size: 13px;
}

.footer-links a:hover {
    color: #00cc66;
    text-decoration: none;
}

.footer-links span {
    color: #00cc66;
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid #006680;
    font-size: 12px;
    color: #ccc;
}

/* Page Content Styles */
.page-content {
    padding: 20px;
    line-height: 1.8;
}

.page-content h1 {
    color: #004d66;
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #00cc66;
}

.page-content h2 {
    color: #004d66;
    font-size: 22px;
    margin: 25px 0 15px;
}

.page-content h3 {
    color: #006680;
    font-size: 18px;
    margin: 20px 0 10px;
}

.page-content p {
    margin-bottom: 15px;
}

.page-content ul {
    margin: 15px 0;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 8px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 20px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #004d66;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: Arial, Helvetica, sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #00cc66;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
}

.submit-btn:hover {
    background-color: #00994d;
}

/* Directory/Services Listings */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.service-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-item h3 {
    color: #004d66;
    margin-bottom: 10px;
}

.service-item p {
    margin-bottom: 10px;
    color: #666;
}

.service-item a {
    color: #00cc66;
    font-weight: bold;
}

/* News Articles */
.news-list {
    margin: 20px 0;
}

.news-item {
    background-color: #f9f9f9;
    border-left: 4px solid #00cc66;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.news-item h3 {
    color: #004d66;
    margin-bottom: 10px;
}

.news-meta {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-item p {
    margin-bottom: 10px;
}

.read-more {
    color: #00cc66;
    font-weight: bold;
}

/* Accommodation Cards */
.accommodation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.accommodation-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.accommodation-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.accommodation-info {
    padding: 15px;
}

.accommodation-info h3 {
    color: #004d66;
    margin-bottom: 10px;
}

.accommodation-info p {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.accommodation-rating {
    color: #00cc66;
    font-size: 14px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
    }
    
    nav a {
        text-align: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 24px;
    }
}
