For \( 0<\theta<\frac{\pi}{2} \), if the eccentricity of the hyperbola \( x^2-y^2cosec^2\theta=5 \) is \( \sqrt{7} \) times eccentricity of the ellipse \( x^2cosec^2\theta+y^2=5 \), then the value of \( \theta \) is:
\( \frac{\pi}{4} \)
\( \frac{5\pi}{12} \)
\( \frac{\pi}{6} \)
\( \frac{\pi}{3} \)