/* Hero Section styles for index.php */

:root {
    --primary-blue: #2563eb;
    --secondary-blue: #1e40af;
    --dark-heading: #0a2342;
    --white: #fff;
    --light-gray: #e2e8f0;
    --text-color: #4a5568;
    --bg-color: #f7fafc;
    --blue-circle: #3b82f6;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 500px; /* Adjusted height */
    background: transparent; /* Removed background */
    overflow: visible; /* Allow overflow for styling */
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding-top: 80px; Added padding to offset fixed header */
}

.hero-section::before {
    content: none; /* Removed background image */
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
    gap: 20px; /* Reduced gap */
}

.text-content {
    flex: 1;
    max-width: 500px; /* Adjusted max width */
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    will-change: opacity, transform;
}

.text-content.active {
    opacity: 1;
    transform: translateY(0);
}

.text-content h1 {
    font-size: 2.5rem; /* Reduced font size */
    font-weight: 700;
    color: var(--dark-heading);
    margin-bottom: 0.5rem; /* Reduced margin */
    line-height: 1.2;
}

.text-content h2 {
    font-size: 1.2rem; /* Reduced font size */
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.text-content p {
    font-size: 0.9rem; /* Reduced font size */
    color: var(--text-color);
    margin-bottom: 1.5rem; /* Reduced margin */
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 10px; /* Reduced gap */
    flex-wrap: wrap;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 5px; /* Reduced gap */
    padding: 10px 20px; /* Reduced padding */
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn i {
    font-size: 1rem; /* Reduced icon size */
}

.apply-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.apply-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    background-color: var(--secondary-blue);
}

.counselling-btn {
    background-color: var(--light-gray);
    color: var(--dark-heading);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.counselling-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--white);
}

.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 300px; /* Adjusted min height */
    background: transparent; /* Remove background */
    box-shadow: none; /* Remove shadow */
    border-radius: 0; /* Remove border radius */
}

.image-content .image {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    border-radius: 50%; /* Make image circular */
    box-shadow: 0 0 0 80px #e0e7ff, 0 0 0 120px #c7d2fe, 0 0 0 160px #a5b4fc; /* Multiple rings around image */
    background-color: white; /* White background behind image */
    padding: 10px; /* Padding inside rings */
    transition: box-shadow 0.3s ease;
}

.image-content .image:hover {
    box-shadow: 0 0 0 90px #bfdbfe, 0 0 0 130px #93c5fd, 0 0 0 170px #60a5fa; /* Slightly stronger rings on hover */
}

.logo-container {
    width: 210px;
    height: 60px;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-content .circles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-content .circle {
    border: 5px solid var(--blue-circle);
    border-radius: 50%;
    position: absolute;
}
.image-content .circle1 {
    width: 350px;
    height: 350px;
    top: calc(50% - 175px);
    left: calc(50% - 175px);
    opacity: 0.5;
}
.image-content .circle2 {
    width: 450px;
    height: 450px;
    top: calc(50% - 225px);
    left: calc(50% - 225px);
    opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .text-content {
        max-width: 100%;
        order: 2; /* Put text after image on mobile */
    }
    .image-content {
        order: 1;
        min-height: auto;
    }
    .text-content h1 {
        font-size: 2rem; /* Adjusted for smaller screens */
    }
    .text-content h2 {
        font-size: 1rem; /* Adjusted for smaller screens */
    }
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .text-content h1 {
        font-size: 1.5rem; /* Further reduced for small screens */
    }
    .text-content p {
        font-size: 0.8rem; /* Further reduced for small screens */
    }
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

#colleges-section {
    padding: 60px 0;
}

/* Removed CSS Grid styles - using Bootstrap grid system instead */

/* College Card Styles - Cleaned up without conflicts */
.college-card-link {
    text-decoration: none;
    color: inherit;
}

.college-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
    padding: 12px;
    border: 1px solid #e2e8f0;
    min-height: 120px;
}

.college-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
    border-color: #2563eb;
    background-color: #f0f5ff;
}

.college-logo-container {
    width: 200px;
    height: 70px;
    border-radius: 12px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid #ddd;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.college-logo-container:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-color: #bbb;
}

.college-logo {
    max-width: 180px;
    max-height: 60px;
    object-fit: contain;
    background-color: transparent;
    padding: 0;
    margin: 0;
    display: block;
}

