/* --- Global Styles and Reset --- */
:root {
    --color-primary: #008080; /* Deep Teal / Ocean Blue (Trust, Sea) */
    --color-accent: #FF6F61;  /* Vibrant Coral (Energy, Fun, Pop) */
    --color-background: #f4f4f9; /* Light Gray Background */
    --color-text: #333333;
    --color-light: #ffffff;
    --font-stack: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--color-light);
    padding: 15px 0;
    border-bottom: 3px solid var(--color-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* UPDATED: Logo image size increased by 30% */
.logo img {
    height: 65px; /* Adjusted from 50px to 65px (30% larger) */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--color-text);
    padding: 10px 15px;
    transition: color 0.3s, border-bottom 0.3s;
    font-weight: 500;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
}

/* --- Typography and Titles --- */
.section-title, .page-title {
    text-align: center;
    font-size: 2em;
    color: var(--color-primary);
    margin: 40px auto 30px;
    border-bottom: 2px solid var(--color-accent);
    display: table; /* Centers the border under the text */
    padding-bottom: 5px;
}

/* --- Buttons and Links --- */
.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-light);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.cta-button:hover {
    background-color: #e55c50; /* Slightly darker coral */
}

.link-button {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--color-primary);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.link-button:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

/* ==================================== */
/* 1. Home Page Specific Styles (index.php) */
/* ==================================== */

/* --- Hero Carousel Section --- */
.hero-carousel {
    position: relative;
    height: 60vh; /* Viewport height for a tall header */
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    color: var(--color-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero-overlay h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-overlay h2 {
    font-size: 1.8em;
    font-weight: 300;
    margin-bottom: 30px;
}

/* --- Main Content Section --- */
.home-main-content {
    padding: 40px 0;
}

.welcome-section {
    text-align: center;
    margin-bottom: 50px;
}

.welcome-section p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px;
}

.icon-features {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
}

.feature-box {
    flex-basis: 30%;
    padding: 20px;
    background-color: var(--color-light);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    color: var(--color-primary);
    transition: transform 0.3s;
}
.feature-box:hover {
    transform: translateY(-5px);
}

.featured-section {
    padding: 40px;
    background-color: var(--color-light);
    border-left: 5px solid var(--color-primary);
    border-radius: 5px;
    margin-bottom: 40px;
    text-align: center;
}

blockquote {
    font-style: italic;
    font-size: 1.2em;
    color: #555;
    margin: 20px 0;
}


/* ==================================== */
/* 2. About Page Specific Styles (about.php) */
/* ==================================== */

.about-main-content {
    padding-bottom: 40px;
}

.advisor-intro {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 30px 0;
}

.photo-and-details {
    flex-basis: 30%;
    min-width: 250px;
    text-align: center;
    background-color: var(--color-light);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.advisor-photo {
    width: 100%;
    max-width: 200px; 
    height: auto;
    border-radius: 50%; 
    margin-bottom: 15px;
    border: 4px solid var(--color-accent);
}

.details-box h2 {
    color: var(--color-primary);
    margin-bottom: 5px;
}

.tagline {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}

.bio-text {
    flex-basis: 70%;
}

.bio-text h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--color-accent), rgba(0, 0, 0, 0));
    margin: 40px 0;
}

.specialties-lead {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.expertise-item {
    background-color: var(--color-light);
    padding: 25px;
    border-radius: 8px;
    border-top: 5px solid var(--color-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.expertise-item h4 {
    color: var(--color-accent);
    margin-bottom: 10px;
    font-size: 1.2em;
}


/* ==================================== */
/* 3. Contact Page Specific Styles (contact.php) */
/* ==================================== */

.contact-main-content {
    padding: 40px 0;
}

.contact-lead-text {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
    color: #555;
}

.contact-grid {
    display: flex;
    gap: 40px;
}

.contact-form-container,
.direct-contact-container {
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-form-container {
    flex: 2; /* Form takes up more space */
    background-color: var(--color-light);
}

.direct-contact-container {
    flex: 1; /* Contact details section */
    background-color: var(--color-background);
    border: 1px solid #ddd;
    text-align: center;
}

.contact-form-container h3,
.direct-contact-container h3 {
    color: var(--color-primary);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 5px;
    text-align: left;
}

/* Form Styling */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--color-text);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea,
.contact-form input[type="number"] { /* Added type="number" for captcha */
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button.cta-button {
    width: 100%;
    margin-top: 15px;
    border: none;
    cursor: pointer;
}

/* Direct Contact Info Boxes */
.contact-info-box {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--color-light);
    border-left: 3px solid var(--color-accent);
    border-radius: 4px;
}

.contact-info-box h4 {
    color: var(--color-primary);
    margin-bottom: 5px;
}

.contact-detail-bold {
    font-size: 1.2em;
    font-weight: 700;
}

.contact-detail-bold a {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-detail-bold a:hover {
    text-decoration: underline;
}

.note {
    font-style: italic;
    font-size: 0.9em;
    color: #777;
    margin-top: 30px;
}

/* Status Messages (for Contact form feedback) */
.status-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #badbcc;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* ==================================== */
/* 4. Footer Styles (Used by footer.php) */
/* ==================================== */
.site-footer {
    background-color: var(--color-text); /* Dark background for visibility */
    color: #cccccc;
    padding: 20px 0;
    font-size: 0.9em;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: left;
}

.footer-details {
    flex-grow: 1;
    text-align: left;
}

.footer-details p {
    margin: 5px 0;
}

.footer-details p strong {
    color: var(--color-accent); /* Highlight key info */
}

/* Footer note for email generation */
.footer-details p.email-generated-note {
    font-style: italic;
    font-size: 0.8em;
    color: #aaa;
    margin-top: 10px;
}

.copyright {
    text-align: right;
}

/* ==================================== */
/* 5. Responsive Media Queries */
/* ==================================== */

@media (max-width: 900px) {
    /* Contact Page Layout change */
    .contact-grid {
        flex-direction: column;
    }

    .direct-contact-container {
        order: -1; /* Move contact details above the form on small screens */
    }
}

@media (max-width: 768px) {
    /* General Navigation and Header */
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav {
        margin-top: 15px;
        width: 100%;
    }
    
    .main-nav ul {
        justify-content: space-around;
        width: 100%;
    }

    /* Home Page Hero */
    .hero-overlay h1 {
        font-size: 2.5em;
    }

    .hero-overlay h2 {
        font-size: 1.4em;
    }

    .icon-features {
        flex-direction: column;
    }
    .feature-box {
        flex-basis: 100%;
    }
    
    /* About Page Layout change */
    .advisor-intro {
        flex-direction: column;
        align-items: center;
    }

    .photo-and-details {
        flex-basis: 100%;
    }

    .bio-text {
        text-align: center;
    }
    
    /* Footer Layout change */
    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
    .footer-details, .copyright {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    .footer-details p.email-generated-note {
        text-align: center; /* Ensure the note is centered too */
    }
}
