/* Global Education Page Specific Styles */

/* Ensure proper navbar behavior for all screen sizes */
.shg-navbar-wrapper {
    position: relative !important;
    z-index: 1000 !important;
}

.shg-navbar-main {
    background-color: white !important;
    padding: 1rem 2rem !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
    transform: translateY(0) !important;
    transition: transform 0.3s ease !important;
}

/* Handle navbar hide behavior */
.shg-navbar-main.hide {
    transform: translateY(-100%) !important;
}

/* Fix navbar content layout */
.shg-navbar-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Desktop navbar menu - only apply to desktop */
@media (min-width: 769px) {
    .shg-navbar-menu {
        display: flex !important;
        gap: 2rem !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Mobile navbar - respect the existing mobile behavior */
@media (max-width: 768px) {
    .shg-navbar-menu {
        display: none !important; /* Hidden by default on mobile */
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        padding: 0 !important;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1) !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .shg-navbar-menu.active {
        display: flex !important; /* Show when active class is added */
    }
    
    .shg-navbar-hamburger {
        display: flex !important;
    }
}

.shg-dropdown-menu {
    z-index: 1001 !important;
}

.shg-navbar-hamburger {
    z-index: 1002 !important;
}

/* Ensure body has proper margin for fixed navbar */
.shg-body {
    margin-top: 84px;
}

/* Force visibility class */
.force-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    z-index: 2;
    position: relative;
}

/* Hero Section - Made Smaller */
.shg-global-hero-section {
    position: relative;
    height: 60vh;  /* Reduced from 100vh */
    min-height: 400px;  /* Reduced from 600px */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin: 0;
    padding: 0;
    width: 100vw;
    overflow: hidden;
}

.shg-global-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.shg-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    width: 100%;
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
}

/* Only keep CTA visible, let title and subtitle be animated */
.shg-hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shg-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(-100px);
}

.shg-hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(100px);
}

.shg-hero-cta:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

/* Intro Section */
.shg-intro-section {
    background-color: #f8f9fa;
    padding: 3rem 2rem;
    text-align: center;
}

.shg-intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.shg-intro-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
    font-weight: 500;
}

/* Dynamic Sections */
.shg-dynamic-sections {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.shg-dynamic-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shg-dynamic-section:last-child {
    margin-bottom: 0;
}

.shg-dynamic-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    padding-bottom: 1rem;
}

.shg-dynamic-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #007bff;
}

.shg-dynamic-section-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
}

.shg-dynamic-section-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.shg-dynamic-section-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.shg-dynamic-section-image:hover {
    transform: scale(1.05);
}

/* Subtitle style for dynamic sections */
.shg-dynamic-section-subtitle {
    color: #007bff;
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
    letter-spacing: 0.01em;
}

/* Animations */
@keyframes shg-fly-in-left {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shg-fly-in-right {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .shg-dynamic-sections {
        padding: 3rem 1.5rem;
    }

    .shg-dynamic-section {
        padding: 1.5rem;
    }

    .shg-dynamic-section-title {
        font-size: 1.8rem;
    }

    .shg-dynamic-section-text {
        font-size: 1rem;
    }

    .shg-dynamic-section-images {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .shg-intro-section {
        padding: 2.5rem 1.5rem;
    }

    .shg-intro-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .shg-global-hero-section {
        height: 56vh;
        min-height: 320px;
    }

    .shg-hero-title {
        font-size: 2.5rem;
    }

    .shg-hero-subtitle {
        font-size: 1.2rem;
    }

    .shg-dynamic-sections {
        padding: 2rem 1rem;
    }

    .shg-dynamic-section {
        padding: 1.5rem;
    }

    .shg-dynamic-section-title {
        font-size: 1.6rem;
    }

    .shg-dynamic-section-images {
        grid-template-columns: 1fr;
    }

    .shg-intro-section {
        padding: 2rem 1rem;
    }

    .shg-intro-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .shg-global-hero-section {
        min-height: 400px;
    }

    .shg-hero-title {
        font-size: 2rem;
    }

    .shg-hero-subtitle {
        font-size: 1rem;
    }

    .shg-dynamic-sections {
        padding: 1.5rem 1rem;
    }

    .shg-dynamic-section {
        padding: 1rem;
    }

    .shg-dynamic-section-title {
        font-size: 1.4rem;
    }

    .shg-dynamic-section-text {
        font-size: 0.95rem;
    }

    .shg-intro-section {
        padding: 1.5rem 1rem;
    }

    .shg-intro-text {
        font-size: 1.1rem;
    }
}

/* Enquire Here Button Style */
.shg-enquire-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: #007bff;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,123,255,0.08);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.shg-enquire-btn:hover {
    background: #0056b3;
    color: #fff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 16px rgba(0,123,255,0.15);
}

/* Center the Enquire Here button */
.shg-enquire-btn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
}

/* Enquire Modal Styles */
#enquire-modal.shg-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}
#enquire-modal .shg-modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 2rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    text-align: center;
    min-width: 320px;
    max-width: 90vw;
}
#enquire-modal .shg-modal-content h3 {
    margin-top: 0;
    color: #007bff;
}
#enquire-modal .shg-modal-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
#enquire-modal .shg-submit-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #007bff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.08);
}
#enquire-modal .shg-submit-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 16px rgba(0,123,255,0.15);
}
#enquire-modal .shg-submit-btn[type="button"] {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}
#enquire-modal .shg-submit-btn[type="button"]:hover {
    background: #e9ecef;
    color: #333;
}
#enquire-modal .shg-form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}
#enquire-modal input[type="text"],
#enquire-modal input[type="email"],
#enquire-modal textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 0.25rem;
}
#enquire-modal textarea {
    min-height: 100px;
    resize: vertical;
}
#enquire-modal .shg-enquiry-subject {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}
#enquire-modal .shg-enquiry-subject-text {
    margin: 0;
    color: #333;
    font-weight: 500;
}

/* PDF Download Button Styles */
.shg-pdf-download-wrapper {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.shg-pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
    width: auto;
    justify-content: center;
}

.shg-pdf-download-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.shg-pdf-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.shg-pdf-download-btn i {
    font-size: 0.9rem;
}

.shg-pdf-download-btn span {
    font-size: 0.85rem;
}

.pdf-download-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

.pdf-download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
    width: auto;
    max-width: 200px;
}

.pdf-download-btn:hover {
    background-color: #c82333;
}

.pdf-download-btn i {
    font-size: 0.9rem;
}

.pdf-download-btn span {
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Hero Animation Keyframes */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Animation Classes - Override the forced visibility for animations */
.shg-hero-title.animate {
    animation: slideInFromLeft 1.5s ease-out forwards;
}

.shg-hero-subtitle.animate {
    animation: slideInFromRight 1.5s ease-out forwards;
}

/* Initially hide elements before animation */
.shg-hero-title:not(.animate),
.shg-hero-subtitle:not(.animate) {
    opacity: 0;
}

.pdf-download-btn span {
    margin-left: 0.5rem;
} 