.college-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.college-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.college-location {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.college-location i {
    color: #2563eb;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.college-courses-count {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
    margin-top: auto;
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.college-courses-count i {
    color: #2563eb;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.college-card-footer {
    padding: 10px 15px;
    background-color: #f8f9fa;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.view-details-btn {
    display: inline-block;
    background-color: #e0e7ff;
    color: #2563eb;
    padding: 8px 20px 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    width: auto;
    white-space: nowrap;
    text-decoration: none;
}

.view-details-btn:hover {
    background-color: #c7d2fe;
    color: #1e40af;
}

.college-card:hover .view-details-btn {
    background-color: #c7d2fe;
    color: #1e40af;
}

/* Hero Section */
.college-hero {
    background-color: #f8f9fa; /* Light background */
    color: #212529;
    padding: 60px 0;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.college-hero .container {
    max-width: 900px;
}

.college-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-accreditation {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
}

.hero-reviews {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.hero-reviews .stars {
    color: #FFC107;
    font-size: 1.2rem;
}

.hero-reviews .review-count {
    font-size: 0.95rem;
    color: #555;
}

.hero-logos {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-logo-item img {
    height: 50px;
    max-width: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.hero-logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.hero-logo-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-logo-item .info-icon {
    color: #6c757d;
    font-size: 24px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.hero-buttons .btn {
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-buttons .btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

.hero-buttons .btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.hero-buttons .btn-outline {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.hero-buttons .btn-outline:hover {
    background-color: #e9f5ff;
    transform: translateY(-2px);
}

.hero-buttons .btn i {
    margin-right: 8px;
}

.talk-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 2rem;
}

.talk-section .profile-pics {
    display: flex;
    position: relative;
}

.talk-section .profile-pics img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.talk-section .profile-pics img:nth-child(2) {
    position: absolute;
    left: 35px;
    z-index: 1;
}
.talk-section .profile-pics img:nth-child(3) {
    position: absolute;
    left: 70px;
    z-index: 2;
}

.talk-section .talk-link {
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.talk-section .talk-link:hover {
    color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .college-hero {
        text-align: center;
    }
    .hero-logos, .hero-buttons, .talk-section {
        justify-content: center;
    }
    .talk-section {
        flex-direction: column;
        text-align: center;
    }
    .talk-section .profile-pics {
        justify-content: center;
        margin-left: 20px;
    }
}

/* College Content Sections */
.college-content-section {
    padding: 60px 0;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.college-content-section:nth-child(even) {
    background-color: #f8f9fa;
}

.college-content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #002D62;
    text-align: center;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: left;
}

.info-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #002D62;
}

.info-card p {
    margin: 5px 0;
}

.info-card a {
    color: #0056b3;
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

/* Courses Section */
.courses-table-container {
    overflow-x: auto;
}

.courses-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.courses-table th, .courses-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.courses-table th {
    background-color: #002D62;
    color: #fff;
    font-weight: 600;
}

.courses-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.fee-overlay {
    position: relative;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    height: 100%;
    width: 100%;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.fee-overlay p {
    margin: 0;
}

/* Placements Section */
.placement-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.placement-stat-item {
    background-color: #e3f2fd;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.placement-stat-item h3 {
    font-size: 2.5rem;
    color: #002D62;
    margin: 0;
}

.placement-stat-item p {
    margin: 5px 0 0;
    font-weight: 600;
}

.recruiters-list {
    text-align: center;
    margin-top: 40px;
}

.recruiters-list h3 {
    font-size: 1.8rem;
    color: #002D62;
    margin-bottom: 20px;
}

.recruiters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    justify-items: center;
}

.recruiter-logo {
    width: 100px;
    height: 50px;
    object-fit: contain;
    border-radius: 5px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.recruiter-logo:hover {
    opacity: 1;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.testimonial-card blockquote {
    margin: 0 0 10px;
    font-style: italic;
    font-size: 1rem;
}

.testimonial-card cite {
    display: block;
    text-align: right;
    font-weight: bold;
    color: #555;
}

/* Gallery Section */
.college-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Map and Video Section */
.map-video-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.map-container, .video-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #fff;
}

.map-container h3, .video-container h3 {
    padding: 15px 20px;
    background-color: #002D62;
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
}

.map-container iframe, .video-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.youtube-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.youtube-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Apply Now Button */
.apply-now-btn-section {
    text-align: center;
    padding: 50px 0;
}

.apply-now-btn {
    background-color: #FF6600;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.apply-now-btn:hover {
    background-color: #E65C00;
}

/* Enhanced CSS for public college page */
.enhanced-css {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.enhanced-css h1 {
    color: #002D62;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.enhanced-css h2 {
    color: #002D62;
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FF6600;
    padding-bottom: 10px;
}

.enhanced-css p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.enhanced-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.enhanced-table th, .enhanced-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.enhanced-table th {
    background-color: #002D62;
    color: #fff;
    font-weight: 600;
}

.enhanced-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.enhanced-list {
    list-style-type: none;
    padding: 0;
}

.enhanced-list li {
    background-color: #f1f1f1;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
    border-left: 5px solid #FF6600;
}

.enhanced-apply-btn {
    display: inline-block;
    background-color: #FF6600;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin-top: 30px;
}

.enhanced-apply-btn:hover {
    background-color: #E65C00;
}

.logo-image {
    width: 480px;
    height: 136px;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

/* Logo preview containers */
.logo-preview {
    text-align: center;
    padding: 0;
    margin: 0;
}

.header-logo img {
    width: 48px;
    height: 136px;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

/* Fix for Duration column word wrap in courses table */
.courses-table th:nth-child(2),
.courses-table td:nth-child(2) {
    white-space: nowrap;
    width: 100px; /* adjust width as needed */
}

/* Additional responsive refinements */
@media (max-width: 1200px) {
    .hero-logo-item img {
        max-width: 90px;
        height: auto;
    }
    .hero-buttons {
        gap: 12px;
        justify-content: center;
    }
}
@media (max-width: 992px) {
    .college-hero {
        padding: 50px 20px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    .talk-section {
        flex-direction: column;
        align-items: center;
    }
    .talk-section .profile-pics {
        justify-content: center;
        margin-left: 0;
    }
}
@media (max-width: 768px) {
    .college-hero h1 {
        font-size: 2rem;
    }
    .hero-reviews, .hero-logos {
        justify-content: center;
    }
    .college-content-section {
        padding: 40px 15px;
    }
    .courses-table th, .courses-table td {
        padding: 12px;
        font-size: 0.95rem;
    }
    .placement-stat-item {
        padding: 18px;
    }
    .map-container iframe, .video-container iframe {
        height: 280px;
    }
    .apply-now-btn {
        width: 100%;
        max-width: 320px;
    }
}
@media (max-width: 600px) {
    .college-hero {
        text-align: center;
    }
    .hero-logo-item img {
        max-width: 70px;
    }
    .talk-section {
        gap: 12px;
    }
    .talk-section .profile-pics img {
        width: 40px;
        height: 40px;
    }
    .gallery-item img {
        height: 180px;
    }
    .map-container iframe, .video-container iframe {
        height: 220px;
    }
}

